diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-27 04:22:24 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-05-27 16:11:09 +0200 |
commit | b3ec31f8b67e3c0e650904ff283a7e899e21cb5a (patch) | |
tree | 0579c2f3c2f26a373d44ae36eb7c0b2bd716d56b /demos | |
parent | f6ee34c8b1eb574f2c4fdbd02158e61dc1d68194 (diff) | |
download | gtk+-b3ec31f8b67e3c0e650904ff283a7e899e21cb5a.tar.gz |
gtk-demo: Don't store anchor in an unused variable
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/textview.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c index acc677ca7f..21da68d73f 100644 --- a/demos/gtk-demo/textview.c +++ b/demos/gtk-demo/textview.c @@ -132,7 +132,6 @@ insert_text (GtkTextBuffer *buffer) GtkTextIter start, end; GdkPixbuf *pixbuf; GdkPixbuf *scaled; - GtkTextChildAnchor *anchor; char *filename; /* demo_find_file() looks in the current directory first, @@ -376,15 +375,15 @@ insert_text (GtkTextBuffer *buffer) gtk_text_buffer_insert (buffer, &iter, "You can put widgets in the buffer: Here's a button: ", -1); - anchor = gtk_text_buffer_create_child_anchor (buffer, &iter); + gtk_text_buffer_create_child_anchor (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, " and a menu: ", -1); - anchor = gtk_text_buffer_create_child_anchor (buffer, &iter); + gtk_text_buffer_create_child_anchor (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, " and a scale: ", -1); - anchor = gtk_text_buffer_create_child_anchor (buffer, &iter); + gtk_text_buffer_create_child_anchor (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, " and an animation: ", -1); - anchor = gtk_text_buffer_create_child_anchor (buffer, &iter); + gtk_text_buffer_create_child_anchor (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, " finally a text entry: ", -1); - anchor = gtk_text_buffer_create_child_anchor (buffer, &iter); + gtk_text_buffer_create_child_anchor (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, ".\n", -1); gtk_text_buffer_insert (buffer, &iter, |