[gtk+] testtitlebar: Set a window icon



commit abe994f1d7d409139cd3c3ded3631bfb2da5c2a3
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 13 00:38:36 2013 -0500

    testtitlebar: Set a window icon
    
    This reveals that GtkHeaderBar does not pick up window icons
    correctly for it menu button, currently.

 tests/testtitlebar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/testtitlebar.c b/tests/testtitlebar.c
index 420540b..1d59bba 100644
--- a/tests/testtitlebar.c
+++ b/tests/testtitlebar.c
@@ -47,6 +47,7 @@ activate (GApplication *gapp)
                                "  </menu>"
                                "</interface>", -1, NULL);
   window = gtk_application_window_new (app);
+  gtk_window_set_icon_name (GTK_WINDOW (window), "preferences-desktop-font");
 
   menu = (GMenuModel*)gtk_builder_get_object (builder, "app-menu");
   gtk_application_add_window (app, GTK_WINDOW (window));


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