Author: cazfi Date: Sat Dec 26 16:28:28 2015 New Revision: 31219 URL: http://svn.gna.org/viewcvs/freeciv?rev=31219&view=rev Log: Replace deprecated gtk_icon_size_lookup_for_settings() calls by gtk_icon_size_lookup() calls
See patch #6707 Modified: trunk/client/gui-gtk-3.x/gui_stuff.c trunk/client/gui-gtk-3.x/plrdlg.c Modified: trunk/client/gui-gtk-3.x/gui_stuff.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.x/gui_stuff.c?rev=31219&r1=31218&r2=31219&view=diff ============================================================================== --- trunk/client/gui-gtk-3.x/gui_stuff.c (original) +++ trunk/client/gui-gtk-3.x/gui_stuff.c Sat Dec 26 16:28:28 2015 @@ -576,9 +576,7 @@ gint w, h; gchar *buf; - gtk_icon_size_lookup_for_settings( - gtk_settings_get_for_screen(gtk_widget_get_screen(vbox)), - GTK_ICON_SIZE_MENU, &w, &h); + gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &w, &h); hbox = gtk_grid_new(); Modified: trunk/client/gui-gtk-3.x/plrdlg.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.x/plrdlg.c?rev=31219&r1=31218&r2=31219&view=diff ============================================================================== --- trunk/client/gui-gtk-3.x/plrdlg.c (original) +++ trunk/client/gui-gtk-3.x/plrdlg.c Sat Dec 26 16:28:28 2015 @@ -122,11 +122,9 @@ return NULL; } - gtk_icon_size_lookup_for_settings( - gtk_settings_get_for_screen(gtk_widget_get_screen(top_notebook)), - GTK_ICON_SIZE_MENU, &width, &height); + gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height); surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height); - + cr = cairo_create(surface); color = get_color(tileset, COLOR_PLAYER_COLOR_BACKGROUND); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits