[gnome-tweak-tool] startup: Add explanatory label
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] startup: Add explanatory label
- Date: Mon, 12 Jun 2017 22:08:34 +0000 (UTC)
commit 34b0d15c6f13e9c17f11aadf2ac9a5c5363b771e
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Mon Jun 12 18:07:17 2017 -0400
startup: Add explanatory label
https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/tweak-tool/tweak-tool-wires.png
https://bugzilla.gnome.org/show_bug.cgi?id=783176
gtweak/tweaks/tweak_group_startup.py | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index d35fe12..ed308c4 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -37,6 +37,20 @@ def _list_header_func(row, before, user_data):
if before and not row.get_header():
row.set_header (Gtk.Separator(orientation=Gtk.Orientation.HORIZONTAL))
+
+class AutostartTitle(Gtk.Box, Tweak):
+
+ def __init__(self, **options):
+ Gtk.Box.__init__(self)
+ desc = _("Startup applications are automatically started when you log in.")
+ Tweak.__init__(self, _("Startup Applications"), desc, **options)
+
+ label = Gtk.Label(desc)
+ label.get_style_context().add_class("dim-label")
+ self.props.margin_bottom = 10
+ self.add(label)
+
+
class _AppChooser(Gtk.Dialog):
def __init__(self, main_window, running_exes, startup_apps):
uhb = Gtk.Settings.get_default().props.gtk_dialogs_use_header
@@ -278,7 +292,7 @@ class AddStartupTweak(Gtk.ListBoxRow, Tweak):
class AutostartListBoxTweakGroup(ListBoxTweakGroup):
def __init__(self):
- tweaks = []
+ tweaks = [AutostartTitle()]
self.asm = AutostartManager()
files = self.asm.get_user_autostart_files()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]