demo: add a multi-line infobar example

This commit is contained in:
William Jon McCann 2013-08-03 12:18:54 +02:00
parent 6424739819
commit 041b0e1861

View File

@ -88,7 +88,7 @@ do_infobar (GtkWidget *do_widget)
g_signal_connect (bar, "response", G_CALLBACK (on_bar_response), window);
gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE, FALSE, 0);
gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION);
label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_QUESTION");
label = gtk_label_new ("This is\nan info bar with message type\nGTK_MESSAGE_QUESTION");
gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE, FALSE, 0);
button = gtk_toggle_button_new_with_label ("Question");