[easytag] Fix signal handler for apply-to-selection icons



commit 7de273759ec21f574fea53104f7e658c4bcbc6b9
Author: David King <amigadave amigadave com>
Date:   Tue Sep 9 11:37:04 2014 +0100

    Fix signal handler for apply-to-selection icons
    
    Thanks to Steven Ulrick for the bug report.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736315

 src/tag_area.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/tag_area.c b/src/tag_area.c
index 721e6fa..1050fb2 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -676,6 +676,15 @@ on_apply_to_selection (GObject *object,
 }
 
 static void
+on_entry_icon_release (GtkEntry *entry,
+                       GtkEntryIconPosition icon_pos,
+                       GdkEvent *event,
+                       EtTagArea *self)
+{
+    on_apply_to_selection (G_OBJECT (entry), self);
+}
+
+static void
 Convert_P20_And_Underscore_Into_Spaces (GtkWidget *entry)
 {
     gchar *string = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));
@@ -934,7 +943,7 @@ et_tag_field_connect_signals (GtkEntry *entry,
                             G_CALLBACK (et_tag_field_on_key_press_event),
                             self);
     g_signal_connect (entry, "icon-release",
-                      G_CALLBACK (on_apply_to_selection),
+                      G_CALLBACK (on_entry_icon_release),
                       self);
     g_signal_connect (entry, "populate-popup",
                       G_CALLBACK (on_entry_populate_popup), self);


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