[gnome-disk-utility/gnome-3-12] GduVolumeGrid: Fix theming problem.
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/gnome-3-12] GduVolumeGrid: Fix theming problem.
- Date: Sat, 19 Apr 2014 19:10:01 +0000 (UTC)
commit e93063459f17fad912f43931465345148bd277a6
Author: David Zeuthen <zeuthen gmail com>
Date: Sat Apr 19 11:58:08 2014 -0700
GduVolumeGrid: Fix theming problem.
Just use our own CSS instead of relying on
GTK_STYLE_CLASS_NOTEBOOK. This was reported in bug 723495.
https://bugzilla.gnome.org/show_bug.cgi?id=723495
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gduvolumegrid.c | 1 -
src/disks/gduwindow.c | 4 ++++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gduvolumegrid.c b/src/disks/gduvolumegrid.c
index cd0d67e..ffb5d78 100644
--- a/src/disks/gduvolumegrid.c
+++ b/src/disks/gduvolumegrid.c
@@ -782,7 +782,6 @@ render_element (GduVolumeGrid *grid,
/* frames */
gtk_style_context_save (context);
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_NOTEBOOK);
gtk_style_context_add_class (context, "gnome-disk-utility-grid");
gtk_style_context_get_border (context, state, &border);
sides = GTK_JUNCTION_NONE;
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index 875cf1e..24834ce 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -799,7 +799,11 @@ init_css (GduWindow *window)
"}\n"
"\n"
".gnome-disk-utility-grid {\n"
+" border-width: 1px;\n"
" border-radius: 3px;\n"
+" border-style: solid;\n"
+" border-color: @borders;\n"
+" background-color: @theme_base_color;\n"
"}\n"
"\n"
".gnome-disk-utility-grid:selected {\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]