Resize the history list treeview in GTK3, not the parent

This commit is contained in:
André Stösel 2011-10-12 18:11:54 +02:00 committed by Christian Dywan
parent bd5c317ad9
commit b639067520

View file

@ -133,8 +133,8 @@ namespace HistoryList {
int max_lines = 10; int max_lines = 10;
#if HAVE_GTK3 #if HAVE_GTK3
requisition = Requisition(); requisition = Requisition();
get_preferred_width(out requisition.width, null); this.treeview.get_preferred_width(out requisition.width, null);
get_preferred_height(out requisition.height, null); this.treeview.get_preferred_height(out requisition.height, null);
#else #else
this.treeview.size_request (out requisition); this.treeview.size_request (out requisition);
#endif #endif