[gnome-software/gnome-3-14] sources dialog: Reload the list of repos when packages are added / removed
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-14] sources dialog: Reload the list of repos when packages are added / removed
- Date: Thu, 18 Jun 2015 13:59:09 +0000 (UTC)
commit 2d9bee682449e0eb38d7ed623359ffbef1e9f075
Author: Kalev Lember <kalevlember gmail com>
Date: Mon May 25 22:22:34 2015 +0200
sources dialog: Reload the list of repos when packages are added / removed
This makes sure that when someone installs or removes a package
containing a .repo file, the sources dialog reloads its contents.
https://bugzilla.gnome.org/show_bug.cgi?id=730456
src/gs-sources-dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-sources-dialog.c b/src/gs-sources-dialog.c
index 42e4001..2845334 100644
--- a/src/gs-sources-dialog.c
+++ b/src/gs-sources-dialog.c
@@ -348,11 +348,20 @@ remove_button_cb (GtkWidget *widget, GsSourcesDialog *dialog)
}
static void
+updates_changed_cb (GsPluginLoader *plugin_loader,
+ GsSourcesDialog *dialog)
+{
+ reload_sources (dialog);
+}
+
+static void
set_plugin_loader (GsSourcesDialog *dialog, GsPluginLoader *plugin_loader)
{
GsSourcesDialogPrivate *priv = gs_sources_dialog_get_instance_private (dialog);
priv->plugin_loader = g_object_ref (plugin_loader);
+ g_signal_connect (priv->plugin_loader, "updates-changed",
+ G_CALLBACK (updates_changed_cb), dialog);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]