gtk3-demo: Add a close button to the markup window

This commit is contained in:
Matthias Clasen 2016-05-06 20:50:38 -04:00
parent de3dabc865
commit c1d1042892

View File

@ -68,6 +68,7 @@ do_markup (GtkWidget *do_widget)
g_signal_connect (show_source, "toggled", G_CALLBACK (source_toggled), stack);
header = gtk_header_bar_new ();
gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (header), TRUE);
gtk_header_bar_pack_start (GTK_HEADER_BAR (header), show_source);
gtk_widget_show_all (header);
gtk_window_set_titlebar (GTK_WINDOW (window), header);