[easytag/wip/musicbrainz-support-merge: 20/75] Pressing Return/Enter in Manual Search Combo Box Text will start the manual search



commit 976eb87324f29cd89c158cadab09c810ce099ee4
Author: Abhinav <abhijangda hotmail com>
Date:   Mon Jun 23 23:22:58 2014 +0530

    Pressing Return/Enter in Manual Search Combo Box Text will start the manual search
    
    Added callback for Entry of Search ComboBoxText on pressing enter.

 src/musicbrainz_dialog.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/musicbrainz_dialog.c b/src/musicbrainz_dialog.c
index 45adcfe..fb26b8c 100755
--- a/src/musicbrainz_dialog.c
+++ b/src/musicbrainz_dialog.c
@@ -680,6 +680,7 @@ void
 et_open_musicbrainz_dialog ()
 {
     GtkWidget *cb_manual_search_in;
+    GtkWidget *cb_search;
     GError *error;
 
     builder = gtk_builder_new ();
@@ -704,7 +705,10 @@ et_open_musicbrainz_dialog ()
     gtk_widget_set_size_request (mbDialog, 600, 500);
     gtk_box_pack_start (GTK_BOX (gtk_builder_get_object (builder, "centralBox")),
                         entityView, TRUE, TRUE, 2);
-    
+
+    cb_search = GTK_WIDGET (gtk_builder_get_object (builder, "cbManualSearch"));
+    g_signal_connect (gtk_bin_get_child (GTK_BIN (cb_search)), "activate",
+                      G_CALLBACK (btn_manual_find_clicked), NULL);
     g_signal_connect (gtk_builder_get_object (builder, "btnManualFind"),
                       "clicked", G_CALLBACK (btn_manual_find_clicked),
                       NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]