[easytag/wip/for-2.3.7: 7/20] Use gtk_accel_label_set_accel()



commit b76913f322e4ade1321f0416247b1f6c970e5f7d
Author: David King <amigadave amigadave com>
Date:   Fri Jan 9 21:54:00 2015 +0000

    Use gtk_accel_label_set_accel()
    
    Added in GTK+ 3.6.

 src/tag_area.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tag_area.c b/src/tag_area.c
index 6659601..970f686 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -843,9 +843,13 @@ on_entry_populate_popup (GtkEntry *entry,
                          EtTagArea *self)
 {
     GtkWidget *menu_item;
+    GtkWidget *label;
 
     /* Menu items */
     menu_item = gtk_menu_item_new_with_label (_("Tag selected files with this field"));
+    label = gtk_bin_get_child (GTK_BIN (menu_item));
+    gtk_accel_label_set_accel (GTK_ACCEL_LABEL (label), GDK_KEY_Return,
+                               GDK_CONTROL_MASK);
     g_object_set_data (G_OBJECT (menu_item), "tag-area", self);
     gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
     g_signal_connect_swapped (menu_item, "activate",


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