diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-10-22 18:46:33 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-10-22 19:21:17 +0200 |
commit | 0d9ebb501df60cf1803858efcd1c79542588abd8 (patch) | |
tree | e2347bda6bad31a926399b9342a1680045ec8546 /gtk/gtkscrolledwindow.h | |
parent | ce5a29bc384542839a5f12061499c8ec706b1c34 (diff) | |
download | gtk+-0d9ebb501df60cf1803858efcd1c79542588abd8.tar.gz |
Move min-display-width/height to GtkScrolledWindow
It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.
We also add GtkScrollablePolicy to determine how to size the
scrollable content.
Diffstat (limited to 'gtk/gtkscrolledwindow.h')
-rw-r--r-- | gtk/gtkscrolledwindow.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h index 682ea02a38..44f4818608 100644 --- a/gtk/gtkscrolledwindow.h +++ b/gtk/gtkscrolledwindow.h @@ -115,6 +115,19 @@ GtkShadowType gtk_scrolled_window_get_shadow_type (GtkScrolledWindow *scrolle void gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window, GtkWidget *child); +gint gtk_scrolled_window_get_min_content_width (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_min_content_width (GtkScrolledWindow *scrolled_window, + gint width); +gint gtk_scrolled_window_get_min_content_height (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_min_content_height (GtkScrolledWindow *scrolled_window, + gint height); +GtkScrollablePolicy gtk_scrolled_window_get_hscroll_policy (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_hscroll_policy (GtkScrolledWindow *scrolled_window, + GtkScrollablePolicy policy); +GtkScrollablePolicy gtk_scrolled_window_get_vscroll_policy (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_vscroll_policy (GtkScrolledWindow *scrolled_window, + GtkScrollablePolicy policy); + gint _gtk_scrolled_window_get_scrollbar_spacing (GtkScrolledWindow *scrolled_window); |