[gedit] Set the correct state to fullscreen action from leave fullscreen.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Set the correct state to fullscreen action from leave fullscreen.
- Date: Tue, 7 Jan 2014 23:07:59 +0000 (UTC)
commit bfe64c3ad862f2ca9feef7fdb50e674f4e97ebf4
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jan 8 00:05:55 2014 +0100
Set the correct state to fullscreen action from leave fullscreen.
gedit/gedit-commands-view.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-commands-view.c b/gedit/gedit-commands-view.c
index b158fe2..edfb891 100644
--- a/gedit/gedit-commands-view.c
+++ b/gedit/gedit-commands-view.c
@@ -117,8 +117,15 @@ _gedit_cmd_view_leave_fullscreen_mode (GSimpleAction *action,
gpointer user_data)
{
GeditWindow *window = GEDIT_WINDOW (user_data);
+ GAction *fullscreen_action;
_gedit_window_unfullscreen (window);
+
+ fullscreen_action = g_action_map_lookup_action (G_ACTION_MAP (window),
+ "fullscreen");
+
+ g_simple_action_set_state (G_SIMPLE_ACTION (fullscreen_action),
+ g_variant_new_boolean (FALSE));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]