diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-08-16 00:35:56 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-08-22 18:29:02 +0200 |
commit | 3d77c49e16bb1095024535b2dc962cb9e089fcf5 (patch) | |
tree | 1c7eb293357a4366e56b2ce4b771d937f20358ad /docs/tools | |
parent | 26fcfcc5a69d02116a29a4ad1608a9ec2e98aa04 (diff) | |
download | gtk+-3d77c49e16bb1095024535b2dc962cb9e089fcf5.tar.gz |
docs/tools/shooter.c: Use accessor functions to access GtkWidget
Diffstat (limited to 'docs/tools')
-rw-r--r-- | docs/tools/shooter.c | 10 |
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 ()) { |