X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Ffilesel.c;h=9e03f4bcd22e753fb67972b7ea0e09831ce3a435;hp=44f77a48461719f9d0b3756508d4f73c83f6e57f;hb=dbe0a4f0f26002412f6bddc9c3fa21658db2874a;hpb=b66133f117b63d4bed97e6dbc0c6c6e2e1b76fb1 diff --git a/src/filesel.c b/src/filesel.c index 44f77a484..9e03f4bcd 100644 --- a/src/filesel.c +++ b/src/filesel.c @@ -30,6 +30,7 @@ #include "filesel.h" #include "manage_window.h" #include "gtkutils.h" +#include "utils.h" static GtkWidget *filesel; static gboolean filesel_ack; @@ -181,15 +182,6 @@ static void filesel_create(const gchar *title, gboolean multiple_files) "select_row", GTK_SIGNAL_FUNC(filesel_dir_list_select_row_multi), NULL); - } else { - gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(filesel)->file_list), - "select_row", - GTK_SIGNAL_FUNC(filesel_file_list_select_row_single), - NULL); - gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(filesel)->dir_list), - "select_row", - GTK_SIGNAL_FUNC(filesel_dir_list_select_row_single), - NULL); } } @@ -263,26 +255,6 @@ static void filesel_dir_list_select_row_multi(GtkCList *clist, gint row, gint co gtk_clist_unselect_all(file_list); } -static void filesel_file_list_select_row_single(GtkCList *clist, gint row, gint col, - GdkEventButton *event, gpointer userdata) -{ - GtkEntry *entry = GTK_ENTRY(GTK_FILE_SELECTION(filesel)->selection_entry); - - g_free(filesel_oldfilename); - filesel_oldfilename = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); -} - -static void filesel_dir_list_select_row_single(GtkCList *clist, gint row, gint col, - GdkEventButton *event, gpointer userdata) -{ - GtkEntry *entry = GTK_ENTRY(GTK_FILE_SELECTION(filesel)->selection_entry); - - gtk_editable_delete_text(GTK_EDITABLE(entry), 0, -1); - if(filesel_oldfilename) { - gtk_entry_append_text(entry, filesel_oldfilename); - } -} - static GList *filesel_get_multiple_filenames(void) { /* as noted before we are not using the entry text when selecting