[gedit-latex] Make outline toolbar a gtk3 inline-toolbar
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Make outline toolbar a gtk3 inline-toolbar
- Date: Fri, 24 Jun 2011 02:18:39 +0000 (UTC)
commit e111d216e71d6530704810302280b1a6c72910d4
Author: John Stowers <john stowers gmail com>
Date: Fri Jun 24 14:15:19 2011 +1200
Make outline toolbar a gtk3 inline-toolbar
latex/outline.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/latex/outline.py b/latex/outline.py
index 1b99470..6f6f743 100644
--- a/latex/outline.py
+++ b/latex/outline.py
@@ -77,7 +77,6 @@ class BaseOutlineView(SideView):
self._toolbar = Gtk.Toolbar()
self._toolbar.set_style(Gtk.ToolbarStyle.ICONS)
- # TODO: why is this deprecated?
self._toolbar.set_icon_size(Gtk.IconSize.MENU)
self._toolbar.insert(btn_follow, -1)
self._toolbar.insert(Gtk.SeparatorToolItem(), -1)
@@ -114,7 +113,15 @@ class BaseOutlineView(SideView):
scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
self.pack_start(scrolled, True, True, 0)
-
+
+ # theme like gtk3
+ ctx = scrolled.get_style_context()
+ ctx.set_junction_sides(Gtk.JunctionSides.TOP)
+
+ ctx = self._toolbar.get_style_context()
+ ctx.set_junction_sides(Gtk.JunctionSides.TOP | Gtk.JunctionSides.BOTTOM)
+ ctx.add_class("inline-toolbar")
+
# this holds a list of the currently expanded paths
self._expandedPaths = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]