gnome-bluetooth/sendto-connect-fix.patch
2009-03-05 00:43:48 +00:00

30 lines
1.0 KiB
Diff

--- trunk/sendto/main.c 2009/03/04 18:42:45 457
+++ trunk/sendto/main.c 2009/03/05 00:12:12 458
@@ -369,12 +369,12 @@
GTK_RESPONSE_CLOSE, TRUE);
}
-static void session_connect_error (DBusGProxy *proxy, DBusGProxy *session_obj, const char *error_name,
+static void session_connect_error (DBusGProxy *proxy, const char *session_obj, const char *error_name,
const char *error_message, gpointer user_data)
{
gchar *text;
- if (session_obj != session_proxy)
+ if (strcmp (session_obj, dbus_g_proxy_get_path (session_proxy)) != 0)
return;
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress),
@@ -388,9 +388,9 @@
GTK_RESPONSE_CLOSE, TRUE);
}
-static void session_connected(DBusGProxy *proxy, DBusGProxy *session_obj, gpointer user_data)
+static void session_connected(DBusGProxy *proxy, const char *session_obj, gpointer user_data)
{
- if (session_obj != session_proxy)
+ if (strcmp (session_obj, dbus_g_proxy_get_path (session_proxy)) != 0)
return;
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress), NULL);