[epiphany/wip/gtkaction-to-gaction] Fix bug with 'win.fullscren' action



commit 8c5d0600ddb816131010da66636f350667a136e6
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Fri Jul 1 22:59:34 2016 +0300

    Fix bug with 'win.fullscren' action

 src/ephy-window.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index c9f5173..0c9a4b8 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2780,11 +2780,10 @@ ephy_window_state_event (GtkWidget           *widget,
     }
 
     action_group = gtk_widget_get_action_group (GTK_WIDGET (window), "win");
-
     action = g_action_map_lookup_action (G_ACTION_MAP (action_group), "fullscreen");
-    g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
-    g_action_change_state (action, g_variant_new_boolean (fullscreen));
-    g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE);
+
+    g_simple_action_set_state (G_SIMPLE_ACTION (action),
+                               g_variant_new_boolean (fullscreen));
   }
 
   return FALSE;


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