diff options
author | David Robillard <d@drobilla.net> | 2007-10-03 20:12:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-03 20:12:18 +0000 |
commit | 34d19692c407c1474521cc7f93555fbbcfd8e833 (patch) | |
tree | 9544757c9769f35c4a472330ebfe53ec9109a180 /src/libs/gui | |
parent | 8a0cf9b3d1111e31ef609b80a37f57c738f3e44b (diff) | |
download | ingen-34d19692c407c1474521cc7f93555fbbcfd8e833.tar.gz ingen-34d19692c407c1474521cc7f93555fbbcfd8e833.tar.bz2 ingen-34d19692c407c1474521cc7f93555fbbcfd8e833.zip |
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
Diffstat (limited to 'src/libs/gui')
-rw-r--r-- | src/libs/gui/NodeModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()) |