[pitivi] prefs: Show a summary about how to create plugins
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] prefs: Show a summary about how to create plugins
- Date: Thu, 4 Jul 2019 22:25:22 +0000 (UTC)
commit 0a39d34d700c2fedd8ca40a598ef73326deaaaed
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Jul 5 00:02:14 2019 +0200
prefs: Show a summary about how to create plugins
pitivi/dialogs/prefs.py | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index 45f36160..220f2ec7 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -28,6 +28,7 @@ from gi.repository import GObject
from gi.repository import Gtk
from pitivi.configure import get_ui_dir
+from pitivi.configure import get_user_plugins_dir
from pitivi.pluginmanager import PluginManager
from pitivi.settings import GlobalSettings
from pitivi.utils import widgets
@@ -867,6 +868,13 @@ class PluginPreferencesPage(Gtk.ScrolledWindow):
self._infobar_label = Gtk.Label()
self._setup_infobar()
+ note_label = Gtk.Label.new()
+ note_label.set_markup(_("You can create <a href='{doc_url}'>plugins</a> into your <a
href='{dir_url}'>plugins directory</a>.").format(
+ doc_url="http://developer.pitivi.org/Plugins.html",
+ dir_url=GLib.filename_to_uri(get_user_plugins_dir(), None)))
+ note_label.props.margin_top = PADDING * 4
+ note_label.props.margin_bottom = PADDING * 2
+
wrapper_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.add(wrapper_box)
self.set_min_content_height(500)
@@ -874,6 +882,7 @@ class PluginPreferencesPage(Gtk.ScrolledWindow):
wrapper_box.pack_start(self._infobar_revealer, expand=False, fill=False, padding=0)
wrapper_box.pack_start(plugins_box, expand=False, fill=False, padding=0)
+ wrapper_box.pack_start(note_label, expand=False, fill=False, padding=0)
# Helpers
self._infobar_timer = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]