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



commit ef7fd1a0e2ad833c29e6cf8e9c40ac59e6cd68d7
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 fb76ab7..2bea39b 100755
--- a/src/musicbrainz_dialog.c
+++ b/src/musicbrainz_dialog.c
@@ -681,6 +681,7 @@ void
 et_open_musicbrainz_dialog ()
 {
     GtkWidget *cb_manual_search_in;
+    GtkWidget *cb_search;
     GError *error;
 
     builder = gtk_builder_new ();
@@ -705,7 +706,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]