r21381 - gnucash/trunk/src/gnome-utils - Add more debugging info in an effort to find the cause of bug #510720
Geert Janssens
gjanssens at code.gnucash.org
Fri Oct 7 08:21:41 EDT 2011
Author: gjanssens
Date: 2011-10-07 08:21:41 -0400 (Fri, 07 Oct 2011)
New Revision: 21381
Trac: http://svn.gnucash.org/trac/changeset/21381
Modified:
gnucash/trunk/src/gnome-utils/dialog-utils.c
gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
Add more debugging info in an effort to find the cause of bug #510720
Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c 2011-10-07 10:21:15 UTC (rev 21380)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c 2011-10-07 12:21:41 UTC (rev 21381)
@@ -239,6 +239,8 @@
GSList *coord_list;
gint coords[2];
+ ENTER("");
+
g_return_if_fail(section != NULL);
g_return_if_fail(window != NULL);
@@ -251,6 +253,7 @@
{
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 @@
{
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("");
}
Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2011-10-07 10:21:15 UTC (rev 21380)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2011-10-07 12:21:41 UTC (rev 21381)
@@ -719,6 +719,8 @@
gchar *map;
gchar *data_dir;
+ ENTER ("");
+
if (gnome_is_initialized)
{
return main_window;
@@ -766,6 +768,7 @@
gnc_load_stock_icons();
gnc_totd_dialog(GTK_WINDOW(main_window), TRUE);
+ LEAVE ("");
return main_window;
}
More information about the gnucash-changes
mailing list