Add more debugging info in an effort to find the cause of bug #510720

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21381 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2011-10-07 12:21:41 +00:00
parent ccd00fc548
commit 6edb5d4d0d
2 changed files with 9 additions and 0 deletions

View File

@@ -239,6 +239,8 @@ gnc_restore_window_size(const char *section, GtkWindow *window)
GSList *coord_list;
gint coords[2];
ENTER("");
g_return_if_fail(section != NULL);
g_return_if_fail(window != NULL);
@@ -251,6 +253,7 @@ gnc_restore_window_size(const char *section, GtkWindow *window)
{
coords[0] = GPOINTER_TO_INT(g_slist_nth_data(coord_list, 0));
coords[1] = GPOINTER_TO_INT(g_slist_nth_data(coord_list, 1));
DEBUG("coords[0]: %d, coords[1]: %d", coords[0], coords[1]);
gtk_window_move(window, coords[0], coords[1]);
g_slist_free(coord_list);
}
@@ -261,10 +264,13 @@ gnc_restore_window_size(const char *section, GtkWindow *window)
{
coords[0] = GPOINTER_TO_INT(g_slist_nth_data(coord_list, 0));
coords[1] = GPOINTER_TO_INT(g_slist_nth_data(coord_list, 1));
DEBUG("coords[0]: %d, coords[1]: %d", coords[0], coords[1]);
if ((coords[0] != 0) && (coords[1] != 0))
gtk_window_resize(window, coords[0], coords[1]);
g_slist_free(coord_list);
}
LEAVE("");
}

View File

@@ -719,6 +719,8 @@ gnc_gui_init(void)
gchar *map;
gchar *data_dir;
ENTER ("");
if (gnome_is_initialized)
{
return main_window;
@@ -766,6 +768,7 @@ gnc_gui_init(void)
gnc_load_stock_icons();
gnc_totd_dialog(GTK_WINDOW(main_window), TRUE);
LEAVE ("");
return main_window;
}