remove file selection dialog lost filename workaround (causes segfault on doubleclick)
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 10 Oct 2001 15:14:56 +0000 (15:14 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 10 Oct 2001 15:14:56 +0000 (15:14 +0000)
ChangeLog.claws
src/filesel.c

index ee3b7ec..8f235af 100644 (file)
@@ -5,6 +5,9 @@
        * src/prefs_folder_item.c
                using table for widget alignment
                fixed memory leak and broken octal display
+       * src/filesel.c
+               remove file selection dialog lost filename
+               workaround (causes segfault on doubleclick)
 
 2001-10-10 [paul]      0.6.3claws6
 
index 44f77a4..9e03f4b 100644 (file)
@@ -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