[latexila] MainWindow: remove shrink_window_when_unmaximized()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] MainWindow: remove shrink_window_when_unmaximized()
- Date: Wed, 31 Dec 2014 21:03:36 +0000 (UTC)
commit 504a2ce8eb8551124b4e64759d98c0b9704442f9
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 a40ab2d..70a2822 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]