summaryrefslogtreecommitdiff
path: root/gtk/gtkscrollable.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-12-10 06:45:21 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-12-10 10:01:30 -0500
commit6f2fff56fbb44f064d25ee65fb12f602b0fef965 (patch)
treece7cec4bbfe582075872f84c351320b11049bd92 /gtk/gtkscrollable.h
parent691c96db2a0041ef1f3eecb5d0bf00b6c67c6cdf (diff)
downloadgtk+-6f2fff56fbb44f064d25ee65fb12f602b0fef965.tar.gz
Add a gtk_scrollable_get_border
Add a vfunc to return a non-scrollable border around scrollables. This would be nicer as a property, but we can't add properties to an interface without breaking 3rd party implementations, so make this an optional vfunc, and handle it not being set.
Diffstat (limited to 'gtk/gtkscrollable.h')
-rw-r--r--gtk/gtkscrollable.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkscrollable.h b/gtk/gtkscrollable.h
index 112301f04d..a4e0af1f5f 100644
--- a/gtk/gtkscrollable.h
+++ b/gtk/gtkscrollable.h
@@ -25,6 +25,7 @@
#include <gdk/gdk.h>
#include <gtk/gtkenums.h>
#include <gtk/gtktypes.h>
+#include <gtk/gtkborder.h>
G_BEGIN_DECLS
@@ -39,6 +40,9 @@ typedef struct _GtkScrollableInterface GtkScrollableInterface;
struct _GtkScrollableInterface
{
GTypeInterface base_iface;
+
+ gboolean (* get_border) (GtkScrollable *scrollable,
+ GtkBorder *border);
};
/* Public API */
@@ -65,6 +69,10 @@ GDK_AVAILABLE_IN_ALL
void gtk_scrollable_set_vscroll_policy (GtkScrollable *scrollable,
GtkScrollablePolicy policy);
+GDK_AVAILABLE_IN_3_16
+gboolean gtk_scrollable_get_border (GtkScrollable *scrollable,
+ GtkBorder *border);
+
G_END_DECLS
#endif /* __GTK_SCROLLABLE_H__ */