# HG changeset patch # User ib # Date 1367318771 0 # Node ID 2edbcc85bf5a6a5e52b3edaae7ac7ea63437bd66 # Parent 042329ce129778730d669fbc1546ce0ec9e8ed35 Remove signal "activate" handling. The combo boxes already immediately react on the "changed" signal. So there is nothing more to be done on "activate". diff -r 042329ce1297 -r 2edbcc85bf5a gui/dialog/fileselect.c --- 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);