Mercurial > audlegacy
changeset 374:2454f2ab6770 trunk
[svn] Remove last bits of the dirbrowser.
author | chainsaw |
---|---|
date | Sun, 01 Jan 2006 04:57:22 -0800 |
parents | 7e81e9ef40f2 |
children | 244cc47a7ae3 |
files | audacious/mainwin.c |
diffstat | 1 files changed, 0 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/mainwin.c Sat Dec 31 17:35:02 2005 -0800 +++ b/audacious/mainwin.c Sun Jan 01 04:57:22 2006 -0800 @@ -1864,60 +1864,6 @@ } static void -dirbrowser_add_dir(const gchar * dir) -{ - g_free(cfg.filesel_path); - cfg.filesel_path = g_strdup(dir); - playlist_add_dir(dir); -} - -static void -dirbrowser_on_response(GtkFileChooserDialog * dialog, - gint result, - gpointer data) -{ - - gchar *pathname; - -// gtk_widget_hide(GTK_WIDGET(dialog)); - - switch (result) { - case GTK_RESPONSE_ACCEPT: - pathname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - dirbrowser_add_dir(pathname); - g_free(pathname); - break; - - case GTK_RESPONSE_CLOSE: - break; - } - -} - - -static GtkWidget * -dirbrowser_new(const gchar * path) -{ - GtkWidget *dialog; - - dialog = gtk_file_chooser_dialog_new(_("Add Folders"), - GTK_WINDOW(mainwin), - GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, - GTK_STOCK_ADD, GTK_RESPONSE_OK, - GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, - NULL); - gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); - - gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), - path); - g_signal_connect(dialog, "response", - G_CALLBACK(dirbrowser_on_response), - NULL); - - return dialog; -} - -static void on_add_url_add_clicked(GtkWidget * widget, GtkWidget * entry) {