Merge branch 'wip/sadiq/headerbar-demo' into 'master'

gtk-demo: Add a switch to headerbar demo

See merge request 
This commit is contained in:
Matthias Clasen 2020-09-16 23:12:26 +00:00
commit a1e21c1acb

View File

@ -49,6 +49,7 @@ do_headerbar (GtkWidget *do_widget)
gtk_box_append (GTK_BOX (box), button);
gtk_header_bar_pack_start (GTK_HEADER_BAR (header), box);
gtk_header_bar_pack_start (GTK_HEADER_BAR (header), gtk_switch_new ());
gtk_window_set_titlebar (GTK_WINDOW (window), header);