changeset 36096:2edbcc85bf5a

Remove signal "activate" handling. The combo boxes already immediately react on the "changed" signal. So there is nothing more to be done on "activate".
author ib
date Tue, 30 Apr 2013 10:46:11 +0000
parents 042329ce1297
children 64282f0366c6
files gui/dialog/fileselect.c
diffstat 1 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Tue Apr 30 10:41:28 2013 +0000
+++ b/gui/dialog/fileselect.c	Tue Apr 30 10:46:11 2013 +0000
@@ -367,15 +367,6 @@
     CheckDir(fsFNameList);
 }
 
-static void fs_fsFilterCombo_activate(GtkEntry *entry,
-                                      gpointer user_data)
-{
-    (void)entry;
-
-    fsFilter = gtk_entry_get_text(GTK_ENTRY(user_data));
-    CheckDir(fsFNameList);
-}
-
 static void fs_fsPathCombo_changed(GtkEditable *editable,
                                    gpointer user_data)
 {
@@ -391,21 +382,6 @@
         CheckDir(fsFNameList);
 }
 
-static void fs_fsPathCombo_activate(GtkEntry *entry,
-                                    gpointer user_data)
-{
-    const unsigned char *str;
-    gchar *dirname;
-
-    (void)entry;
-
-    str     = gtk_entry_get_text(GTK_ENTRY(user_data));
-    dirname = g_hash_table_lookup(fsPathTable, str);
-
-    if (chdir(dirname ? (const unsigned char *)dirname : str) != -1)
-        CheckDir(fsFNameList);
-}
-
 static gboolean fs_fsFNameList_event(GtkWidget *widget,
                                      GdkEvent *event,
                                      gpointer user_data)
@@ -692,9 +668,7 @@
     gtk_signal_connect(GTK_OBJECT(fsFNameListWindow), "key_release_event", GTK_SIGNAL_FUNC(on_FileSelect_key_release_event), NULL);
 
     gtk_signal_connect(GTK_OBJECT(fsFilterCombo), "changed", GTK_SIGNAL_FUNC(fs_fsFilterCombo_changed), fsFilterCombo);
-    gtk_signal_connect(GTK_OBJECT(fsFilterCombo), "activate", GTK_SIGNAL_FUNC(fs_fsFilterCombo_activate), fsFilterCombo);
     gtk_signal_connect(GTK_OBJECT(fsPathCombo), "changed", GTK_SIGNAL_FUNC(fs_fsPathCombo_changed), fsPathCombo);
-    gtk_signal_connect(GTK_OBJECT(fsPathCombo), "activate", GTK_SIGNAL_FUNC(fs_fsPathCombo_activate), fsPathCombo);
     gtk_signal_connect(GTK_OBJECT(fsUp), "released", GTK_SIGNAL_FUNC(fs_Up_released), fsFNameList);
     gtk_signal_connect(GTK_OBJECT(fsUp), "key_release_event", GTK_SIGNAL_FUNC(on_FileSelect_key_release_event), NULL);
     gtk_signal_connect(GTK_OBJECT(fsOk), "released", GTK_SIGNAL_FUNC(fs_Ok_released), fsCombo4);