[Xfce4-commits] [apps/mousepad] 04/09: Unbind fullscreen action from setting

noreply at xfce.org noreply at xfce.org
Sun Jul 13 05:10:22 CEST 2014


This is an automated email from the git hooks/post-receive script.

mbrush pushed a commit to branch master
in repository apps/mousepad.

commit 2f98ef2f8768c56e694eeab7918d19759014155e
Author: Matthew Brush <mbrush at codebrainz.ca>
Date:   Sat Jul 12 17:02:49 2014 -0700

    Unbind fullscreen action from setting
    
    This way it will follow other settings whether to save the fullscreen
    state in the timer callback with the other window settings.
---
 mousepad/mousepad-window.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
index 888bfb4..81c875a 100644
--- a/mousepad/mousepad-window.c
+++ b/mousepad/mousepad-window.c
@@ -787,10 +787,6 @@ mousepad_window_init (MousepadWindow *window)
                             window,
                             G_CONNECT_SWAPPED);
 
-  /* update the window fullscreen state when setting changes */
-  action = gtk_action_group_get_action (window->action_group, "fullscreen");
-  MOUSEPAD_SETTING_BIND (WINDOW_FULLSCREEN, action, "active", G_SETTINGS_BIND_DEFAULT);
-
   /* check if we need to add the root warning */
   if (G_UNLIKELY (geteuid () == 0))
     {
@@ -5028,7 +5024,7 @@ mousepad_window_action_fullscreen (GtkToggleAction *action,
   if (! gtk_widget_get_visible (GTK_WIDGET (window)))
     return;
 
-  fullscreen = MOUSEPAD_SETTING_GET_BOOLEAN (WINDOW_FULLSCREEN);
+  fullscreen = gtk_toggle_action_get_active (action);
   gdk_window = gtk_widget_get_window (GTK_WIDGET (window));
   state = gdk_window_get_state (gdk_window);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list