[gtk+] testtitlebar: Add custom content



commit 8ba7c7f64d15d4764f830aa7801c826a6d049735
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 16 20:35:23 2013 -0500

    testtitlebar: Add custom content
    
    This will help in tracking down size allocation issues
    in GtkHeaderBar.

 tests/testtitlebar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testtitlebar.c b/tests/testtitlebar.c
index 1d59bba..f5d032d 100644
--- a/tests/testtitlebar.c
+++ b/tests/testtitlebar.c
@@ -54,6 +54,8 @@ activate (GApplication *gapp)
   gtk_application_set_app_menu (app, menu);
 
   header = gtk_header_bar_new ();
+  gtk_header_bar_pack_start (GTK_HEADER_BAR (header), gtk_button_new_with_label ("Start"));
+  gtk_header_bar_pack_end (GTK_HEADER_BAR (header), gtk_button_new_with_label ("End"));
   gtk_window_set_titlebar (GTK_WINDOW (window), header);
 
   provider = gtk_css_provider_new ();


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