From e83660bbd66a0612f6e7097522812e16062dc1b2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 29 Aug 2014 09:42:04 +0200 Subject: [PATCH] Do not instantiate cardwidget, devicewidget and rolewidget with a type of EventBox RoleWidget::create contains: x->get_widget_derived("streamWidget", w); But streamWidget is defined as following in the glade file: Where as RoleWidget is derived from [Minimal]StreamWidget, which is derived from Gtk::VBox, so this is clearly wrong. Adding: printf("rolewidget type: %s\n", g_type_name(G_TYPE_FROM_INSTANCE(w->gobj()))); for debugging shows that this really leads to RoleWidget being instantiated as an EventBox (yet things still work due to sheer luck). This commit fixes this, by putting the streamWidget id at the right level of the hierarchy in the glade file (and likewise for cardWidget and deviceWidget). Signed-off-by: Hans de Goede --- src/pavucontrol.glade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pavucontrol.glade b/src/pavucontrol.glade index 5116632..219f5a2 100644 --- a/src/pavucontrol.glade +++ b/src/pavucontrol.glade @@ -12,12 +12,12 @@ False window1 - + True False False - + True False @@ -202,12 +202,12 @@ False window1 - + True False False - + True False @@ -1331,12 +1331,12 @@ False window1 - + True False False - + True False