Mercurial > audlegacy
comparison src/audacious/ui_fileopener.c @ 2500:04642d2d0941 trunk
[svn] - split out jump to track
author | nenolod |
---|---|
date | Sat, 10 Feb 2007 20:47:46 -0800 |
parents | 49e27e4d8426 |
children | 4b8db8c0521d |
comparison
equal
deleted
inserted
replaced
2499:15a1f5ee4d1c | 2500:04642d2d0941 |
---|---|
33 { | 33 { |
34 GSList *cur; | 34 GSList *cur; |
35 gchar *ptr; | 35 gchar *ptr; |
36 guint ctr = 0; | 36 guint ctr = 0; |
37 Playlist *playlist = playlist_get_active(); | 37 Playlist *playlist = playlist_get_active(); |
38 | |
39 if (GTK_IS_WIDGET(mainwin_jtf)) | |
40 gtk_widget_set_sensitive(mainwin_jtf, FALSE); | |
41 | 38 |
42 for (cur = files; cur; cur = g_slist_next(cur)) { | 39 for (cur = files; cur; cur = g_slist_next(cur)) { |
43 | 40 |
44 if (g_file_test(cur->data,G_FILE_TEST_IS_DIR)) { | 41 if (g_file_test(cur->data,G_FILE_TEST_IS_DIR)) { |
45 playlist_add_dir(playlist, (const gchar *) cur->data); | 42 playlist_add_dir(playlist, (const gchar *) cur->data); |
53 while (gtk_events_pending() ) gtk_main_iteration(); | 50 while (gtk_events_pending() ) gtk_main_iteration(); |
54 } | 51 } |
55 } | 52 } |
56 | 53 |
57 playlistwin_update_list(playlist); | 54 playlistwin_update_list(playlist); |
58 | |
59 if (GTK_IS_WIDGET(mainwin_jtf)) | |
60 gtk_widget_set_sensitive(mainwin_jtf, TRUE); | |
61 | 55 |
62 ptr = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(browser)); | 56 ptr = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(browser)); |
63 | 57 |
64 g_free(cfg.filesel_path); | 58 g_free(cfg.filesel_path); |
65 cfg.filesel_path = ptr; | 59 cfg.filesel_path = ptr; |
274 { | 268 { |
275 int ctr = 0; | 269 int ctr = 0; |
276 char *ptr; | 270 char *ptr; |
277 Playlist *playlist = playlist_get_active(); | 271 Playlist *playlist = playlist_get_active(); |
278 | 272 |
279 if (GTK_IS_WIDGET(mainwin_jtf)) | |
280 gtk_widget_set_sensitive(mainwin_jtf, FALSE); | |
281 | 273 |
282 while (files[ctr] != NULL) { | 274 while (files[ctr] != NULL) { |
283 playlist_add(playlist, files[ctr++]); | 275 playlist_add(playlist, files[ctr++]); |
284 } | 276 } |
285 playlistwin_update_list(playlist); | 277 playlistwin_update_list(playlist); |
286 | |
287 if (GTK_IS_WIDGET(mainwin_jtf)) | |
288 gtk_widget_set_sensitive(mainwin_jtf, TRUE); | |
289 | 278 |
290 gtk_label_get(GTK_LABEL(GTK_BIN(filesel->history_pulldown)->child), | 279 gtk_label_get(GTK_LABEL(GTK_BIN(filesel->history_pulldown)->child), |
291 &ptr); | 280 &ptr); |
292 | 281 |
293 /* This will give an extra slash if the current dir is the root. */ | 282 /* This will give an extra slash if the current dir is the root. */ |