summaryrefslogtreecommitdiff
path: root/docs/tools/shooter.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-08-30 14:56:28 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-08-30 14:56:28 +0900
commit54d44a9bd04cfbed8426614fc69c027a46f41a14 (patch)
tree34bdf65a6e8d5d6d4016154345d1d803ba0da379 /docs/tools/shooter.c
parentb3b22c31b997fb85b3319b392a1a69407703184c (diff)
parent67194ed77b153eb5a7eb6c596f3c20e274b7787a (diff)
downloadgtk+-native-layout.tar.gz
Merge branch 'master' into native-layoutnative-layout
Conflicts: gtk/gtkplug.c gtk/gtkscrolledwindow.c
Diffstat (limited to 'docs/tools/shooter.c')
-rw-r--r--docs/tools/shooter.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/tools/shooter.c b/docs/tools/shooter.c
index eef624215f..0ed6182627 100644
--- a/docs/tools/shooter.c
+++ b/docs/tools/shooter.c
@@ -193,6 +193,7 @@ int main (int argc, char **argv)
for (node = toplevels; node; node = g_list_next (node))
{
+ GtkAllocation allocation;
GdkWindow *window;
WidgetInfo *info;
XID id;
@@ -202,13 +203,14 @@ int main (int argc, char **argv)
gtk_widget_show (info->window);
- window = info->window->window;
+ window = gtk_widget_get_window (info->window);
+ gtk_widget_get_allocation (info->window, &allocation);
gtk_widget_show_now (info->window);
gtk_widget_queue_draw_area (info->window,
- info->window->allocation.x, info->window->allocation.y,
- info->window->allocation.width, info->window->allocation.height);
- gdk_window_process_updates (info->window->window, TRUE);
+ allocation.x, allocation.y,
+ allocation.width, allocation.height);
+ gdk_window_process_updates (window, TRUE);
while (gtk_events_pending ())
{