Mercurial > audlegacy
diff src/audacious/ui_preferences.c @ 2628:85acf3f98ed0 trunk
[svn] - prevent skin list overlap when it's populated for the first time and user quickly switchs to other tabs in the prefswin
| author | giacomo |
|---|---|
| date | Fri, 16 Mar 2007 19:21:54 -0700 |
| parents | 0ad10a95ed10 |
| children | 9b763f1f4e6a |
line wrap: on
line diff
--- a/src/audacious/ui_preferences.c Fri Mar 16 19:07:19 2007 -0700 +++ b/src/audacious/ui_preferences.c Fri Mar 16 19:21:54 2007 -0700 @@ -1857,7 +1857,6 @@ xml = prefswin_get_xml(); widget = glade_xml_get_widget(xml, "skin_refresh_button"); skin_view_realize(treeview); - skin_view_update(treeview, GTK_WIDGET(widget)); return TRUE; } @@ -2681,7 +2680,22 @@ void show_prefs_window(void) { + static gboolean skinlist_filled = FALSE; + gtk_widget_show(prefswin); + + if ( !skinlist_filled ) + { + GladeXML *xml; + GtkWidget *widget, *widget2; + + xml = prefswin_get_xml(); + + widget = glade_xml_get_widget(xml, "skin_view"); + widget2 = glade_xml_get_widget(xml, "skin_refresh_button"); + skin_view_update(GTK_TREE_VIEW(widget), GTK_WIDGET(widget2)); + skinlist_filled = TRUE; + } } static void
