[gtk/matthiasc/a11y] paned: Set accessible value properties
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/a11y] paned: Set accessible value properties
- Date: Sun, 11 Oct 2020 15:53:47 +0000 (UTC)
commit 0fda8f5211454dfe61dbe5cbaad719d2f46ebf30
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 11 11:30:54 2020 -0400
paned: Set accessible value properties
This is what we did in GTK 3.
gtk/gtkpaned.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 8ac244d483..929779a39a 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1385,6 +1385,14 @@ gtk_paned_size_allocate (GtkWidget *widget,
gtk_widget_set_child_visible (paned->handle_widget, FALSE);
}
+
+ gtk_accessible_update_property (GTK_ACCESSIBLE (paned),
+ GTK_ACCESSIBLE_PROPERTY_VALUE_MIN, 0.0,
+ GTK_ACCESSIBLE_PROPERTY_VALUE_MAX,
+ (double) (paned->orientation == GTK_ORIENTATION_HORIZONTAL ? width :
height),
+ GTK_ACCESSIBLE_PROPERTY_VALUE_NOW,
+ (double) paned->start_child_size,
+ -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]