Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
2627:4c069ce61053 | 2628:85acf3f98ed0 |
---|---|
1855 GtkWidget *widget; | 1855 GtkWidget *widget; |
1856 | 1856 |
1857 xml = prefswin_get_xml(); | 1857 xml = prefswin_get_xml(); |
1858 widget = glade_xml_get_widget(xml, "skin_refresh_button"); | 1858 widget = glade_xml_get_widget(xml, "skin_refresh_button"); |
1859 skin_view_realize(treeview); | 1859 skin_view_realize(treeview); |
1860 skin_view_update(treeview, GTK_WIDGET(widget)); | |
1861 | 1860 |
1862 return TRUE; | 1861 return TRUE; |
1863 } | 1862 } |
1864 | 1863 |
1865 static void | 1864 static void |
2679 } | 2678 } |
2680 | 2679 |
2681 void | 2680 void |
2682 show_prefs_window(void) | 2681 show_prefs_window(void) |
2683 { | 2682 { |
2683 static gboolean skinlist_filled = FALSE; | |
2684 | |
2684 gtk_widget_show(prefswin); | 2685 gtk_widget_show(prefswin); |
2686 | |
2687 if ( !skinlist_filled ) | |
2688 { | |
2689 GladeXML *xml; | |
2690 GtkWidget *widget, *widget2; | |
2691 | |
2692 xml = prefswin_get_xml(); | |
2693 | |
2694 widget = glade_xml_get_widget(xml, "skin_view"); | |
2695 widget2 = glade_xml_get_widget(xml, "skin_refresh_button"); | |
2696 skin_view_update(GTK_TREE_VIEW(widget), GTK_WIDGET(widget2)); | |
2697 skinlist_filled = TRUE; | |
2698 } | |
2685 } | 2699 } |
2686 | 2700 |
2687 static void | 2701 static void |
2688 prefswin_page_queue_new(GtkWidget *container, gchar *name, gchar *imgurl) | 2702 prefswin_page_queue_new(GtkWidget *container, gchar *name, gchar *imgurl) |
2689 { | 2703 { |