summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-09-14 20:48:02 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-09-14 20:48:02 +0200
commiteaac306db8aaa05234874720444a9cb382b8854d (patch)
treeff0230950bc4e66f08984d3b017d7787b6e4888f /plugins/gtkui
parentdcc779557804cffabd17360059b22dedc74e3a10 (diff)
don't allow seekbar to become zero-width
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/deadbeef.glade1
-rw-r--r--plugins/gtkui/interface.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gtkui/deadbeef.glade b/plugins/gtkui/deadbeef.glade
index 61f3300c..068ce295 100644
--- a/plugins/gtkui/deadbeef.glade
+++ b/plugins/gtkui/deadbeef.glade
@@ -800,6 +800,7 @@
<child>
<widget class="Custom" id="seekbar">
+ <property name="width_request">20</property>
<property name="visible">True</property>
<property name="creation_function">create_seekbar</property>
<property name="int1">0</property>
diff --git a/plugins/gtkui/interface.c b/plugins/gtkui/interface.c
index d06900e3..73e34c45 100644
--- a/plugins/gtkui/interface.c
+++ b/plugins/gtkui/interface.c
@@ -523,6 +523,7 @@ create_mainwin (void)
seekbar = create_seekbar ("seekbar", "", "", 0, 0);
gtk_widget_show (seekbar);
gtk_box_pack_start (GTK_BOX (hbox2), seekbar, TRUE, TRUE, 2);
+ gtk_widget_set_size_request (seekbar, 20, -1);
GTK_WIDGET_UNSET_FLAGS (seekbar, GTK_CAN_FOCUS);
GTK_WIDGET_UNSET_FLAGS (seekbar, GTK_CAN_DEFAULT);