diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-24 15:41:24 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:38 +0200 |
commit | fc26e52e4f7ddbd1a24ec9d02d76bd4c70d0b1f7 (patch) | |
tree | 3122f40a612b4a031f4f11c5d6c9c4da7b8d8b71 /common | |
parent | 6b5b2b4c1f28bdd61e8a2dc24b66191436378910 (diff) |
gdbus: Use casting macros where possible
Diffstat (limited to 'common')
-rw-r--r-- | common/gmountoperationdbus.c | 8 | ||||
-rw-r--r-- | common/gmounttracker.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/common/gmountoperationdbus.c b/common/gmountoperationdbus.c index 9bfa619a..4c323467 100644 --- a/common/gmountoperationdbus.c +++ b/common/gmountoperationdbus.c @@ -107,8 +107,8 @@ handle_ask_password (GVfsDBusMountOperation *object, op_dbus->object = object; op_dbus->invocation = invocation; - g_signal_connect (op_dbus->op, "reply", - (GCallback)ask_password_reply, + g_signal_connect (op_dbus->op, "reply", + G_CALLBACK (ask_password_reply), op_dbus); g_signal_emit_by_name (op_dbus->op, "ask_password", @@ -159,7 +159,7 @@ handle_ask_question (GVfsDBusMountOperation *object, op_dbus->invocation = invocation; g_signal_connect (op_dbus->op, "reply", - (GCallback)ask_question_reply, + G_CALLBACK (ask_question_reply), op_dbus); g_signal_emit_by_name (op_dbus->op, "ask_question", @@ -217,7 +217,7 @@ handle_show_processes (GVfsDBusMountOperation *object, op_dbus->invocation = invocation; g_signal_connect (op_dbus->op, "reply", - (GCallback)show_processes_reply, + G_CALLBACK (show_processes_reply), op_dbus); g_signal_emit_by_name (op_dbus->op, "show_processes", diff --git a/common/gmounttracker.c b/common/gmounttracker.c index 0f710941..bbca23e5 100644 --- a/common/gmounttracker.c +++ b/common/gmounttracker.c @@ -426,7 +426,7 @@ mounted_cb (GVfsDBusMountTracker *object, GVariant *arg_mount, gpointer user_data) { - GMountTracker *tracker = user_data; + GMountTracker *tracker = G_MOUNT_TRACKER (user_data); GMountInfo *info; info = g_mount_info_from_dbus (arg_mount); @@ -442,7 +442,7 @@ unmounted_cb (GVfsDBusMountTracker *object, GVariant *arg_mount, gpointer user_data) { - GMountTracker *tracker = user_data; + GMountTracker *tracker = G_MOUNT_TRACKER (user_data); GMountInfo *info; info = g_mount_info_from_dbus (arg_mount); |