summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-03-12 05:05:48 +0100
committerBenjamin Otte <otte@redhat.com>2023-03-23 04:45:03 +0100
commit1f3a2734ebd9073f96d0170b4f30d863ced01518 (patch)
treee4bb19cd181ee8a899a36b26d8a30be679c039d9 /gtk/a11y
parenta18760a0942553a7fea54fafe6b8f5921782df89 (diff)
downloadgtk+-1f3a2734ebd9073f96d0170b4f30d863ced01518.tar.gz
listitemwidget: split out GtkListItemBase
There's 2 reasons for this: 1. Adding a custom widget for columnview rows 2. Using this as base class for sections
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkatspiselection.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/a11y/gtkatspiselection.c b/gtk/a11y/gtkatspiselection.c
index db2c76c03e..7d67d5f062 100644
--- a/gtk/a11y/gtkatspiselection.c
+++ b/gtk/a11y/gtkatspiselection.c
@@ -256,7 +256,7 @@ listview_handle_method (GDBusConnection *connection,
child;
child = gtk_widget_get_next_sibling (child))
{
- if (gtk_list_item_widget_get_selected (GTK_LIST_ITEM_WIDGET (child)))
+ if (gtk_list_item_base_get_selected (GTK_LIST_ITEM_BASE (child)))
{
if (idx == 0)
break;
@@ -303,7 +303,7 @@ listview_handle_method (GDBusConnection *connection,
guint pos;
gboolean ret;
- pos = gtk_list_item_widget_get_position (GTK_LIST_ITEM_WIDGET (child));
+ pos = gtk_list_item_base_get_position (GTK_LIST_ITEM_BASE (child));
ret = gtk_selection_model_select_item (model, pos, FALSE);
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", ret));
@@ -335,7 +335,7 @@ listview_handle_method (GDBusConnection *connection,
guint pos;
gboolean ret;
- pos = gtk_list_item_widget_get_position (GTK_LIST_ITEM_WIDGET (child));
+ pos = gtk_list_item_base_get_position (GTK_LIST_ITEM_BASE (child));
ret = gtk_selection_model_unselect_item (model, pos);
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", ret));
@@ -353,7 +353,7 @@ listview_handle_method (GDBusConnection *connection,
child;
child = gtk_widget_get_next_sibling (child))
{
- if (gtk_list_item_widget_get_selected (GTK_LIST_ITEM_WIDGET (child)))
+ if (gtk_list_item_base_get_selected (GTK_LIST_ITEM_BASE (child)))
{
if (idx == 0)
break;
@@ -371,7 +371,7 @@ listview_handle_method (GDBusConnection *connection,
guint pos;
gboolean ret;
- pos = gtk_list_item_widget_get_position (GTK_LIST_ITEM_WIDGET (child));
+ pos = gtk_list_item_base_get_position (GTK_LIST_ITEM_BASE (child));
ret = gtk_selection_model_unselect_item (model, pos);
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", ret));
@@ -402,7 +402,7 @@ listview_handle_method (GDBusConnection *connection,
{
gboolean ret;
- ret = gtk_list_item_widget_get_selected (GTK_LIST_ITEM_WIDGET (child));
+ ret = gtk_list_item_base_get_selected (GTK_LIST_ITEM_BASE (child));
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", ret));
}