[gnome-documents] all: namespace the custom style classes we set on widgets



commit 985dedaf66ad00f1b80f7892aaacd2d69f16704e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Nov 21 10:29:42 2011 -0500

    all: namespace the custom style classes we set on widgets
    
    In preparation for moving our style code to gnome-themes-standard.

 src/loadMore.js   |    4 ++--
 src/searchbar.js  |    2 +-
 src/selections.js |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/loadMore.js b/src/loadMore.js
index 48c7464..149e8c6 100644
--- a/src/loadMore.js
+++ b/src/loadMore.js
@@ -40,8 +40,8 @@ LoadMoreButton.prototype = {
             this._controller.connect('item-count-changed',
                                      Lang.bind(this, this._onItemCountChanged));
 
-        this.widget = new Gtk.Button({ no_show_all: true,
-                                       name: 'ViewLoadMore' });
+        this.widget = new Gtk.Button({ no_show_all: true });
+        this.widget.get_style_context().add_class('documents-load-more');
         this.widget.connect('clicked', Lang.bind(this,
             function() {
                 this._controller.increaseOffset();
diff --git a/src/searchbar.js b/src/searchbar.js
index 19272fb..6e3325f 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -306,7 +306,7 @@ Dropdown.prototype = {
         this.actor = new GtkClutter.Actor({ contents: this.widget,
                                             opacity: 0 });
         let actorWidget = this.actor.get_widget();
-        actorWidget.get_style_context().add_class('dropdown');
+        actorWidget.get_style_context().add_class('documents-dropdown');
 
         this._grid = new Gtk.Grid({ orientation: Gtk.Orientation.HORIZONTAL });
         this.widget.add(this._grid);
diff --git a/src/selections.js b/src/selections.js
index 50495b5..79dfae3 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -631,7 +631,7 @@ SelectionToolbar.prototype = {
                                             show_on_set_parent: false,
                                             opacity: 0 });
         let actorWidget = this.actor.get_widget();
-        actorWidget.get_style_context().add_class('osd');
+        actorWidget.get_style_context().add_class('documents-osd');
         actorWidget.reset_style();
 
         this._leftBox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL });



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