[gnome-power-manager] trivial: fix a critical warning when starting gnome-power-statistics
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] trivial: fix a critical warning when starting gnome-power-statistics
- Date: Thu, 28 Oct 2010 10:09:18 +0000 (UTC)
commit 9fe9e87450062e734c3815b9a0a5f22b0abfadf6
Author: Richard Hughes <richard hughsie com>
Date: Thu Oct 28 12:08:58 2010 +0100
trivial: fix a critical warning when starting gnome-power-statistics
src/gpm-statistics.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index fd0e9eb..f740ced 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -1617,7 +1617,7 @@ gpm_stats_startup_cb (GApplication *application,
gtk_window_set_default_icon_name (GPM_STOCK_APP_ICON);
/* Get the main window quit */
- g_signal_connect (widget, "delete-event",
+ g_signal_connect (window, "delete-event",
G_CALLBACK (gpm_stats_delete_event_cb), application);
widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_close"));
@@ -1838,7 +1838,8 @@ main (int argc, char *argv[])
settings = g_settings_new (GPM_SETTINGS_SCHEMA);
/* are we already activated? */
- application = gtk_application_new ("org.gnome.PowerManager.Statistics", 0);
+ application = gtk_application_new ("org.gnome.PowerManager.Statistics",
+ G_APPLICATION_HANDLES_COMMAND_LINE);
g_signal_connect (application, "startup",
G_CALLBACK (gpm_stats_startup_cb), NULL);
g_signal_connect (application, "command-line",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]