A couple of simple substitutions for deprecated functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12320 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-01-11 04:29:06 +00:00
parent 32a5612d4c
commit 0598081427
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2006-01-10 David Hampton <hampton@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.

View File

@ -440,7 +440,7 @@ gnc_window_adjust_for_screen(GtkWindow * window)
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;

View File

@ -173,8 +173,7 @@ gnc_gnome_init (const char * arg0,
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");