[gnome-flashback/wip/segeiger/gnome-3-18-inputmethods: 1/3] input-sources: set GfCandidatePopup window type hints



commit 315152104b145b4071eddf303d6d3c70519028b0
Author: Sebastian Geiger <sbastig gmx net>
Date:   Mon Jan 18 13:26:52 2016 +0100

    input-sources: set GfCandidatePopup window type hints

 .../libinput-sources/gf-candidate-popup.c          |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-candidate-popup.c 
b/gnome-flashback/libinput-sources/gf-candidate-popup.c
index a0c1a5c..f10c8c4 100644
--- a/gnome-flashback/libinput-sources/gf-candidate-popup.c
+++ b/gnome-flashback/libinput-sources/gf-candidate-popup.c
@@ -131,12 +131,20 @@ gf_candidate_popup_class_init (GfCandidatePopupClass *popup_class)
 static void
 gf_candidate_popup_init (GfCandidatePopup *popup)
 {
+  GtkWindow *window;
+
+  window = GTK_WINDOW (popup);
+
+  gtk_window_set_focus_on_map (window, TRUE);
+  gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_NORMAL);
 }
 
 GfCandidatePopup *
 gf_candidate_popup_new (void)
 {
-  return g_object_new (GF_TYPE_CANDIDATE_POPUP, NULL);
+  return g_object_new (GF_TYPE_CANDIDATE_POPUP,
+                       "type", GTK_WINDOW_POPUP,
+                       NULL);
 }
 
 void


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