[gnome-flashback/gnome-3-18] input-sources: set GfCandidatePopup window type hints
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-18] input-sources: set GfCandidatePopup window type hints
- Date: Mon, 18 Jan 2016 14:39:25 +0000 (UTC)
commit 103a506fa11d933749338071c1a3dcc28bd1e6a8
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]