summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r--gtk/gtkcombobox.c29
1 files changed, 27 insertions, 2 deletions
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;
+}