diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-07-27 16:37:37 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-27 16:37:37 +0000 |
commit | 6eca20f5c4106405ac5e094f32e363deb2f9225f (patch) | |
tree | 50856f539d7dbc088b1d8ef085f7fb82e9d8ce8b | |
parent | dd7cc1521f2a654e47c5c3ba5e5c428a48bb938f (diff) | |
download | gtk+-6eca20f5c4106405ac5e094f32e363deb2f9225f.tar.gz |
New function necessary to make GtkComboBox accessible. (#132847, Padraig
2004-07-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.h:
* gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New
function necessary to make GtkComboBox accessible. (#132847,
Padraig O'Briain)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gtk/gtkcombobox.c | 29 | ||||
-rw-r--r-- | gtk/gtkcombobox.h | 1 |
6 files changed, 56 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2004-07-27 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtkcombobox.h: + * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New + function necessary to make GtkComboBox accessible. (#132847, + Padraig O'Briain) + Tue Jul 27 02:34:06 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e29496dca1..e10f28261a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2004-07-27 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtkcombobox.h: + * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New + function necessary to make GtkComboBox accessible. (#132847, + Padraig O'Briain) + Tue Jul 27 02:34:06 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e29496dca1..e10f28261a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +2004-07-27 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtkcombobox.h: + * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New + function necessary to make GtkComboBox accessible. (#132847, + Padraig O'Briain) + Tue Jul 27 02:34:06 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e29496dca1..e10f28261a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2004-07-27 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtkcombobox.h: + * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New + function necessary to make GtkComboBox accessible. (#132847, + Padraig O'Briain) + Tue Jul 27 02:34:06 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 1618eda0fc..16f5f7bb2c 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -3065,9 +3065,7 @@ gtk_combo_box_list_auto_scroll (GtkComboBox *combo_box, static gboolean gtk_combo_box_list_scroll_timeout (GtkComboBox *combo_box) { - gboolean result; gint x, y; - GtkWidget *tv; GDK_THREADS_ENTER (); @@ -4411,3 +4409,30 @@ _gtk_combo_box_editing_canceled (GtkComboBox *combo_box) return combo_box->priv->editing_canceled; } + +/** + * gtk_combo_box_get_popup_acceSsible: + * @combo_box: a #GtkComboBox + * + * Gets the accessible object corresponding to the combo box's popup. + * + * This function is mostly intended for use by accessibility technologies; + * applications should have little use for it. + * + * Since: 2.6 + **/ +AtkObject* +gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box) +{ + AtkObject *atk_obj; + + g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), NULL); + + if (combo_box->priv->popup_widget) + { + atk_obj = gtk_widget_get_accessible (combo_box->priv->popup_widget); + return atk_obj; + } + + return NULL; +} diff --git a/gtk/gtkcombobox.h b/gtk/gtkcombobox.h index 71e82fbba9..bdbd38b80d 100644 --- a/gtk/gtkcombobox.h +++ b/gtk/gtkcombobox.h @@ -114,6 +114,7 @@ gchar *gtk_combo_box_get_active_text (GtkComboBox *combo_box); /* programmatic control */ void gtk_combo_box_popup (GtkComboBox *combo_box); void gtk_combo_box_popdown (GtkComboBox *combo_box); +AtkObject* gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box); /* private */ gboolean _gtk_combo_box_editing_canceled (GtkComboBox *combo_box); |