diff options
author | Christian Dywan <christian@lanedo.com> | 2009-10-21 18:12:01 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-10-21 18:14:31 +0200 |
commit | f5df4e05e2c5f6c5380890f651cd49eeba85e8be (patch) | |
tree | 869b0b0f07325848e3bbac76da7c2289ec0f7d6a /gtk/gtkviewport.c | |
parent | 6f6746389c5d08e1534a7eb04f02e00c5b409e50 (diff) | |
download | gtk+-f5df4e05e2c5f6c5380890f651cd49eeba85e8be.tar.gz |
Added accesor for GTK_VIEWPORT (widget)->bin_window
Although, you can use:
gtk_widget_get_parent_window (gtk_bin_get_child (GTK_BIN (widget)))
there already are gtk_tree_view_get_bin_window() and
gtk_layout_get_bin_window() in GTK+ api.
https://bugzilla.gnome.org/show_bug.cgi?id=594960
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 3e64564611..5fd9014ab4 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -556,6 +556,24 @@ gtk_viewport_get_shadow_type (GtkViewport *viewport) return viewport->shadow_type; } +/** + * gtk_viewport_get_bin_window: + * @viewport: a #GtkViewport + * + * Gets the bin window of the #GtkViewport. + * + * Return value: a #GdkWindow + * + * Since: 2.20 + **/ +GdkWindow* +gtk_viewport_get_bin_window (GtkViewport *viewport) +{ + g_return_val_if_fail (GTK_IS_VIEWPORT (viewport), NULL); + + return viewport->bin_window; +} + static void gtk_viewport_realize (GtkWidget *widget) { |