[gedit] snippets: set the toolbar style in the ui file



commit 9741c1895f91636ebefc0d387606938403078d48
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Jun 20 15:59:00 2011 +0200

    snippets: set the toolbar style in the ui file
    
    seems that the style is supported in ui files

 plugins/snippets/snippets/manager.py  |    3 ---
 plugins/snippets/snippets/snippets.ui |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/snippets/snippets/manager.py b/plugins/snippets/snippets/manager.py
index b65553e..0ab6772 100644
--- a/plugins/snippets/snippets/manager.py
+++ b/plugins/snippets/snippets/manager.py
@@ -299,9 +299,6 @@ class Manager(Gtk.Dialog, Gtk.Buildable):
                 self.build_tree_view()
                 self.build_model()
 
-                toolbar_context = self['toolbar'].get_style_context()
-                toolbar_context.add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)
-
                 source_view = self['source_view_snippet']
                 manager = get_language_manager()
                 lang = manager.get_language('snippets')
diff --git a/plugins/snippets/snippets/snippets.ui b/plugins/snippets/snippets/snippets.ui
index 7f9d8ec..1d76661 100644
--- a/plugins/snippets/snippets/snippets.ui
+++ b/plugins/snippets/snippets/snippets.ui
@@ -180,6 +180,9 @@
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="toolbar_style">icons</property>
+                    <style>
+                      <class name="inline-toolbar"/>
+                    </style>
                     <child>
                       <object class="GtkToolButton" id="add_snippet_button">
                         <property name="visible">True</property>



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