Add GtkScrollable interface
The GtkScrollable interface provides "hadjustment" and "vadjustment" properties that are used by GtkScrolledWindow. It replaces the ::set_scroll_adjustment signal. The scrollable interface also has ::min-display-width/height properties that can be used to control the minimally visible part inside a scrolled window.
This commit is contained in:
committed by
Matthias Clasen
parent
86b3c1b65e
commit
55196a705f
@ -66,10 +66,6 @@ struct _GtkLayoutClass
|
||||
{
|
||||
GtkContainerClass parent_class;
|
||||
|
||||
void (*set_scroll_adjustments) (GtkLayout *layout,
|
||||
GtkAdjustment *hadjustment,
|
||||
GtkAdjustment *vadjustment);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
@ -98,6 +94,8 @@ void gtk_layout_get_size (GtkLayout *layout,
|
||||
guint *width,
|
||||
guint *height);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
|
||||
GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout *layout);
|
||||
GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout *layout);
|
||||
void gtk_layout_set_hadjustment (GtkLayout *layout,
|
||||
@ -105,6 +103,8 @@ void gtk_layout_set_hadjustment (GtkLayout *layout,
|
||||
void gtk_layout_set_vadjustment (GtkLayout *layout,
|
||||
GtkAdjustment *adjustment);
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_LAYOUT_H__ */
|
||||
|
||||
Reference in New Issue
Block a user