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



commit 4b0612dfeebc63657f884fac765dee8ca5f29313
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          |    6 +++++-
 1 files changed, 5 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..a945af3 100644
--- a/gnome-flashback/libinput-sources/gf-candidate-popup.c
+++ b/gnome-flashback/libinput-sources/gf-candidate-popup.c
@@ -131,12 +131,16 @@ gf_candidate_popup_class_init (GfCandidatePopupClass *popup_class)
 static void
 gf_candidate_popup_init (GfCandidatePopup *popup)
 {
+  gtk_window_set_focus_on_map (GTK_WINDOW (popup), TRUE);
+  gtk_window_set_type_hint (GTK_WINDOW (popup), 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]