From fab9c17b89341c294f69f3d320e87481dbd15301 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 25 Mar 2016 22:36:50 -0400 Subject: [PATCH] gtk3-demo: Show more button styles Add examples for suggested-action and destructive-action buttons in the style classes example. --- demos/gtk-demo/theming.ui | 37 +++++++++++++++++++++++++- demos/gtk-demo/theming_style_classes.c | 1 + 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/demos/gtk-demo/theming.ui b/demos/gtk-demo/theming.ui index 7455e6df40..617a2f723d 100644 --- a/demos/gtk-demo/theming.ui +++ b/demos/gtk-demo/theming.ui @@ -1,7 +1,7 @@ - 6 + 10 vertical @@ -271,5 +271,40 @@ + + + 1 + 10 + horizontal + + + 1 + Plain + end + + + 1 + + + + + 1 + Destructive + + + + + + 1 + Suggested + + + + + diff --git a/demos/gtk-demo/theming_style_classes.c b/demos/gtk-demo/theming_style_classes.c index dcb1a908d5..63fea3ba34 100644 --- a/demos/gtk-demo/theming_style_classes.c +++ b/demos/gtk-demo/theming_style_classes.c @@ -24,6 +24,7 @@ do_theming_style_classes (GtkWidget *do_widget) gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (do_widget)); gtk_window_set_title (GTK_WINDOW (window), "Style Classes"); + gtk_window_set_resizable (GTK_WINDOW (window), FALSE); gtk_container_set_border_width (GTK_CONTAINER (window), 12); g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window);