[Gnucash-changes] r12320 - gnucash/trunk - A couple of simple
substitutions for deprecated functions.
David Hampton
hampton at cvs.gnucash.org
Tue Jan 10 23:29:06 EST 2006
Author: hampton
Date: 2006-01-10 23:29:06 -0500 (Tue, 10 Jan 2006)
New Revision: 12320
Trac: http://svn.gnucash.org/trac/changeset/12320
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/dialog-utils.c
gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
A couple of simple substitutions for deprecated functions.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-01-11 04:27:02 UTC (rev 12319)
+++ gnucash/trunk/ChangeLog 2006-01-11 04:29:06 UTC (rev 12320)
@@ -1,5 +1,9 @@
2006-01-10 David Hampton <hampton at employees.org>
+ * src/gnome-utils/gnc-gnome-utils.c:
+ * src/gnome-utils/dialog-utils.c: A couple of simple substitutions
+ for deprecated functions.
+
* src/gnome-utils/dialog-options.c: Use newer function for setting
the width of a GtkSpinButton.
Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c 2006-01-11 04:27:02 UTC (rev 12319)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c 2006-01-11 04:29:06 UTC (rev 12320)
@@ -440,7 +440,7 @@
screen_width = gdk_screen_width();
screen_height = gdk_screen_height();
- gdk_window_get_size(GTK_WIDGET(window)->window, &width, &height);
+ gdk_drawable_get_size(GTK_WIDGET(window)->window, &width, &height);
if ((width <= screen_width) && (height <= screen_height))
return;
Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2006-01-11 04:27:02 UTC (rev 12319)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2006-01-11 04:29:06 UTC (rev 12320)
@@ -173,8 +173,7 @@
gnc_free_argv (restargv);
/* initialization required for gtkhtml */
- gdk_rgb_init ();
- gtk_widget_set_default_colormap (gdk_rgb_get_cmap ());
+ gtk_widget_set_default_colormap (gdk_rgb_get_colormap ());
/* use custom icon */
fullname = gnc_gnome_locate_pixmap ("gnucash-icon.png");
More information about the gnucash-changes
mailing list