[gtk+/wip/matthiasc/help-overlay] shortcuts: Set window type hint



commit d0db02505833bf840f61e9ac66359ea7375a75ac
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 20 23:57:27 2015 -0400

    shortcuts: Set window type hint
    
    Setting the type hint to dialog gives gnome-shell the push it
    needs to present the window nicely.

 gtk/gtkshortcutswindow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index d6d7ba8..77c4bcc 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -639,6 +639,7 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
   PangoAttrList *attributes;
 
   gtk_window_set_resizable (GTK_WINDOW (self), FALSE);
+  gtk_window_set_type_hint (GTK_WINDOW (self), GDK_WINDOW_TYPE_HINT_DIALOG);
 
   g_signal_connect (self, "key-press-event",
                     G_CALLBACK (window_key_press_event_cb), NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]