Author: cazfi Date: Fri Nov 4 06:50:45 2016 New Revision: 34377 URL: http://svn.gna.org/viewcvs/freeciv?rev=34377&view=rev Log: Replaced deprecated GtkAlignment use with modern solutions in gtk3.22-client
See patch #6763 Modified: branches/S2_6/client/gui-gtk-3.22/gui_main.c Modified: branches/S2_6/client/gui-gtk-3.22/gui_main.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.22/gui_main.c?rev=34377&r1=34376&r2=34377&view=diff ============================================================================== --- branches/S2_6/client/gui-gtk-3.22/gui_main.c (original) +++ branches/S2_6/client/gui-gtk-3.22/gui_main.c Fri Nov 4 06:50:45 2016 @@ -986,7 +986,10 @@ G_CALLBACK(select_more_arrow_pixmap_callback), NULL); /* An extra layer so that we can hide the clickable button but keep * an explicit size request to avoid the layout jumping around */ - more_arrow_pixmap_container = gtk_alignment_new(0.5, 0.5, 0, 0); + more_arrow_pixmap_container = gtk_frame_new(NULL); + gtk_frame_set_shadow_type(GTK_FRAME(more_arrow_pixmap_container), GTK_SHADOW_NONE); + gtk_widget_set_halign(more_arrow_pixmap_container, GTK_ALIGN_CENTER); + gtk_widget_set_valign(more_arrow_pixmap_container, GTK_ALIGN_CENTER); g_object_ref(more_arrow_pixmap_container); gtk_container_add(GTK_CONTAINER(more_arrow_pixmap_container), more_arrow_pixmap_button); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits