[gnome-software] sources dialog: Fix type cast warnings when closing during install/remove
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] sources dialog: Fix type cast warnings when closing during install/remove
- Date: Wed, 7 Feb 2018 21:13:22 +0000 (UTC)
commit c15c122663eff286c2f78f3a82283270efe15cb5
Author: Kalev Lember <klember redhat com>
Date: Wed Feb 7 22:09:30 2018 +0100
sources dialog: Fix type cast warnings when closing during install/remove
src/gs-sources-dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-sources-dialog.c b/src/gs-sources-dialog.c
index 969f3401..b875dec0 100644
--- a/src/gs-sources-dialog.c
+++ b/src/gs-sources-dialog.c
@@ -166,7 +166,7 @@ source_installed_cb (GObject *source,
gpointer user_data)
{
GsPluginLoader *plugin_loader = GS_PLUGIN_LOADER (source);
- GsSourcesDialog *dialog = GS_SOURCES_DIALOG (user_data);
+ GsSourcesDialog *dialog = (GsSourcesDialog *) user_data;
g_autoptr(GError) error = NULL;
if (!gs_plugin_loader_job_action_finish (plugin_loader, res, &error)) {
@@ -183,7 +183,7 @@ source_removed_cb (GObject *source,
gpointer user_data)
{
GsPluginLoader *plugin_loader = GS_PLUGIN_LOADER (source);
- GsSourcesDialog *dialog = GS_SOURCES_DIALOG (user_data);
+ GsSourcesDialog *dialog = (GsSourcesDialog *) user_data;
g_autoptr(GError) error = NULL;
if (!gs_plugin_loader_job_action_finish (plugin_loader, res, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]