summaryrefslogtreecommitdiff
path: root/battstat/battstat-upower.c
diff options
context:
space:
mode:
Diffstat (limited to 'battstat/battstat-upower.c')
-rw-r--r--battstat/battstat-upower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c
index 788adfd4..da830c2b 100644
--- a/battstat/battstat-upower.c
+++ b/battstat/battstat-upower.c
@@ -318,7 +318,7 @@ error_dialog (const char *fmt , ...)
dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK, "%s", str);
- g_signal_connect_swapped (G_OBJECT (dialog), "response",
+ g_signal_connect_swapped (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
G_OBJECT (dialog));