summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-18 21:54:13 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-18 21:54:13 +0200
commit070db568093e98d40ce5871ffaf4393f71af2ddf (patch)
tree0d117c151ee5c1ab80dc03f9d539467a3f4641e5 /plugins
parent0714cb3d381a00d4a8544ca28ddb64cec4072577 (diff)
fixed crash in search window
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddblistview.c3
-rw-r--r--plugins/gtkui/deadbeef.glade2
-rw-r--r--plugins/gtkui/interface.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index 2e16c10a..2a4384d4 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -660,6 +660,9 @@ ddb_listview_list_render (DdbListview *listview, int x, int y, int w, int h) {
DdbListviewIter next = listview->binding->next (it);
listview->binding->unref (it);
it = next;
+ if (!it) {
+ break; // sanity check, in case groups were not rebuilt yet
+ }
}
if (it) {
listview->binding->unref (it);
diff --git a/plugins/gtkui/deadbeef.glade b/plugins/gtkui/deadbeef.glade
index 409ae355..854d46fd 100644
--- a/plugins/gtkui/deadbeef.glade
+++ b/plugins/gtkui/deadbeef.glade
@@ -4404,7 +4404,7 @@ SOCKS5_HOSTNAME</property>
</widget>
<packing>
<property name="padding">0</property>
- <property name="expand">False</property>
+ <property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
diff --git a/plugins/gtkui/interface.c b/plugins/gtkui/interface.c
index e92d410b..bd6222d4 100644
--- a/plugins/gtkui/interface.c
+++ b/plugins/gtkui/interface.c
@@ -1548,7 +1548,7 @@ create_prefwin (void)
notebook = gtk_notebook_new ();
gtk_widget_show (notebook);
- gtk_box_pack_start (GTK_BOX (dialog_vbox2), notebook, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (dialog_vbox2), notebook, TRUE, TRUE, 0);
vbox10 = gtk_vbox_new (FALSE, 8);
gtk_widget_show (vbox10);