diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-18 04:00:02 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-18 06:40:53 +0100 |
commit | 41d1e1fea8ad2d33f355e1eafc69053972fcb279 (patch) | |
tree | ae4ee25493b9a6d23075aabdc8f41fb0fa22ff91 /gtk/gtkdrawingarea.h | |
parent | 100ac17505d3210e2b6ebe44f7b1723b5c3e7972 (diff) | |
download | gtk+-41d1e1fea8ad2d33f355e1eafc69053972fcb279.tar.gz |
drawingarea: Add content-width and content-height properties
People should use these instead of gtk_widget_set_size_request().
Diffstat (limited to 'gtk/gtkdrawingarea.h')
-rw-r--r-- | gtk/gtkdrawingarea.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtkdrawingarea.h b/gtk/gtkdrawingarea.h index 8f889e4764..8307b370b9 100644 --- a/gtk/gtkdrawingarea.h +++ b/gtk/gtkdrawingarea.h @@ -68,6 +68,17 @@ GType gtk_drawing_area_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_ALL GtkWidget* gtk_drawing_area_new (void); +GDK_AVAILABLE_IN_3_90 +void gtk_drawing_area_set_content_width (GtkDrawingArea *self, + int width); +GDK_AVAILABLE_IN_3_90 +int gtk_drawing_area_get_content_width (GtkDrawingArea *self); +GDK_AVAILABLE_IN_3_90 +void gtk_drawing_area_set_content_height (GtkDrawingArea *self, + int height); +GDK_AVAILABLE_IN_3_90 +int gtk_drawing_area_get_content_height (GtkDrawingArea *self); + G_END_DECLS #endif /* __GTK_DRAWING_AREA_H__ */ |