[gnome-2048] Set window minimum size
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Set window minimum size
- Date: Fri, 13 Feb 2015 23:38:58 +0000 (UTC)
commit 3948f4f97efdc75a16e977da1ee9bd2532bdb882
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sat Feb 14 00:04:08 2015 +0100
Set window minimum size
src/application.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index 1a8eafe..7ad0c67 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -146,6 +146,11 @@ public class Application : Gtk.Application
_window.configure_event.connect (window_configure_event_cb);
_window.window_state_event.connect (window_state_event_cb);
+ Gdk.Geometry geom = Gdk.Geometry ();
+ geom.min_height = _window.default_height;
+ geom.min_width = _window.default_width;
+ _window.set_geometry_hints (_window, geom, Gdk.WindowHints.MIN_SIZE);
+
_window.show_all ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]