[gnome-packagekit] Make the warning dialog work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Make the warning dialog work
- Date: Sat, 5 Feb 2011 03:59:01 +0000 (UTC)
commit d3fef27dcc465a2cf5957af524e6d73aba18d7f5
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 4 22:57:48 2011 -0500
Make the warning dialog work
Can't call g_application_release on a priv struct.
Also fix an uninitialized-use warning in main().
https://bugzilla.redhat.com/show_bug.cgi?id=674877
src/gpk-distro-upgrade.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-distro-upgrade.c b/src/gpk-distro-upgrade.c
index ed0e163..ca7a32b 100644
--- a/src/gpk-distro-upgrade.c
+++ b/src/gpk-distro-upgrade.c
@@ -760,7 +760,7 @@ gpk_distro_upgrade_activate_cb (GApplication *application, GpkDistroUpgradePriva
g_signal_connect_swapped (dialog,
"response",
G_CALLBACK (g_application_release),
- priv);
+ application);
gtk_widget_show (dialog);
}
out:
@@ -773,7 +773,7 @@ out:
int
main (int argc, char *argv[])
{
- GtkApplication *application;
+ GtkApplication *application = NULL;
gint status = 0;
gboolean ret;
GpkDistroUpgradePrivate *priv;
@@ -826,7 +826,8 @@ out:
g_object_unref (priv->client);
g_object_unref (priv->console_kit);
g_free (priv);
- g_object_unref (application);
+ if (application)
+ g_object_unref (application);
return status;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]