[gnome-software] Add some translatable text we can use for GNOME Shell extensions
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add some translatable text we can use for GNOME Shell extensions
- Date: Tue, 23 Feb 2016 17:02:55 +0000 (UTC)
commit c4edd980cded0b4dc1a7ebbf836f558e7345b464
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 23 16:59:07 2016 +0000
Add some translatable text we can use for GNOME Shell extensions
This UI is hidden as there is no plugin (yet) able to drive it. I'm adding
it now so we could add the feature during 3.20 when the NPAPI functionality
gets taken away.
src/gs-shell-category.ui | 79 ++++++++++++++++++++++++++++------------
src/plugins/menu-spec-common.c | 1 +
2 files changed, 57 insertions(+), 23 deletions(-)
---
diff --git a/src/gs-shell-category.ui b/src/gs-shell-category.ui
index bcb4031..c025932 100644
--- a/src/gs-shell-category.ui
+++ b/src/gs-shell-category.ui
@@ -32,37 +32,70 @@
</object>
</child>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow_category">
+ <object class="GtkBox" id="box_category_results">
<property name="visible">True</property>
- <property name="shadow_type">none</property>
- <property name="can_focus">False</property>
- <property name="hscrollbar_policy">never</property>
- <property name="vscrollbar_policy">automatic</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">9</property>
+ <child>
+ <object class="GtkBox" id="box_category_shell_extensions">
+ <property name="visible">False</property>
+ <property name="spacing">9</property>
+ <property name="margin_start">24</property>
+ <property name="margin_top">24</property>
+ <property name="margin_end">24</property>
+ <child>
+ <object class="GtkLabel" id="author_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Extensions are used at your own risk. If you
have any system problems, it is recommended to disable them.</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="button_yes">
+ <property name="label" translatable="yes">Extension Settings</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
- <object class="GtkViewport" id="viewport3">
+ <object class="GtkScrolledWindow" id="scrolledwindow_category">
<property name="visible">True</property>
+ <property name="shadow_type">none</property>
<property name="can_focus">False</property>
+ <property name="hscrollbar_policy">never</property>
+ <property name="vscrollbar_policy">automatic</property>
<child>
- <object class="GsFixedSizeBin" id="gs_fixed_bin">
+ <object class="GtkViewport" id="viewport3">
<property name="visible">True</property>
- <!-- This is 3*420 plus margins, paddings, CSS borders -->
- <property name="preferred-width">1338</property>
+ <property name="can_focus">False</property>
<child>
- <object class="GtkFlowBox" id="category_detail_box">
- <property name="margin_start">24</property>
- <property name="margin_end">24</property>
- <property name="margin_top">21</property>
- <property name="margin_bottom">21</property>
- <property name="halign">fill</property>
+ <object class="GsFixedSizeBin" id="gs_fixed_bin">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">6</property>
- <property name="homogeneous">True</property>
- <property name="hexpand">True</property>
- <property name="valign">start</property>
- <property name="min-children-per-line">2</property>
- <property name="max-children-per-line">3</property>
+ <!-- This is 3*420 plus margins, paddings, CSS borders -->
+ <property name="preferred-width">1338</property>
+ <child>
+ <object class="GtkFlowBox" id="category_detail_box">
+ <property name="margin_start">24</property>
+ <property name="margin_end">24</property>
+ <property name="margin_top">21</property>
+ <property name="margin_bottom">21</property>
+ <property name="halign">fill</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">6</property>
+ <property name="homogeneous">True</property>
+ <property name="hexpand">True</property>
+ <property name="valign">start</property>
+ <property name="min-children-per-line">2</property>
+ <property name="max-children-per-line">3</property>
+ </object>
+ </child>
</object>
</child>
</object>
diff --git a/src/plugins/menu-spec-common.c b/src/plugins/menu-spec-common.c
index 9596d44..ba0c3f5 100644
--- a/src/plugins/menu-spec-common.c
+++ b/src/plugins/menu-spec-common.c
@@ -212,6 +212,7 @@ static const MenuSpecData msdata[] = {
{ "Addons::Codecs", NC_("Menu subcategory of Add-ons", "Codecs") },
{ "Addons::InputSources", NC_("Menu subcategory of Add-ons", "Input Sources") },
{ "Addons::LanguagePacks", NC_("Menu subcategory of Add-ons", "Language Packs") },
+ { "Addons::ShellExtensions", NC_("Menu subcategory of Add-ons", "Shell Extensions") },
{ NULL, NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]