[gnome-software/ubuntu-test: 13/17] Launch software-properties-gtk in place of the sources dialog
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/ubuntu-test: 13/17] Launch software-properties-gtk in place of the sources dialog
- Date: Tue, 14 Feb 2017 04:01:28 +0000 (UTC)
commit a9de5269715a1d5e9e5c3d22075fe95578526afb
Author: William Hua <william hua canonical com>
Date: Tue Mar 1 13:46:56 2016 -0500
Launch software-properties-gtk in place of the sources dialog
https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1551702
src/gs-shell.c | 3 +++
src/menus.ui | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 46d7e8a..66bbe38 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -862,6 +862,9 @@ gs_shell_show_sources (GsShell *shell)
GsShellPrivate *priv = gs_shell_get_instance_private (shell);
GtkWidget *dialog;
+ if (g_spawn_command_line_async ("software-properties-gtk", NULL))
+ return;
+
dialog = gs_sources_dialog_new (priv->main_window, priv->plugin_loader);
gs_shell_modal_dialog_present (shell, GTK_DIALOG (dialog));
}
diff --git a/src/menus.ui b/src/menus.ui
index b138ba5..1dc4c18 100644
--- a/src/menus.ui
+++ b/src/menus.ui
@@ -4,7 +4,7 @@
<menu id="app-menu">
<section>
<item>
- <attribute name="label" translatable="yes">_Software Sources</attribute>
+ <attribute name="label" translatable="yes">_Software & Updates</attribute>
<attribute name="action">app.sources</attribute>
</item>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]