summaryrefslogtreecommitdiff
path: root/src/tools/marco-window-demo.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2015-09-18 14:40:36 +0300
committerDenis Gorodnichev <[email protected]>2015-09-18 14:40:36 +0300
commit7fa47961f8790f2d8f2e83bad66e75bdd63cfaa9 (patch)
treefd5f10bcd796912fbb15c6e5bb1edf12a9794133 /src/tools/marco-window-demo.c
parentdee034771c8f3b519c8011faf78d277d6af76933 (diff)
downloadmarco-7fa47961f8790f2d8f2e83bad66e75bdd63cfaa9.tar.bz2
marco-7fa47961f8790f2d8f2e83bad66e75bdd63cfaa9.tar.xz
gtk3: unintialized variable
Diffstat (limited to 'src/tools/marco-window-demo.c')
-rw-r--r--src/tools/marco-window-demo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/marco-window-demo.c b/src/tools/marco-window-demo.c
index edff5f71..281905d5 100644
--- a/src/tools/marco-window-demo.c
+++ b/src/tools/marco-window-demo.c
@@ -1248,8 +1248,6 @@ do_appwindow (void)
/* Create the menubar
*/
- contents = gtk_text_view_new ();
-
action_group = gtk_action_group_new ("mainmenu");
gtk_action_group_add_actions (action_group,
menu_items,
@@ -1306,6 +1304,7 @@ do_appwindow (void)
gtk_window_set_default_size (GTK_WINDOW (window),
200, 200);
+ contents = gtk_text_view_new ();
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (contents),
PANGO_WRAP_WORD);