[gedit] Window: fullscreen mode: remove no longer needed code



commit 6361b281c81ec51ceb8707707a1871b7810c83fa
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Nov 27 14:31:32 2019 +0100

    Window: fullscreen mode: remove no longer needed code
    
    That code was added in:
    commit 8f1324a9f72a0bbbf9fcdd1e6b8578dfb3c648e6
    "Hide the fullscreen control when you change from workspace or when you
    minimize gedit".
    
    In those cases, there is now the "leave-notify-event" signal that is
    emitted on the fullscreen_eventbox. GeditWindow listens to that signal,
    it calls the on_fullscreen_eventbox_leave_notify_event() function, which
    hides the GtkRevealer when needed.
    
    This fixes the following problem: when in fullscreen mode we click on
    the open recent menu button, the menu was shown but the headerbar was
    hidden. This is now fixed, the headerbar (and revealer) is still shown
    when the open recent menu is shown.

 gedit/gedit-window.c | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 1fe18e4b3..96a127b21 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2548,18 +2548,6 @@ window_unrealized (GtkWidget *window,
                                              window);
 }
 
-static void
-check_window_is_active (GeditWindow *window,
-                       GParamSpec *property,
-                       gpointer useless)
-{
-       if (window->priv->window_state & GDK_WINDOW_STATE_FULLSCREEN)
-       {
-               gtk_widget_set_visible (window->priv->fullscreen_eventbox,
-                                       gtk_window_is_active (GTK_WINDOW (window)));
-       }
-}
-
 static void
 extension_added (PeasExtensionSet *extensions,
                 PeasPluginInfo   *info,
@@ -2868,12 +2856,6 @@ gedit_window_init (GeditWindow *window)
                          G_CALLBACK (window_unrealized),
                          NULL);
 
-       /* Check if the window is active for fullscreen */
-       g_signal_connect (window,
-                         "notify::is-active",
-                         G_CALLBACK (check_window_is_active),
-                         NULL);
-
        gedit_debug_message (DEBUG_WINDOW, "Update plugins ui");
 
        window->priv->extensions = peas_extension_set_new (PEAS_ENGINE (gedit_plugins_engine_get_default ()),


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