summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2008-11-28 21:52:58 +0000
committerTiziano Müller <dev-zero@gentoo.org>2008-11-28 21:52:58 +0000
commit4c382f25f67d30f988d34a2cd32a5239d1c0cf77 (patch)
tree719a87c213482eae6d579a83adc6dbf2b92241bf /net-wireless/bluez-gnome
parentp.masked bluez and bluez-gnome-1.8 (diff)
downloadgentoo-2-4c382f25f67d30f988d34a2cd32a5239d1c0cf77.tar.gz
gentoo-2-4c382f25f67d30f988d34a2cd32a5239d1c0cf77.tar.bz2
gentoo-2-4c382f25f67d30f988d34a2cd32a5239d1c0cf77.zip
Incorporated ODS-API patch (thanks to Paul Philippov)
(Portage version: 2.2_rc16/cvs/Linux 2.6.27.5 x86_64)
Diffstat (limited to 'net-wireless/bluez-gnome')
-rw-r--r--net-wireless/bluez-gnome/ChangeLog6
-rw-r--r--net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild9
-rw-r--r--net-wireless/bluez-gnome/files/1.8-ODS-API.patch156
3 files changed, 168 insertions, 3 deletions
diff --git a/net-wireless/bluez-gnome/ChangeLog b/net-wireless/bluez-gnome/ChangeLog
index 826299ea3cac..371859f381ca 100644
--- a/net-wireless/bluez-gnome/ChangeLog
+++ b/net-wireless/bluez-gnome/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-wireless/bluez-gnome
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-gnome/ChangeLog,v 1.33 2008/11/28 21:32:13 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-gnome/ChangeLog,v 1.34 2008/11/28 21:52:57 dev-zero Exp $
+
+ 28 Nov 2008; Tiziano Müller <dev-zero@gentoo.org>
+ +files/1.8-ODS-API.patch, bluez-gnome-1.8.ebuild:
+ Incorporated ODS-API patch (thanks to Paul Philippov)
*bluez-gnome-1.8 (28 Nov 2008)
diff --git a/net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild b/net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild
index 66a8234317ce..8bf1894dcfad 100644
--- a/net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild
+++ b/net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild,v 1.1 2008/11/28 21:32:13 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-gnome/bluez-gnome-1.8.ebuild,v 1.2 2008/11/28 21:52:57 dev-zero Exp $
-inherit gnome2
+inherit eutils gnome2
DESCRIPTION="Bluetooth helpers for GNOME"
HOMEPAGE="http://www.bluez.org/"
@@ -35,6 +35,11 @@ G2CONF="--disable-desktop-update
DOCS="AUTHORS README NEWS ChangeLog"
+src_unpack() {
+ gnome2_src_unpack
+ epatch "${FILESDIR}/${PV}-ODS-API.patch"
+}
+
pkg_postinst() {
gnome2_pkg_postinst
if has_version gnome-base/nautilus && \
diff --git a/net-wireless/bluez-gnome/files/1.8-ODS-API.patch b/net-wireless/bluez-gnome/files/1.8-ODS-API.patch
new file mode 100644
index 000000000000..ecdc298794fc
--- /dev/null
+++ b/net-wireless/bluez-gnome/files/1.8-ODS-API.patch
@@ -0,0 +1,156 @@
+--- bluez-gnome-1.8/common/marshal.list 2008-08-25 00:14:24.000000000 +0300
++++ bluez-gnome-1.8.patched/common/marshal.list 2008-11-14 14:28:22.000000000 +0200
+@@ -3,3 +3,4 @@
+ VOID:STRING,STRING
+ VOID:STRING,STRING,UINT64
+ VOID:UINT64
++VOID:STRING,STRING,STRING
+--- bluez-gnome-1.8/sendto/main.c 2008-10-04 22:32:56.000000000 +0300
++++ bluez-gnome-1.8.patched/sendto/main.c 2008-11-14 14:52:38.000000000 +0200
+@@ -64,6 +64,8 @@
+ static gint64 first_update = 0;
+ static gint64 last_update = 0;
+
++static DBusGProxy *session_proxy = NULL;
++
+ static gchar *filename_to_path(const gchar *filename)
+ {
+ GFile *file;
+@@ -354,7 +356,16 @@
+ static void error_occurred(DBusGProxy *proxy, const gchar *name,
+ const gchar *message, gpointer user_data)
+ {
+- transfer_completed(proxy, user_data);
++ gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress),
++ _("Error Occurred"));
++
++ gchar *text = g_strdup_printf("<span foreground=\"red\">%s</span>",
++ message);
++ gtk_label_set_markup(GTK_LABEL(label_status), text);
++ g_free(text);
++
++ gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
++ GTK_RESPONSE_CLOSE, TRUE);
+ }
+
+ static void session_connected(DBusGProxy *proxy, gpointer user_data)
+@@ -363,7 +374,7 @@
+
+ first_update = get_system_time();
+
+- send_file(proxy);
++ send_file(session_proxy);
+ }
+
+ #define OPENOBEX_CONNECTION_FAILED "org.openobex.Error.ConnectionAttemptFailed"
+@@ -407,60 +418,44 @@
+ if (dbus_g_proxy_end_call(proxy, call, &error,
+ DBUS_TYPE_G_OBJECT_PATH, &path,
+ G_TYPE_INVALID) == FALSE) {
+- gchar *text, *message;
++ gchar *message;
+
+ message = get_error_message(error);
+
+- text = g_strdup_printf("<span foreground=\"red\">%s</span>",
+- message);
+- gtk_label_set_markup(GTK_LABEL(label_status), text);
+- g_free(text);
++ error_occurred(proxy,NULL,message,NULL);
+
+ g_free(message);
+
+- gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
+- GTK_RESPONSE_CLOSE, TRUE);
+ return;
+ }
+-
+- proxy = dbus_g_proxy_new_for_name(conn, "org.openobex",
++ session_proxy = dbus_g_proxy_new_for_name(conn, "org.openobex",
+ path, "org.openobex.Session");
+
+- dbus_g_proxy_add_signal(proxy, "Connected", G_TYPE_INVALID);
+-
+- dbus_g_proxy_connect_signal(proxy, "Connected",
+- G_CALLBACK(session_connected), NULL, NULL);
+-
+- dbus_g_proxy_add_signal(proxy, "ErrorOccurred",
+- G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);
+-
+- dbus_g_proxy_connect_signal(proxy, "ErrorOccurred",
+- G_CALLBACK(error_occurred), NULL, NULL);
+-
+- dbus_g_proxy_add_signal(proxy, "Cancelled", G_TYPE_INVALID);
++ dbus_g_proxy_add_signal(session_proxy, "Cancelled",
++ G_TYPE_INVALID);
+
+- dbus_g_proxy_connect_signal(proxy, "Cancelled",
++ dbus_g_proxy_connect_signal(session_proxy, "Cancelled",
+ G_CALLBACK(transfer_cancelled), NULL, NULL);
+
+- dbus_g_proxy_add_signal(proxy, "TransferStarted", G_TYPE_STRING,
+- G_TYPE_STRING, G_TYPE_UINT64, G_TYPE_INVALID);
++ dbus_g_proxy_add_signal(session_proxy, "TransferStarted",
++ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT64,
++ G_TYPE_INVALID);
+
+- dbus_g_proxy_connect_signal(proxy, "TransferStarted",
++ dbus_g_proxy_connect_signal(session_proxy, "TransferStarted",
+ G_CALLBACK(transfer_started), NULL, NULL);
+
+- dbus_g_proxy_add_signal(proxy, "TransferProgress",
++ dbus_g_proxy_add_signal(session_proxy, "TransferProgress",
+ G_TYPE_UINT64, G_TYPE_INVALID);
+
+- dbus_g_proxy_connect_signal(proxy, "TransferProgress",
++ dbus_g_proxy_connect_signal(session_proxy, "TransferProgress",
+ G_CALLBACK(transfer_progress), NULL, NULL);
+
+- dbus_g_proxy_add_signal(proxy, "TransferCompleted", G_TYPE_INVALID);
++ dbus_g_proxy_add_signal(session_proxy, "TransferCompleted",
++ G_TYPE_INVALID);
+
+- dbus_g_proxy_connect_signal(proxy, "TransferCompleted",
++ dbus_g_proxy_connect_signal(session_proxy, "TransferCompleted",
+ G_CALLBACK(transfer_completed), NULL, NULL);
+
+- dbus_g_proxy_call(proxy, "Connect", NULL, G_TYPE_INVALID,
+- G_TYPE_INVALID);
+ }
+
+ static gchar *get_name(DBusGProxy *device)
+@@ -767,6 +762,10 @@
+ dbus_g_object_register_marshaller(marshal_VOID__UINT64,
+ G_TYPE_NONE, G_TYPE_UINT64, G_TYPE_INVALID);
+
++ dbus_g_object_register_marshaller(marshal_VOID__STRING_STRING_STRING,
++ G_TYPE_NONE, DBUS_TYPE_G_OBJECT_PATH,
++ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);
++
+ device_name = get_device_name(option_device);
+ if (device_name == NULL)
+ device_name = g_strdup(option_device);
+@@ -787,9 +786,23 @@
+ dbus_g_proxy_connect_signal(proxy, "NameOwnerChanged",
+ G_CALLBACK(name_owner_changed), NULL, NULL);
+
++ dbus_g_proxy_add_signal(proxy, "SessionConnected",
++ DBUS_TYPE_G_OBJECT_PATH, G_TYPE_INVALID);
++
++ dbus_g_proxy_connect_signal(proxy, "SessionConnected",
++ G_CALLBACK(session_connected), NULL, NULL);
++
++ dbus_g_proxy_add_signal(proxy, "SessionConnectError",
++ DBUS_TYPE_G_OBJECT_PATH, G_TYPE_STRING,
++ G_TYPE_STRING, G_TYPE_INVALID);
++
++ dbus_g_proxy_connect_signal(proxy, "SessionConnectError",
++ G_CALLBACK(error_occurred), NULL, NULL);
++
+ dbus_g_proxy_begin_call(proxy, "CreateBluetoothSession",
+ create_notify, NULL, NULL,
+ G_TYPE_STRING, option_device,
++ G_TYPE_STRING, "00:00:00:00:00:00",
+ G_TYPE_STRING, "opp", G_TYPE_INVALID);
+ } else {
+ GHashTable *hash = NULL;