[gitg] dash view: set style directly on ui file now that we can



commit be34138150cb512806a443082b36493b14786927
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jun 23 15:53:58 2013 +0200

    dash view: set style directly on ui file now that we can

 gitg/resources/ui/gitg-window.ui    |    4 ++++
 libgitg-gtk/gitg-gtk-dash-view.vala |    3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gitg/resources/ui/gitg-window.ui b/gitg/resources/ui/gitg-window.ui
index 03ae13d..a0240b7 100644
--- a/gitg/resources/ui/gitg-window.ui
+++ b/gitg/resources/ui/gitg-window.ui
@@ -223,6 +223,10 @@
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <signal name="repository_activated" handler="dash_view_repository_activated" 
swapped="no"/>
+                    <style>
+                      <class name="view"/>
+                      <class name="content-view"/>
+                    </style>
                   </object>
                 </child>
               </object>
diff --git a/libgitg-gtk/gitg-gtk-dash-view.vala b/libgitg-gtk/gitg-gtk-dash-view.vala
index 9003ae7..7d416dd 100644
--- a/libgitg-gtk/gitg-gtk-dash-view.vala
+++ b/libgitg-gtk/gitg-gtk-dash-view.vala
@@ -55,9 +55,6 @@ namespace GitgGtk
                {
                        d_icon_size = Gtk.icon_size_register ("gitg", 64, 64);
 
-                       var context = get_style_context();
-                       context.add_class("view");
-                       context.add_class("content-view");
                        set_header_func(update_header);
                        set_filter_func(null);
                        set_sort_func(compare_widgets);


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