aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2005-06-08 18:19:28 +0000
committerJason Woodward2005-06-08 18:19:28 +0000
commit20ecb90df76bd795bd45a809cdf276ff31551661 (patch)
tree7eb3308e057b16865fd6539a43efc1e739c68747
parent80abfe67971eb050a3648a198e61d2e194f233f9 (diff)
downloadgslapt-20ecb90df76bd795bd45a809cdf276ff31551661.tar.gz
add sources and excludes by hitting the enter key
-rw-r--r--gslapt.glade4
-rw-r--r--src/callbacks.c1
-rw-r--r--src/interface.c12
3 files changed, 17 insertions, 0 deletions
diff --git a/gslapt.glade b/gslapt.glade
index 3b47f70..6b5a3e7 100644
--- a/gslapt.glade
+++ b/gslapt.glade
@@ -378,6 +378,8 @@
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="activates_default">False</property>
+ <signal name="editing_done" handler="preferences_exclude_add" object="window_preferences" last_modification_time="Wed, 08 Jun 2005 18:22:36 GMT"/>
+ <signal name="activate" handler="preferences_exclude_add" object="window_preferences" last_modification_time="Wed, 08 Jun 2005 18:22:28 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@@ -642,6 +644,8 @@
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="activates_default">False</property>
+ <signal name="editing_done" handler="preferences_sources_add" object="window_preferences" last_modification_time="Wed, 08 Jun 2005 18:21:48 GMT"/>
+ <signal name="activate" handler="preferences_sources_add" object="window_preferences" last_modification_time="Wed, 08 Jun 2005 18:21:54 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
diff --git a/src/callbacks.c b/src/callbacks.c
index d7f6505..062dfcd 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -2829,3 +2829,4 @@ GtkEntryCompletion *build_search_completions(void)
return completion;
}
+
diff --git a/src/interface.c b/src/interface.c
index 751ed39..a6368c0 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -348,12 +348,24 @@ create_window_preferences (void)
g_signal_connect_swapped ((gpointer) preferences_remove_exclude_button, "clicked",
G_CALLBACK (preferences_exclude_remove),
GTK_OBJECT (window_preferences));
+ g_signal_connect_swapped ((gpointer) new_exclude_entry, "editing_done",
+ G_CALLBACK (preferences_exclude_add),
+ GTK_OBJECT (window_preferences));
+ g_signal_connect_swapped ((gpointer) new_exclude_entry, "activate",
+ G_CALLBACK (preferences_exclude_add),
+ GTK_OBJECT (window_preferences));
g_signal_connect_swapped ((gpointer) preferences_add_exclude_button, "clicked",
G_CALLBACK (preferences_exclude_add),
GTK_OBJECT (window_preferences));
g_signal_connect_swapped ((gpointer) preferences_remove_source_button, "clicked",
G_CALLBACK (preferences_sources_remove),
GTK_OBJECT (window_preferences));
+ g_signal_connect_swapped ((gpointer) new_source_entry, "editing_done",
+ G_CALLBACK (preferences_sources_add),
+ GTK_OBJECT (window_preferences));
+ g_signal_connect_swapped ((gpointer) new_source_entry, "activate",
+ G_CALLBACK (preferences_sources_add),
+ GTK_OBJECT (window_preferences));
g_signal_connect_swapped ((gpointer) preferences_add_source_button, "clicked",
G_CALLBACK (preferences_sources_add),
GTK_OBJECT (window_preferences));