Mercurial > audlegacy
comparison audacious/prefswin.c @ 1429:a360afd8df52 trunk
[svn] Make annoying recursion that consistently returns wrong art, optional.
author | nemo |
---|---|
date | Mon, 24 Jul 2006 16:20:05 -0700 |
parents | 878c7f8d0a8c |
children | f12d7e208b43 |
comparison
equal
deleted
inserted
replaced
1428:f71e7b09a43f | 1429:a360afd8df52 |
---|---|
2044 | 2044 |
2045 gtk_entry_set_text(cover_name_include, cfg.cover_name_include); | 2045 gtk_entry_set_text(cover_name_include, cfg.cover_name_include); |
2046 gtk_entry_set_text(cover_name_exclude, cfg.cover_name_exclude); | 2046 gtk_entry_set_text(cover_name_exclude, cfg.cover_name_exclude); |
2047 | 2047 |
2048 gtk_widget_show(filepopup_settings); | 2048 gtk_widget_show(filepopup_settings); |
2049 } | |
2050 | |
2051 static void | |
2052 on_recurse_for_cover_depth_realize(GtkSpinButton * button, | |
2053 gpointer data) | |
2054 { | |
2055 gtk_spin_button_set_value(button, cfg.recurse_for_cover_depth); | |
2056 } | |
2057 | |
2058 static void | |
2059 on_recurse_for_cover_depth_changed(GtkSpinButton * button, | |
2060 gpointer data) | |
2061 { | |
2062 cfg.recurse_for_cover_depth = gtk_spin_button_get_value_as_int(button); | |
2063 } | |
2064 | |
2065 static void | |
2066 on_recurse_for_cover_realize(GtkToggleButton * button, | |
2067 gpointer data) | |
2068 { | |
2069 gboolean state = cfg.recurse_for_cover; | |
2070 gtk_toggle_button_set_active(button, state); | |
2071 gtk_widget_set_sensitive(GTK_WIDGET(data), state); | |
2072 } | |
2073 | |
2074 static void | |
2075 on_recurse_for_cover_toggled(GtkToggleButton * button, | |
2076 gpointer data) | |
2077 { | |
2078 gboolean state = gtk_toggle_button_get_active(button); | |
2079 cfg.recurse_for_cover = state; | |
2080 gtk_widget_set_sensitive(GTK_WIDGET(data), state); | |
2049 } | 2081 } |
2050 | 2082 |
2051 static void | 2083 static void |
2052 on_filepopup_settings_ok_clicked(GtkButton *button, gpointer data) | 2084 on_filepopup_settings_ok_clicked(GtkButton *button, gpointer data) |
2053 { | 2085 { |
2142 FUNC_MAP_ENTRY(on_output_plugin_bufsize_value_changed) | 2174 FUNC_MAP_ENTRY(on_output_plugin_bufsize_value_changed) |
2143 FUNC_MAP_ENTRY(on_audio_format_det_cb_toggled) | 2175 FUNC_MAP_ENTRY(on_audio_format_det_cb_toggled) |
2144 FUNC_MAP_ENTRY(on_audio_format_det_cb_realize) | 2176 FUNC_MAP_ENTRY(on_audio_format_det_cb_realize) |
2145 FUNC_MAP_ENTRY(on_show_filepopup_for_tuple_realize) | 2177 FUNC_MAP_ENTRY(on_show_filepopup_for_tuple_realize) |
2146 FUNC_MAP_ENTRY(on_show_filepopup_for_tuple_toggled) | 2178 FUNC_MAP_ENTRY(on_show_filepopup_for_tuple_toggled) |
2179 FUNC_MAP_ENTRY(on_recurse_for_cover_depth_realize) | |
2180 FUNC_MAP_ENTRY(on_recurse_for_cover_depth_changed) | |
2147 FUNC_MAP_ENTRY(on_filepopup_for_tuple_settings_clicked) | 2181 FUNC_MAP_ENTRY(on_filepopup_for_tuple_settings_clicked) |
2148 FUNC_MAP_ENTRY(on_continue_playback_on_startup_realize) | 2182 FUNC_MAP_ENTRY(on_continue_playback_on_startup_realize) |
2149 FUNC_MAP_ENTRY(on_continue_playback_on_startup_toggled) | 2183 FUNC_MAP_ENTRY(on_continue_playback_on_startup_toggled) |
2150 | 2184 |
2151 /* Filepopup settings */ | 2185 /* Filepopup settings */ |
2376 g_string_free( aud_version_string , TRUE ); | 2410 g_string_free( aud_version_string , TRUE ); |
2377 | 2411 |
2378 /* Create window for filepopup settings */ | 2412 /* Create window for filepopup settings */ |
2379 filepopup_settings = glade_xml_get_widget(xml, "filepopup_for_tuple_settings"); | 2413 filepopup_settings = glade_xml_get_widget(xml, "filepopup_for_tuple_settings"); |
2380 gtk_window_set_transient_for(GTK_WINDOW(filepopup_settings), GTK_WINDOW(prefswin)); | 2414 gtk_window_set_transient_for(GTK_WINDOW(filepopup_settings), GTK_WINDOW(prefswin)); |
2415 widget = glade_xml_get_widget(xml, "recurse_for_cover_depth_box"); | |
2416 widget2 = glade_xml_get_widget(xml, "recurse_for_cover"); | |
2417 g_signal_connect_after(G_OBJECT(widget2), "realize", | |
2418 G_CALLBACK(on_recurse_for_cover_realize), | |
2419 widget); | |
2420 g_signal_connect(G_OBJECT(widget2), "toggled", | |
2421 G_CALLBACK(on_recurse_for_cover_toggled), | |
2422 widget); | |
2381 } | 2423 } |
2382 | 2424 |
2383 void | 2425 void |
2384 show_prefs_window(void) | 2426 show_prefs_window(void) |
2385 { | 2427 { |