[gedit/wip/redesign2: 27/28] Manually associate the window actions to the fullscreen controls
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/redesign2: 27/28] Manually associate the window actions to the fullscreen controls
- Date: Mon, 6 Jan 2014 20:27:27 +0000 (UTC)
commit 0c5a2f82a713fc4079b626bd407863c5cf5cbb9d
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]