Author: cazfi
Date: Mon Jan  4 15:54:06 2016
New Revision: 31355

URL: http://svn.gna.org/viewcvs/freeciv?rev=31355&view=rev
Log:
Replaced deprecated GtkAlignment use with modern solutions

See patch #6763

Modified:
    trunk/client/gui-gtk-3.x/gui_main.c

Modified: trunk/client/gui-gtk-3.x/gui_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.x/gui_main.c?rev=31355&r1=31354&r2=31355&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.x/gui_main.c (original)
+++ trunk/client/gui-gtk-3.x/gui_main.c Mon Jan  4 15:54:06 2016
@@ -930,7 +930,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

Reply via email to