[gnome-boxes] Don't allow smaller window than the UI requires
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Don't allow smaller window than the UI requires
- Date: Fri, 22 Feb 2013 12:10:50 +0000 (UTC)
commit 4bcdb19bd8e1c18d2ce2386e0d59f6837db02eaa
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 24 13:10:08 2013 +0100
Don't allow smaller window than the UI requires
We activate the GtkClutter.Embed use-layout-size mode to ensure this.
With this it may happen that the window size grows when you switch
to a new mode, like the wizard. However, since the UI packing is
pretty good these days this really only happens for really tiny
window sizes which are not very common. And any way, its far better
than just cutting off the UI.
https://bugzilla.gnome.org/show_bug.cgi?id=678960
src/clutter-widget.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/clutter-widget.vala b/src/clutter-widget.vala
index 5404cab..47ca3dc 100644
--- a/src/clutter-widget.vala
+++ b/src/clutter-widget.vala
@@ -15,6 +15,7 @@ using Clutter;
private class Boxes.ClutterWidget: GtkClutter.Embed {
public ClutterWidget () {
set_can_focus (false);
+ set ("use-layout-size", true);
}
public override bool key_press_event (Gdk.EventKey event) {
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]