[gnome-builder] css: handle GtkListBoxRow → row a nd window rename



commit 614e02d113689cc06de9bfa58d2af830422c6bbc
Author: Christian Hergert <chergert redhat com>
Date:   Fri Nov 6 14:38:09 2015 -0800

    css: handle GtkListBoxRow → row and window rename

 data/theme/Adwaita-shared.css |    8 ++++----
 data/theme/shared.css         |   16 ++++++++--------
 libide/ide-workbench.c        |    5 ++---
 3 files changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/data/theme/Adwaita-shared.css b/data/theme/Adwaita-shared.css
index 07ea0e8..bdf62fd 100644
--- a/data/theme/Adwaita-shared.css
+++ b/data/theme/Adwaita-shared.css
@@ -157,10 +157,10 @@ SymbolTree entry {
 }
 
 
-.shortcuts-list-box GtkListBoxRow {
+.shortcuts-list-box row {
   border-bottom: 1px solid @borders;
 }
-.shortcuts-list-box GtkListBoxRow:last-child {
+.shortcuts-list-box row:last-child {
   border-bottom: none;
 }
 
@@ -169,9 +169,9 @@ SymbolTree entry {
 }
 
 
-GbPreferencesPagePlugins GtkListBoxRow {
+GbPreferencesPagePlugins row {
   border-bottom: 1px solid shade(@borders, 1.2);
 }
-GbPreferencesPagePlugins GtkListBoxRow:last-child {
+GbPreferencesPagePlugins row:last-child {
   border-bottom: none;
 }
diff --git a/data/theme/shared.css b/data/theme/shared.css
index 140d2fc..6cce1fa 100644
--- a/data/theme/shared.css
+++ b/data/theme/shared.css
@@ -29,13 +29,13 @@
 .preferences.sidebar GtkListBox {
   background-color: shade(@theme_bg_color, 0.99);
 }
-.preferences.sidebar GtkListBoxRow {
+.preferences.sidebar row {
   padding: 10px;
 }
-.preferences.sidebar GtkListBoxRow:not(:selected) {
+.preferences.sidebar row:not(:selected) {
   background-color: shade(@theme_bg_color, 0.99);
 }
-.preferences.sidebar GtkListBoxRow:hover:not(:selected) {
+.preferences.sidebar row:hover:not(:selected) {
   background-color: shade(@theme_bg_color, 1.02);
 }
 
@@ -44,11 +44,11 @@ GbPreferencesSwitch:prelight {
 }
 
 
-GbEditorSettingsWidget GtkListBoxRow {
+GbEditorSettingsWidget row {
   padding: 6px;
   border-bottom: 1px solid @borders;
 }
-GbEditorSettingsWidget GtkListBoxRow:last-child {
+GbEditorSettingsWidget row:last-child {
   border-bottom: none;
 }
 
@@ -111,7 +111,7 @@ GbSearchDisplayGroup GtkListBox .list-row {
 
 
 IdeGreeterProjectRow,
-GtkListBoxRow.with-header {
+row.with-header {
   border-bottom: 1px solid alpha(@borders, 0.4);
 }
 
@@ -189,10 +189,10 @@ IdeWorkbench > GtkStack > GtkBox.horizontal > GtkStackSwitcher > button:hover {
 }
 */
 
-IdeWorkbench IdePreferencesPerspective IdePreferencesGroup GtkListBoxRow {
+workbench IdePreferencesPerspective IdePreferencesGroup row {
   border-bottom: 1px solid shade(@borders, 1.2);
   padding: 10px;
 }
-IdeWorkbench IdePreferencesPerspective IdePreferencesGroup GtkListBoxRow:last-child {
+workbench IdePreferencesPerspective IdePreferencesGroup row:last-child {
   border-bottom: none;
 }
diff --git a/libide/ide-workbench.c b/libide/ide-workbench.c
index 7dd3203..d5b2d2a 100644
--- a/libide/ide-workbench.c
+++ b/libide/ide-workbench.c
@@ -150,9 +150,8 @@ ide_workbench_class_init (IdeWorkbenchClass *klass)
 
   g_object_class_install_properties (object_class, LAST_PROP, properties);
 
-  gtk_widget_class_set_template_from_resource (widget_class,
-                                               "/org/gnome/builder/ui/ide-workbench.ui");
-
+  gtk_widget_class_set_css_name (widget_class, "workbench");
+  gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/ide-workbench.ui");
   gtk_widget_class_bind_template_child (widget_class, IdeWorkbench, perspectives_stack);
   gtk_widget_class_bind_template_child (widget_class, IdeWorkbench, perspectives_stack_switcher);
   gtk_widget_class_bind_template_child (widget_class, IdeWorkbench, titlebar_stack);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]