[gnome-software/wip/ubuntu-changes: 1/5] 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/wip/ubuntu-changes: 1/5] Launch software-properties-gtk in place of the sources dialog
- Date: Thu, 3 Mar 2016 20:41:12 +0000 (UTC)
commit 00872b79fb1e37e0bbdefb8e532439af80374317
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 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 564ee3d..75fb7c0 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -748,6 +748,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);
g_signal_connect_swapped (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]