Add an accessor for GtkViewport->view_window (#621081).

This commit is contained in:
Cosimo Cecchi 2010-06-09 13:02:46 +02:00
parent 9b2ffc4b80
commit 4f66b8e37c
4 changed files with 21 additions and 0 deletions

View File

@ -4635,6 +4635,7 @@ gtk_viewport_set_vadjustment
gtk_viewport_set_shadow_type
gtk_viewport_get_shadow_type
gtk_viewport_get_bin_window
gtk_viewport_get_view_window
<SUBSECTION Standard>
GTK_VIEWPORT
GTK_IS_VIEWPORT

View File

@ -4254,6 +4254,7 @@ gtk_viewport_get_shadow_type
gtk_viewport_get_type G_GNUC_CONST
gtk_viewport_get_vadjustment
gtk_viewport_get_bin_window
gtk_viewport_get_view_window
gtk_viewport_new
gtk_viewport_set_hadjustment
gtk_viewport_set_shadow_type

View File

@ -605,6 +605,24 @@ gtk_viewport_get_bin_window (GtkViewport *viewport)
return viewport->bin_window;
}
/**
* gtk_viewport_get_view_window:
* @viewport: a #GtkViewport
*
* Gets the view window of the #GtkViewport.
*
* Return value: (transfer none): a #GdkWindow
*
* Since: 2.22
**/
GdkWindow*
gtk_viewport_get_view_window (GtkViewport *viewport)
{
g_return_val_if_fail (GTK_IS_VIEWPORT (viewport), NULL);
return viewport->view_window;
}
static void
gtk_viewport_realize (GtkWidget *widget)
{

View File

@ -84,6 +84,7 @@ void gtk_viewport_set_shadow_type (GtkViewport *viewport,
GtkShadowType type);
GtkShadowType gtk_viewport_get_shadow_type (GtkViewport *viewport);
GdkWindow* gtk_viewport_get_bin_window (GtkViewport *viewport);
GdkWindow* gtk_viewport_get_view_window (GtkViewport *viewport);
G_END_DECLS