[gedit-latex] Make toolview toolbar a gtk3 inline-toolbar (and fix packing)
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Make toolview toolbar a gtk3 inline-toolbar (and fix packing)
- Date: Fri, 24 Jun 2011 03:47:41 +0000 (UTC)
commit 3048fca03d3dd1399d0047d71d75b4b55984efb4
Author: John Stowers <john stowers gmail com>
Date: Fri Jun 24 15:45:48 2011 +1200
Make toolview toolbar a gtk3 inline-toolbar (and fix packing)
latex/views.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/latex/views.py b/latex/views.py
index e626a98..9052624 100644
--- a/latex/views.py
+++ b/latex/views.py
@@ -92,7 +92,7 @@ class IssueView(BottomView, IPreferencesMonitor):
self._scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
self._scr.set_shadow_type(Gtk.ShadowType.IN)
- self.pack_start(self._scr, True, False, 0)
+ self.pack_start(self._scr, True, True, 0)
# toolbar
@@ -120,6 +120,14 @@ class IssueView(BottomView, IPreferencesMonitor):
toolbar.insert(self._button_tasks, -1)
self.pack_start(toolbar, False, False, 0)
+
+ # theme like gtk3
+ ctx = self._scr.get_style_context()
+ ctx.set_junction_sides(Gtk.JunctionSides.RIGHT)
+
+ ctx = toolbar.get_style_context()
+ ctx.set_junction_sides(Gtk.JunctionSides.LEFT | Gtk.JunctionSides.RIGHT)
+ ctx.add_class("inline-toolbar")
self._issues = []
self._preferences.register_monitor(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]