[evince/gnome-3-20] shell: Update sidebar thumbnails CSS nodes
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-3-20] shell: Update sidebar thumbnails CSS nodes
- Date: Thu, 23 Jun 2016 16:14:20 +0000 (UTC)
commit 7818b9afddeedd4b66d3943449fbb04b1630c161
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Sun Nov 29 09:28:29 2015 +0700
shell: Update sidebar thumbnails CSS nodes
Fixes frameless thumbnails with GTK+ 3.20
https://bugzilla.gnome.org/show_bug.cgi?id=758793
shell/ev-sidebar-thumbnails.c | 4 ++++
shell/evince.css | 11 +++--------
2 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 9374034..d4c6de7 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -359,6 +359,10 @@ ev_sidebar_thumbnails_class_init (EvSidebarThumbnailsClass *ev_sidebar_thumbnail
widget_class->map = ev_sidebar_thumbnails_map;
widget_class->size_allocate = ev_sidebar_thumbnails_size_allocate;
+#if GTK_CHECK_VERSION(3, 20, 0)
+ gtk_widget_class_set_css_name (widget_class, "evsidebarthumbnails");
+#endif
+
g_object_class_override_property (g_object_class,
PROP_WIDGET,
"main-widget");
diff --git a/shell/evince.css b/shell/evince.css
index b8dd5fd..4df7ba8 100644
--- a/shell/evince.css
+++ b/shell/evince.css
@@ -33,17 +33,12 @@ EvView.document-page.inverted {
background-color: black;
}
-EvSidebarThumbnails.page-thumbnail {
+evsidebarthumbnails.page-thumbnail {
background-color: white;
- border-color: black;
- border-style: solid;
- border-width: 1px;
- border-radius: 0;
- border-image: none;
- padding: 0;
+ border: 1px solid black;
}
-EvSidebarThumbnails.page-thumbnail.inverted {
+evsidebarthumbnails.page-thumbnail.inverted {
background-color: black;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]