[gnome-contacts] Fixed ListPane changing width



commit f3c5798fafa6527dcd502f5d8c20d485ebfbab20
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat May 4 11:31:30 2013 -0400

    Fixed ListPane changing width
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=696265

 src/contacts-list-pane.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index fbe99c1..e2a2879 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -95,7 +95,6 @@ public class Contacts.ListPane : Frame {
     search_entry_item.add (filter_entry);
     toolbar.add (search_entry_item);
 
-    this.set_size_request (315, -1);
     this.set_hexpand (false);
 
     var scrolled = new ScrolledWindow(null, null);
@@ -184,4 +183,9 @@ public class Contacts.ListPane : Frame {
     contacts_view.hide_selectors ();
     selection_revealer.set_reveal_child (false);
   }
+
+  /* Limiting width hack */
+  public override void get_preferred_width (out int minimum_width, out int natural_width) {
+    minimum_width = natural_width = 300;
+  }
 }


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