[gedit] Fix recent files menu in fullscreen mode
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix recent files menu in fullscreen mode
- Date: Sat, 22 Feb 2014 16:37:56 +0000 (UTC)
commit 116565bfa01f6ffc5c95cd6764d0e27349b37630
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Feb 22 17:36:45 2014 +0100
Fix recent files menu in fullscreen mode
gedit/gedit-window.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 834fa42..fd94a95 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -801,9 +801,9 @@ setup_headerbar_open_button (GeditWindow *window)
recent_menu = gtk_menu_button_get_popup (GTK_MENU_BUTTON (window->priv->open_menu));
g_signal_connect (recent_menu,
- "item-activated",
- G_CALLBACK (recent_chooser_item_activated),
- window);
+ "item-activated",
+ G_CALLBACK (recent_chooser_item_activated),
+ window);
}
static void
@@ -1781,6 +1781,7 @@ static void
fullscreen_controls_setup (GeditWindow *window)
{
GeditWindowPrivate *priv = window->priv;
+ GtkMenu *recent_menu;
if (priv->fullscreen_controls_setup)
return;
@@ -1791,6 +1792,13 @@ fullscreen_controls_setup (GeditWindow *window)
"limit",
G_SETTINGS_BIND_GET);
+ recent_menu = gtk_menu_button_get_popup (GTK_MENU_BUTTON (window->priv->fullscreen_open_menu));
+
+ g_signal_connect (recent_menu,
+ "item-activated",
+ G_CALLBACK (recent_chooser_item_activated),
+ window);
+
g_signal_connect (priv->fullscreen_eventbox,
"enter-notify-event",
G_CALLBACK (on_fullscreen_controls_enter_notify_event),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]