]> spindle.queued.net Git - midori/commitdiff
Make sure completion window is not user-resizable
authorChristian Dywan <christian@twotoasts.de>
Mon, 20 Feb 2012 20:54:26 +0000 (21:54 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 20 Feb 2012 20:54:26 +0000 (21:54 +0100)
Otherwise window managers may ignore programmatic
resizing entirely.

midori/midori-locationaction.c

index 2bc59e88d9f5ae150f4d46da2dabc59ba52664a1..60a08e2c5b2c7cd58e62a08f547634a002604c66 100644 (file)
@@ -496,6 +496,8 @@ midori_location_action_popup_timeout_cb (gpointer data)
 
         popup = gtk_window_new (GTK_WINDOW_POPUP);
         gtk_window_set_type_hint (GTK_WINDOW (popup), GDK_WINDOW_TYPE_HINT_COMBO);
+        /* Window managers may ignore programmatic resize without this */
+        gtk_window_set_resizable (GTK_WINDOW (popup), FALSE);
         popup_frame = gtk_frame_new (NULL);
         gtk_frame_set_shadow_type (GTK_FRAME (popup_frame), GTK_SHADOW_ETCHED_IN);
         gtk_container_add (GTK_CONTAINER (popup), popup_frame);