[gedit/wip/redesign2: 35/35] Manually associate the window actions to the fullscreen controls



commit 073ff13b234ba4b1ddee4ef567b3d1cd5a39dedd
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jan 5 18:17:49 2014 +0100

    Manually associate the window actions to the fullscreen controls

 gedit/gedit-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 8b99a2f..9f0ad5f 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2030,6 +2030,12 @@ fullscreen_controls_setup (GeditWindow *window)
                                      GTK_WINDOW (&window->window));
        gtk_window_set_attached_to (GTK_WINDOW (window), priv->fullscreen_controls);
 
+       /* this is a hack to make the fullscreen control see the window actions.
+        * GTK should grow something better to do this */
+       gtk_widget_insert_action_group (priv->fullscreen_controls,
+                                       "win",
+                                       G_ACTION_GROUP (window));
+
        g_signal_connect (priv->fullscreen_controls, "enter-notify-event",
                          G_CALLBACK (on_fullscreen_controls_enter_notify_event),
                          window);


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