Author: cazfi
Date: Sat May 23 22:31:17 2015
New Revision: 29126

URL: http://svn.gna.org/viewcvs/freeciv?rev=29126&view=rev
Log:
Fixed gtk3-client minimap area to resize when detached minimap window is resized

Reported by Rogier <rogier>

See bug #22836

Modified:
    branches/S2_5/client/gui-gtk-3.0/gui_main.c

Modified: branches/S2_5/client/gui-gtk-3.0/gui_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-gtk-3.0/gui_main.c?rev=29126&r1=29125&r2=29126&view=diff
==============================================================================
--- branches/S2_5/client/gui-gtk-3.0/gui_main.c (original)
+++ branches/S2_5/client/gui-gtk-3.0/gui_main.c Sat May 23 22:31:17 2015
@@ -1112,6 +1112,8 @@
 
   /* overview canvas */
   ahbox = detached_widget_new();
+  gtk_widget_set_hexpand(ahbox, FALSE);
+  gtk_widget_set_vexpand(ahbox, FALSE);
   gtk_container_add(GTK_CONTAINER(vgrid), ahbox);
   avbox = detached_widget_fill(ahbox);
 
@@ -1127,6 +1129,8 @@
                              overview_canvas_store_height);
   gtk_widget_set_size_request(overview_scrolled_window, 
overview_canvas_store_width,
                              overview_canvas_store_height);
+  gtk_widget_set_hexpand(overview_canvas, TRUE);
+  gtk_widget_set_vexpand(overview_canvas, TRUE);
 
   gtk_widget_add_events(overview_canvas, GDK_EXPOSURE_MASK
                                        |GDK_BUTTON_PRESS_MASK


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to