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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c
index 788adfd4..5ba9a295 100644
--- a/battstat/battstat-upower.c
+++ b/battstat/battstat-upower.c
@@ -33,7 +33,6 @@
static UpClient *upc;
static void (*status_updated_callback) (void);
-
/* status_updated_callback () can not be called directly because at the time of
* the device-remove signal, the device is not actually removed from the list
* of devices known to the up_client object (see libupower-glib/up-client.c in
@@ -318,7 +317,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));