[gtk+] docs: fix headerbar screenshot



commit abe9ce45f382c2f10171973a6f2452bfec77fbc3
Author: William Jon McCann <william jon mccann gmail com>
Date:   Tue Feb 25 17:44:06 2014 -0500

    docs: fix headerbar screenshot

 docs/reference/gtk/images/headerbar.png |  Bin 2163 -> 5538 bytes
 docs/tools/widgets.c                    |    2 +-
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/docs/reference/gtk/images/headerbar.png b/docs/reference/gtk/images/headerbar.png
index d24c692..7cd964a 100644
Binary files a/docs/reference/gtk/images/headerbar.png and b/docs/reference/gtk/images/headerbar.png differ
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index bfba4a9..f48af36 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -1214,8 +1214,8 @@ create_headerbar (void)
   gtk_window_set_titlebar (GTK_WINDOW (window), bar);
   button = gtk_button_new ();
   gtk_container_add (GTK_CONTAINER (button), gtk_image_new_from_icon_name ("bookmark-new-symbolic", 
GTK_ICON_SIZE_BUTTON));
-  gtk_widget_show_all (button);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (bar), button);
+  gtk_widget_show_all (bar);
 
   return new_widget_info ("headerbar", window, ASIS);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]