Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 04 Aug 2012 16:18:51 Commit: b972c5e09aafc26f7d0c76187243a098204d23b0 https://github.com/geany/geany-plugins/commit/b972c5e09aafc26f7d0c76187243a0...
Log Message: ----------- commander: Respond to the entry's ::activate signal
Although we should never get this signal since we catch Enter/Return key presses anyway, handling the signal makes sure we respond to activation, whatever triggered it.
Modified Paths: -------------- commander/src/commander-plugin.c
Modified: commander/src/commander-plugin.c 9 files changed, 9 insertions(+), 0 deletions(-) =================================================================== @@ -489,6 +489,13 @@ enum { }
static void +on_entry_activate (GtkEntry *entry, + gpointer dummy) +{ + tree_view_activate_focused_row (GTK_TREE_VIEW (plugin_data.view)); +} + +static void on_panel_hide (GtkWidget *widget, gpointer dummy) { @@ -610,6 +617,8 @@ enum { plugin_data.entry = gtk_entry_new (); g_signal_connect (plugin_data.entry, "notify::text", G_CALLBACK (on_entry_text_notify), NULL); + g_signal_connect (plugin_data.entry, "activate", + G_CALLBACK (on_entry_activate), NULL); gtk_box_pack_start (GTK_BOX (box), plugin_data.entry, FALSE, TRUE, 0);
plugin_data.store = gtk_list_store_new (COL_COUNT,
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org