]> Pileus Git - ~andy/gtk/commitdiff
Support mnemonic_activate here as well.
authorMatthias Clasen <maclas@gmx.de>
Thu, 5 Feb 2004 23:14:37 +0000 (23:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 5 Feb 2004 23:14:37 +0000 (23:14 +0000)
Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate):
Support mnemonic_activate here as well.

* gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
the button, not the tree_view.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcombobox.c
gtk/gtkcomboboxentry.c

index d2cc5e172e3db8984546c9223954f1d23e5cb579..1d5a3d5b976cc9117900bae7fe6ad8a16530b724 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
+       Support mnemonic_activate here as well.
+       
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
+       the button, not the tree_view.
+
 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
index d2cc5e172e3db8984546c9223954f1d23e5cb579..1d5a3d5b976cc9117900bae7fe6ad8a16530b724 100644 (file)
@@ -1,3 +1,11 @@
+Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
+       Support mnemonic_activate here as well.
+       
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
+       the button, not the tree_view.
+
 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
index d2cc5e172e3db8984546c9223954f1d23e5cb579..1d5a3d5b976cc9117900bae7fe6ad8a16530b724 100644 (file)
@@ -1,3 +1,11 @@
+Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
+       Support mnemonic_activate here as well.
+       
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
+       the button, not the tree_view.
+
 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
index d2cc5e172e3db8984546c9223954f1d23e5cb579..1d5a3d5b976cc9117900bae7fe6ad8a16530b724 100644 (file)
@@ -1,3 +1,11 @@
+Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
+       Support mnemonic_activate here as well.
+       
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
+       the button, not the tree_view.
+
 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
index d2cc5e172e3db8984546c9223954f1d23e5cb579..1d5a3d5b976cc9117900bae7fe6ad8a16530b724 100644 (file)
@@ -1,3 +1,11 @@
+Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
+       Support mnemonic_activate here as well.
+       
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
+       the button, not the tree_view.
+
 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
index f52a44168970cd3826848cf2234784f29e46705c..c666578e8e3f5a5a6b9987028581359f882a5102 100644 (file)
@@ -2834,7 +2834,7 @@ gtk_combo_box_mnemonic_activate (GtkWidget *widget,
 {
   GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
 
-  gtk_widget_grab_focus (combo_box->priv->tree_view);
+  gtk_widget_grab_focus (combo_box->priv->button);
 
   return TRUE;
 }
index c5f1965e1e488e0fbb31ea2b1e872a17d095ace9..a21e73f82375331f224b74da24062ec663609265 100644 (file)
@@ -51,7 +51,8 @@ static void gtk_combo_box_entry_active_changed   (GtkComboBox           *combo_b
                                                   gpointer               user_data);
 static void gtk_combo_box_entry_contents_changed (GtkEntry              *entry,
                                                   gpointer               user_data);
-
+static gboolean gtk_combo_box_entry_mnemonic_activate (GtkWidget        *entry,
+                                                      gboolean          group_cycling);
 
 enum
 {
@@ -93,11 +94,15 @@ static void
 gtk_combo_box_entry_class_init (GtkComboBoxEntryClass *klass)
 {
   GObjectClass *object_class;
+  GtkWidgetClass *widget_class;
 
   object_class = (GObjectClass *)klass;
   object_class->set_property = gtk_combo_box_entry_set_property;
   object_class->get_property = gtk_combo_box_entry_get_property;
 
+  widget_class = (GtkWidgetClass *)klass;
+  widget_class->mnemonic_activate = gtk_combo_box_entry_mnemonic_activate;
+
   g_object_class_install_property (object_class,
                                    PROP_TEXT_COLUMN,
                                    g_param_spec_int ("text_column",
@@ -321,3 +326,14 @@ gtk_combo_box_entry_get_text_column (GtkComboBoxEntry *entry_box)
 
   return entry_box->priv->text_column;
 }
+
+static gboolean
+gtk_combo_box_entry_mnemonic_activate (GtkWidget *widget,
+                                      gboolean   group_cycling)
+{
+  GtkComboBoxEntry *entry_box = GTK_COMBO_BOX_ENTRY (widget);
+
+  gtk_widget_grab_focus (entry_box->priv->entry);
+
+  return TRUE;
+}