[bijiben/wip/gbsneto/ui-tweaks: 2/5] selection-toolbar: Add background color
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/wip/gbsneto/ui-tweaks: 2/5] selection-toolbar: Add background color
- Date: Mon, 5 Jun 2017 12:31:40 +0000 (UTC)
commit a0615f40545ac4d9b568d3234c2a9f9470f81db7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jun 4 12:20:17 2017 -0300
selection-toolbar: Add background color
The current selection toolbar is invisible and looks
very bad. This commit adds a background color to it.
src/bjb-selection-toolbar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/bjb-selection-toolbar.c b/src/bjb-selection-toolbar.c
index ba0f4a1..df19c15 100644
--- a/src/bjb-selection-toolbar.c
+++ b/src/bjb-selection-toolbar.c
@@ -374,6 +374,8 @@ bjb_selection_toolbar_init (BjbSelectionToolbar *self)
GTK_REVEALER (self), GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP);
priv->bar = GTK_ACTION_BAR (gtk_action_bar_new ());
+ context = gtk_widget_get_style_context (GTK_WIDGET (priv->bar));
+ gtk_style_context_add_class (context, "background");
gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (priv->bar));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]