mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-29 20:24:25 -06:00
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:
parent
32a5612d4c
commit
0598081427
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user