[gtk/wip/baedert/for-master: 15/25] gtk-demo: Fix up sidebar demo style
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 15/25] gtk-demo: Fix up sidebar demo style
- Date: Wed, 9 Oct 2019 14:43:55 +0000 (UTC)
commit ee44a47b4cb52d384bbbce2bb79b50ea5d96c2c1
Author: Timm Bäder <mail baedert org>
Date: Sun Oct 6 13:31:15 2019 +0200
gtk-demo: Fix up sidebar demo style
Remove a superfluous separator and add the icon-dropshadow class to the
gtk logo
demos/gtk-demo/sidebar.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/sidebar.c b/demos/gtk-demo/sidebar.c
index b591d46010..4de18c4c91 100644
--- a/demos/gtk-demo/sidebar.c
+++ b/demos/gtk-demo/sidebar.c
@@ -54,10 +54,7 @@ do_sidebar (GtkWidget *do_widget)
stack = gtk_stack_new ();
gtk_stack_set_transition_type (GTK_STACK (stack), GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN);
gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), GTK_STACK (stack));
-
- /* Separator between sidebar and stack */
- widget = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
- gtk_container_add (GTK_CONTAINER(box), widget);
+ gtk_widget_set_hexpand (stack, TRUE);
gtk_container_add (GTK_CONTAINER (box), stack);
@@ -66,6 +63,7 @@ do_sidebar (GtkWidget *do_widget)
if (i == 0)
{
widget = gtk_image_new_from_icon_name ("org.gtk.Demo4");
+ gtk_style_context_add_class (gtk_widget_get_style_context (widget), "icon-dropshadow");
gtk_image_set_pixel_size (GTK_IMAGE (widget), 256);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]