[gtk+/gtk-2-22] Add an accessor for GtkViewport->view_window (#621081).
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] Add an accessor for GtkViewport->view_window (#621081).
- Date: Wed, 9 Jun 2010 16:24:27 +0000 (UTC)
commit 54e959ef9666f9192dc4397231645502e6195b7a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jun 9 13:02:46 2010 +0200
Add an accessor for GtkViewport->view_window (#621081).
docs/reference/gtk/gtk-sections.txt | 1 +
gtk/gtk.symbols | 1 +
gtk/gtkviewport.c | 18 ++++++++++++++++++
gtk/gtkviewport.h | 1 +
4 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index 733e32c..2b6e56d 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -5433,6 +5433,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
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index a4d54cf..2fbdc83 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -5030,6 +5030,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
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 7571a5d..933b052 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -593,6 +593,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)
{
diff --git a/gtk/gtkviewport.h b/gtk/gtkviewport.h
index da6b97c..f2f6d8f 100644
--- a/gtk/gtkviewport.h
+++ b/gtk/gtkviewport.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]