[latexila/gnome-3-14] MainWindow: remove shrink_window_when_unmaximized()



commit 8f301bc5b5148af6d2a37fd5ec3b5b80fe77d939
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Dec 31 22:01:40 2014 +0100

    MainWindow: remove shrink_window_when_unmaximized()
    
    It's no longer needed, with gnome-shell it works fine without that.

 src/main_window.vala |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index 2f43880..526f0b9 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -255,7 +255,6 @@ public class MainWindow : Window
         /* Other misc stuff */
 
         support_drag_and_drop ();
-        shrink_window_when_unmaximized ();
 
         delete_event.connect (() =>
         {
@@ -543,30 +542,6 @@ public class MainWindow : Window
         });
     }
 
-    private void shrink_window_when_unmaximized ()
-    {
-        window_state_event.connect ((e) =>
-        {
-            Gdk.EventWindowState event = e;
-
-            // The window has been unmaximized.
-            if (Gdk.WindowState.MAXIMIZED in event.changed_mask &&
-                ! (Gdk.WindowState.MAXIMIZED in event.new_window_state))
-            {
-                int width = screen.get_width ();
-                int height = screen.get_height ();
-
-                resize (width - 100, height - 100);
-
-                // Signal handled.
-                return true;
-            }
-
-            // Propagate the event further.
-            return false;
-        });
-    }
-
     private void show_or_hide_widgets ()
     {
         GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.preferences.ui");


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