From 34d19692c407c1474521cc7f93555fbbcfd8e833 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Oct 2007 20:12:18 +0000 Subject: Fix embedded widget size (don't crop pixels on the RHS). git-svn-id: http://svn.drobilla.net/lad/ingen@811 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/NodeModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index e6c09e0c..b19cf3ef 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -159,13 +159,13 @@ NodeModule::embed_gui(bool embed) _gui->show_all(); _gui_item->show(); - GtkRequisition r; - gtk_widget_size_request(c_widget, &r); + Gtk::Requisition r = container->size_request(); gui_size_request(&r); _gui_item->raise_to_top(); - _gui->signal_size_request().connect(sigc::mem_fun(this, &NodeModule::gui_size_request)); + container->signal_size_request().connect( + sigc::mem_fun(this, &NodeModule::gui_size_request)); for (PortModelList::const_iterator p = _node->ports().begin(); p != _node->ports().end(); ++p) if ((*p)->is_control() && (*p)->is_output()) -- cgit v1.2.1