[gnome-control-center] info: Fix mnemonic activation for 'other media action'



commit 5fc4b1809b41c5acc7622df02744aba8dff91639
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Aug 1 20:36:04 2012 +0200

    info: Fix mnemonic activation for 'other media action'
    
    The mnemonic was pointing at a box, which is not activatable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681211

 panels/info/cc-info-panel.c |    6 ++++++
 panels/info/info.ui         |    3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 96a39de..e64d868 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1237,6 +1237,7 @@ other_type_combo_box_changed (GtkComboBox *combo_box,
   GtkTreeModel *model;
   char *x_content_type;
   GtkWidget *action_container;
+  GtkWidget *action_label;
 
   x_content_type = NULL;
 
@@ -1264,6 +1265,11 @@ other_type_combo_box_changed (GtkComboBox *combo_box,
   prepare_combo_box (self, self->priv->other_application_combo, NULL);
   gtk_widget_show (self->priv->other_application_combo);
 
+  action_label = GTK_WIDGET (gtk_builder_get_object (self->priv->builder,
+                                                     "media_other_action_label"));
+
+  gtk_label_set_mnemonic_widget (GTK_LABEL (action_label), self->priv->other_application_combo);
+
   g_free (x_content_type);
 }
 
diff --git a/panels/info/info.ui b/panels/info/info.ui
index 5e07805..bfc0423 100644
--- a/panels/info/info.ui
+++ b/panels/info/info.ui
@@ -103,13 +103,12 @@
                               </packing>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="label64">
+                              <object class="GtkLabel" id="media_other_action_label">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="xalign">0</property>
                                 <property name="label" translatable="yes">Acti_on:</property>
                                 <property name="use_underline">True</property>
-                                <property name="mnemonic_widget">media_other_action_container</property>
                               </object>
                               <packing>
                                 <property name="left_attach">0</property>



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