[gtk+] range: Add private api to get the trough node
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] range: Add private api to get the trough node
- Date: Thu, 5 Nov 2015 12:26:33 +0000 (UTC)
commit 973836d395a481bca46eda37d4df6e9ea9bd2156
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 5 06:47:10 2015 -0500
range: Add private api to get the trough node
This will be needed in range subclasses to position their
own subnodes.
gtk/gtkrange.c | 6 ++++++
gtk/gtkrangeprivate.h | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 3abf0cc..ceecafa 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -4317,3 +4317,9 @@ _gtk_range_set_steppers (GtkRange *range,
gtk_widget_queue_resize (GTK_WIDGET (range));
}
+
+GtkCssNode *
+gtk_range_get_trough_node (GtkRange *range)
+{
+ return range->priv->trough_node;
+}
diff --git a/gtk/gtkrangeprivate.h b/gtk/gtkrangeprivate.h
index 52512ef..1ce5219 100644
--- a/gtk/gtkrangeprivate.h
+++ b/gtk/gtkrangeprivate.h
@@ -27,6 +27,7 @@
#include <gtk/gtkrange.h>
+#include <gtk/gtkcssnodeprivate.h>
G_BEGIN_DECLS
@@ -47,6 +48,8 @@ void _gtk_range_set_steppers (GtkRange *range
gboolean has_c,
gboolean has_d);
+GtkCssNode *gtk_range_get_trough_node (GtkRange *range);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]