debian/0000775000000000000000000000000012303134066007166 5ustar debian/libgnome-bluetooth11.install0000664000000000000000000000002212303134066014511 0ustar usr/lib/lib*.so.* debian/gnome-bluetooth.install0000664000000000000000000000056612303134066013675 0ustar usr/share/help usr/share/locale usr/share/man/man1 usr/share/applications usr/share/icons usr/share/gnome-bluetooth usr/bin usr/lib/gnome-bluetooth/plugins/*.so usr/lib/nautilus-sendto/plugins/*.so usr/lib/gnome-bluetooth/*.so* usr/lib/gnome-bluetooth/*.typelib usr/share/GConf/gsettings/ usr/share/glib-2.0/schemas/ debian/61-gnome-bluetooth-rfkill.rules lib/udev/rules.d/ debian/libgnome-bluetooth11.symbols0000664000000000000000000000562312303134066014547 0ustar libgnome-bluetooth.so.11 libgnome-bluetooth11 #MINVER# bluetooth_agent_error_quark@Base 3.4.0 bluetooth_agent_new@Base 3.4.0 bluetooth_agent_register@Base 3.4.0 bluetooth_agent_set_authorize_func@Base 3.4.0 bluetooth_agent_set_cancel_func@Base 3.4.0 bluetooth_agent_set_confirm_func@Base 3.4.0 bluetooth_agent_set_display_func@Base 3.4.0 bluetooth_agent_set_passkey_func@Base 3.4.0 bluetooth_agent_set_pincode_func@Base 3.4.0 bluetooth_agent_setup@Base 3.4.0 bluetooth_agent_unregister@Base 3.4.0 bluetooth_browse_address@Base 3.1.3 bluetooth_browse_address_finish@Base 3.1.3 bluetooth_category_get_type@Base 2.91.2 bluetooth_chooser_button_available@Base 2.91.2 bluetooth_chooser_button_get_type@Base 2.91.2 bluetooth_chooser_button_new@Base 2.91.2 bluetooth_chooser_combo_get_type@Base 2.91.2 bluetooth_chooser_combo_new@Base 2.91.2 bluetooth_chooser_dump_selected_device@Base 3.4.0 bluetooth_chooser_get_model@Base 2.91.2 bluetooth_chooser_get_scrolled_window@Base 2.91.92 bluetooth_chooser_get_selected_device@Base 2.91.2 bluetooth_chooser_get_selected_device_icon@Base 2.91.2 bluetooth_chooser_get_selected_device_info@Base 2.91.2 bluetooth_chooser_get_selected_device_is_connected@Base 2.91.2 bluetooth_chooser_get_selected_device_name@Base 2.91.2 bluetooth_chooser_get_selected_device_type@Base 2.91.2 bluetooth_chooser_get_treeview@Base 2.91.2 bluetooth_chooser_get_type@Base 2.91.2 bluetooth_chooser_new@Base 2.91.2 bluetooth_chooser_start_discovery@Base 2.91.2 bluetooth_chooser_stop_discovery@Base 2.91.2 bluetooth_class_to_type@Base 3.1.3 bluetooth_client_connect_service@Base 3.4.0 bluetooth_client_connect_service_finish@Base 3.4.0 bluetooth_client_create_device@Base 3.4.0 bluetooth_client_dump_device@Base 3.4.0 bluetooth_client_get_adapter_model@Base 2.91.2 bluetooth_client_get_device_model@Base 2.91.2 bluetooth_client_get_filter_model@Base 2.91.2 bluetooth_client_get_model@Base 2.91.2 bluetooth_client_get_type@Base 2.91.2 bluetooth_client_new@Base 2.91.2 bluetooth_client_set_trusted@Base 3.4.0 bluetooth_column_get_type@Base 2.91.2 bluetooth_filter_widget_bind_filter@Base 2.91.2 bluetooth_filter_widget_get_type@Base 2.91.2 bluetooth_filter_widget_new@Base 2.91.2 bluetooth_filter_widget_set_title@Base 2.91.2 bluetooth_killswitch_get_state@Base 3.4.0 bluetooth_killswitch_get_type@Base 3.4.0 bluetooth_killswitch_has_killswitches@Base 3.4.0 bluetooth_killswitch_new@Base 3.4.0 bluetooth_killswitch_set_state@Base 3.4.0 bluetooth_killswitch_state_to_string@Base 3.4.0 bluetooth_plugin_manager_cleanup@Base 3.4.0 bluetooth_plugin_manager_device_deleted@Base 3.4.0 bluetooth_plugin_manager_get_widgets@Base 3.4.0 bluetooth_plugin_manager_init@Base 3.4.0 bluetooth_send_to_address@Base 3.1.3 bluetooth_status_get_type@Base 3.2.1 bluetooth_type_get_type@Base 2.91.2 bluetooth_type_to_string@Base 2.91.2 bluetooth_uuid_to_string@Base 2.91.2 bluetooth_verify_address@Base 2.91.2 debian/61-gnome-bluetooth-rfkill.rules0000664000000000000000000000101112303134066015050 0ustar # Set ACLs for console users on /dev/rfkill # This is necessary until a daemon can properly handle access to the # kill switch # http://bugs.debian.org/563902 # https://bugzilla.redhat.com/show_bug.cgi?id=514798 # logind # https://bugzilla.redhat.com/show_bug.cgi?id=733326 KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="uaccess" # ConsoleKit ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end" ACTION!="add|change", GOTO="gnome_bluetooth_end" KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="udev-acl" LABEL="gnome_bluetooth_end" debian/copyright0000664000000000000000000000665712303134066011137 0ustar This package was first debianized by Edd Dumbill on Thu Jun 10 11:14:24 BST 2004. The new version of gnome-bluetooth was debianized by Filippo Giunchedi on Sun May 24 17:47:30 CEST 2009 It was originally downloaded from http://usefulinc.com/software/gnome-bluetooth/ Now gnome-bluetooth is a fork of bluez-gnome and can be found at http://live.gnome.org/GnomeBluetooth Upstream Authors: Marcel Holtmann Bastien Nocera Chris Rivera Jaap A. Haitsma Antti Kaijanmäki Michael Terry Copyright: wizard/main.c: GPL (v2 or later) Copyright: 2005-2008 Marcel Holtmann wizard/pin.[hc]: GPL (v2 or later) Copyright: 2009 Bastien Nocera applet/test-agentdialog.c: GPL (v2 or later) Copyright: 2005-2008 Marcel Holtmann applet/*: GPL (v2 or later) Copyright: 2006-2007 Bastien Nocera 2005-2008 Marcel Holtmann common/obex-agent.[hc]: LGPL (v2.1 or later) Copyright: 2005-2008 Marcel Holtmann common/test-agent.c: GPL (v2 or later) Copyright: 2005-2008 Marcel Holtmann common/test-client.c: GPL (v2 or later) Copyright: 2005-2008 Marcel Holtmann common/bluetooth-agent.[ch]: LGPL (v2.1 or later) Copyright: 2005-2008 Marcel Holtmann common/bluetooth-client.[ch]: LGPL (v2.1 or later) Copyright: 2005-2008 Marcel Holtmann common/bluetooth-enums.h: LGPL (v2.1 or later) Copyright: 2005-2008 Marcel Holtmann common/bluetooth-chooser-button.[ch]: LGPL (v2 or later) Copyright: 2007 Bastien Nocera common/bluetooth-chooser.[ch]: LGPL (v2.1 or later) Copyright: 2006-2007 Bastien Nocera 2005-2008 Marcel Holtmann common/test-deviceselection.c: GPL (v2 or later) Copyright: 2006-2007 Bastien Nocera 2005-2008 Marcel Holtmann common/bluetooth-killswitch.[ch]: GPL (v2 or later) Copyright: 2006-2009 Bastien Nocera 2005-2008 Marcel Holtmann properties/gconf-bridge.[ch]: LGPL (v2 or later) Copyright: 2005 OpenedHand Ltd properties/*: GPL (v2 or later) Copyright: 2006-2007 Bastien Nocera 2005-2008 Marcel Holtmann sendto/main.c: GPL (v2 or later) Copyright: 2005-2008 Marcel Holtmann lib/bling-spinner.c: LGPL (v2 or later) Copyright: 2007 John Stowers, Neil Jagdish Patel lib/rfkill.h: GPL (v2 or later) Copyright: 2006, 2007 Ivo van Doorn, 2007 Dmitry Torokhov, 2009 Johannes Berg On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. debian/gnome-bluetooth.maintscript0000664000000000000000000000026612303134066014561 0ustar rm_conffile /etc/xdg/autostart/bluetooth-applet.desktop 3.8.1-2ubuntu1~ gnome-bluetooth rm_conffile /etc/xdg/autostart/bluetooth-applet-unity.desktop 3.6.1-0ubuntu2~ gnome-bluetooth debian/changelog0000664000000000000000000005265612303134066011056 0ustar gnome-bluetooth (3.8.2.1-0ubuntu4) trusty; urgency=medium * debian/patches/git_disconnect_callbacks.patch, debian/patches/git_leak_fixes.patch, debian/patches/git_reference_handling.patch: - backport some fixes, should resolve some segfaults issues (lp: #1057398) -- Sebastien Bacher Tue, 25 Feb 2014 16:32:43 +0100 gnome-bluetooth (3.8.2.1-0ubuntu3) trusty; urgency=medium * debian/control.in: recommends u-c-c | g-c-c -- Sebastien Bacher Tue, 18 Feb 2014 16:18:00 +0100 gnome-bluetooth (3.8.2.1-0ubuntu2) trusty; urgency=low * Add new OID for Apple touchpads, and include a general match for Apple touchpads using (mutable, fickle) name. (LP: #1266826) -- Chad MILLER Mon, 06 Jan 2014 13:57:12 -0500 gnome-bluetooth (3.8.2.1-0ubuntu1) trusty; urgency=medium * New upstream release: - Fix crashes when sending files fails - Fix build with glib 2.36.x * debian/control.in: - Use standards-version 3.9.4 -- Robert Ancell Mon, 16 Dec 2013 12:02:22 +1300 gnome-bluetooth (3.8.1-2ubuntu2) saucy; urgency=low * debian/patches/99_add_microsoft_mice.patch: add Microsoft Sculpt/Wedge mouse (LP: #1094744, LP: #1158462). Thanks, Marcos Barbosa, Anton Anikin and Anthony Wong for the patch. -- Daniel Holbach Mon, 05 Aug 2013 10:32:39 +0200 gnome-bluetooth (3.8.1-2ubuntu1) saucy; urgency=low * Sync with Debian. Remaining changes: - debian/control.in: + Don't depend on consolekit + Recommend gnome-user-share, it's used for file transfers - debian/rules: + don't build with -Wl,-Bsymbolic-functions that creates issues when the --as-needed option is used + use dh-autoreconf - debian/gnome-bluetooth.maintscript: + Remove obsolete indicator autostart file too - debian/patches/menu_update_on_rfkill.patch: + make sure the menu gets updated properly when the killswitch state is changed. Specifically, notify for the applet to show the full menu, so that it can be displayed again when coming back from BLOCKED state. This fixes an issue specific to Dell systems where the devices are removed then re-added when the rfkill state is toggled. * debian/patches/revert-drop-sendto-plugin.patch: - Continue to build nautilus-sendto plugin for now * debian/control.in: - Build-Depend on dh-autoreconf and nautilus-sendto -- Jeremy Bicha Wed, 03 Jul 2013 16:07:57 -0400 gnome-bluetooth (3.8.1-2) unstable; urgency=low [ Josselin Mouette ] * Add Breaks for gir1.2-gnomebluetooth-1.0 which changed API without a name change: gnome-bluetooth, gnome-shell. [ Jeremy Bicha ] * Update homepage [ Michael Biebl ] * Apply uaccess tag for rfkill devices for users of logind. -- Michael Biebl Mon, 01 Jul 2013 10:39:27 +0200 gnome-bluetooth (3.8.1-1) unstable; urgency=low * New upstream release. + Don't abort on unknown rfkill switches. Closes: #712774. -- Emilio Pozuelo Monfort Wed, 19 Jun 2013 16:54:41 +0200 gnome-bluetooth (3.8.0-1) experimental; urgency=low * New upstream release. + debian/control: - Update build dependencies. - The nautilus-sendto plugin is gone, so stop suggesting it. + debian/patches/01_autostart_path.patch: - Removed, no longer needed. + debian/gnome-bluetooth.install: - Stop installing nautilus-sendto files. + debian/patches/01-Revert-lib-Remove-ObexFTP-browsing.patch: - New patch. Add bluetooth_browse_address{,_finish} functions back, as they are part of the ABI and are used by gnome-control-center 3.4. We can remove this patch when the libgnome-bluetooth is bumped, or if we add breaks on gnome-control-center (<< 3.8.0). -- Emilio Pozuelo Monfort Fri, 29 Mar 2013 12:42:16 +0100 gnome-bluetooth (3.6.0-1) experimental; urgency=low * New upstream release * Sync with Ubuntu: + debian/patches/02_gettext_macros.patch Added, Don't mix gettext and intltool macros + Soname bump libgnome-bluetooth10 -> libgnome-bluetooth11 + debian/control: Update build-depends -- Sjoerd Simons Sun, 14 Oct 2012 20:47:20 +0200 gnome-bluetooth (3.4.2-1) unstable; urgency=low [ Andreas Henriksson ] * New upstream release. * Drop Sjoerds patches, which has been merged upstream: debian/patches/02_Fix-return-of-RequestConfirmation-call.patch debian/patches/03_Fix_wizard_blocked_in_finish_page.patch debian/patches/04_fix_incoming_pairing.patch debian/patches/05_fix_memory_leak.patch -- Michael Biebl Tue, 10 Jul 2012 21:55:04 +0200 gnome-bluetooth (3.4.1-2) unstable; urgency=low * Added: debian/patches/02_Fix-return-of-RequestConfirmation-call.patch, debian/patches/03_Fix_wizard_blocked_in_finish_page.patch + Fix pairing with devices supporting SSP (Closes: #679644) (bgo: 679190) * Added: debian/patches/04_fix_incoming_pairing.patch, + Fix incoming pairing requests (bgo: 674414) * Added debian/patches/05_fix_memory_leak.patch: + Fix memory leak (bgo: 679420) -- Sjoerd Simons Mon, 02 Jul 2012 09:15:49 +0200 gnome-bluetooth (3.4.1-1) unstable; urgency=low * New upstream release. * Refresh debian/patches/01_autostart_path.patch. -- Michael Biebl Wed, 13 Jun 2012 15:04:58 +0200 gnome-bluetooth (3.4.0-2) unstable; urgency=low * Upload to unstable. -- Michael Biebl Mon, 28 May 2012 22:37:54 +0200 gnome-bluetooth (3.4.0-1) experimental; urgency=low * New upstream release. * Drop (Build-)Depends on libdbus-glib-1-dev, ported to GDBus. * Bump Build-Depends on libglib2.0-dev to (>= 2.29.90) * Add Depends on libglib2.0-dev to libgnome-bluetooth-dev. * Drop explicit Build-Depends on gir- packages. * Bump soname of libgnome-bluetooth from 8 → 10. * Update symbols file for libgnome-bluetooth10. * debian/gnome-bluetooth.install: Remove control-center properties panel which was moved into gnome-control-center. * Bump Standards-Version to 3.9.3. -- Michael Biebl Wed, 04 Apr 2012 00:35:44 +0200 gnome-bluetooth (3.2.2-1) unstable; urgency=low * New upstream release. * Use the new maintscript facility in dh_installdeb to remove the obsolete conffiles: - Bump Build-Depends on debhelper to (>= 8.1.0~). - Add Pre-Depends: ${misc:Pre-Depends}. - Replace preinst/postinst/postrm scripts with a gnome-bluetooth.maintscript file. * Change section of gir1.2-gnomebluetooth-1.0 to introspection. -- Michael Biebl Fri, 10 Feb 2012 06:24:14 +0100 gnome-bluetooth (3.2.1-1) unstable; urgency=low [ Jordi Mallach ] * Make all packages Arch: linux-any. [ Michael Biebl ] * New upstream release. * debian/libgnome-bluetooth8.symbols: - Add new bluetooth_status_get_type symbol. * Remove obsolete xdg autostart conffile on upgrades. Closes: #645445 -- Michael Biebl Wed, 19 Oct 2011 01:08:02 +0200 gnome-bluetooth (3.2.0-2) unstable; urgency=low [ Laurent Bigonville ] * debian/control.in: Update Vcs-Svn and Vcs-Browser URL [ Michael Biebl ] * Upload to unstable. * debian/control.in: - Add Breaks against gnome-phone-manager (<< 0.67) and network-manager-gnome (<< 0.9.0-3) as loading both GTK 2 and GTK 3 in the same process is not allowed. -- Michael Biebl Thu, 13 Oct 2011 19:14:08 +0200 gnome-bluetooth (3.2.0-1) experimental; urgency=low [ Laurent Bigonville ] * New upstream release - debian/libgnome-bluetooth8.symbols: Adjusts .symbols file * debian/control.in: - Bump Standards-Version to 3.9.2 (no further changes) * debian/rules: List missing files during build * debian/watch: - Switch to .bz2 tarballs. * debian/watch: Fix regex so latest directory is correctly detected [ Michael Biebl ] * debin/watch: - Switch to .xz tarballs. * debian/control.in: - Drop Build-Depends on libgnome-control-center-dev. - Add Breaks against nautilus-sendto (<< 3.0) as loading both GTK 2 and GTK 3 in the same process is not allowed. - Don't hard-code dependency on libdconf0 | gsettings-backend but rely on dh_installgsettings to set the correct dependencies. Bump Build-Depends on cdbs accordingly. * Strip debian/tmp/ from .install files. * Refresh debian/patches/01_autostart_path.patch. -- Michael Biebl Tue, 11 Oct 2011 22:57:52 +0200 gnome-bluetooth (3.0.0-1) experimental; urgency=low [ Laurent Bigonville ] * New upstream release * debian/control.in: - Drop libgconf2-dev build-dependency - Add Build-Conflicts: nautilus-sendto (>> 3.1.0) * debian/rules: - Always bump shlibs files, we are using .symbols files anyway * debian/libgnome-bluetooth8.symbols: Adjust .symbols file [ Josselin Mouette ] * Make the -dev package depend on the gir package. -- Laurent Bigonville Sun, 10 Apr 2011 14:14:23 +0200 gnome-bluetooth (2.91.5-1) experimental; urgency=low [ Laurent Bigonville ] * New upstream release - Bump libgnome-bluetooth soname - Update .symbols file - Japanese translation updated (Closes: #601518) * debian/control.in: - Bump build-dependencies - Drop not needed build-dependencies - Add libgnome-control-center-dev build-dependency - Add gobject-introspection, libgirepository1.0-dev, gir1.2-atk-1.0, gir1.2-freedesktop, gir1.2-gtk-3.0 and libatk1.0-dev for introspection - Bump Standards-Version to 3.9.1 (no further changes) - Bump debhelper compatibility to 8 - Remove duplicate Section to please lintian - Make gnome-bluetooth depends against ${gir:Depends} and libdconf0 - Add gir1.2-gnomebluetooth-1.0 package * Switch to dpkg-source 3.0 (quilt) format * debian/libgnome-bluetooth-dev.install: Install .gir file * debian/rules: - Add --enable-introspection - Add parameters for dh_girepository for gnome-bluetooth package * debian/gnome-bluetooth.install: - Remove debian/tmp/etc - Add debian/tmp/usr/lib/control-center-1/panels/*.so, debian/tmp/usr/lib/gnome-bluetooth/*.so*, debian/tmp/usr/lib/gnome-bluetooth/*.typelib, debian/tmp/usr/share/GConf/gsettings/, debian/tmp/usr/share/glib-2.0/schemas/ [ Emilio Pozuelo Monfort ] * debian/control.in: + Bump gobject-introspection build dependency to get a dh_girepository that can cope with private libraries. + Update gtk+ 3 package names. * New upstream release. * debian/rules: + Don't run dh_makeshlibs on gnome-bluetooth. -- Emilio Pozuelo Monfort Sun, 27 Feb 2011 15:45:22 +0000 gnome-bluetooth (2.30.0-3) unstable; urgency=low [ Josselin Mouette ] * 02_ja_po.patch: patch from Nobuhiro Iwamatsu to update Japanese translation. Closes: #601518. [ Sjoerd Simons ] * debian/patches/03_fix_build_with_libnotify_0.7.0.patch: + Added. Fix build with libnotify7 -- Sjoerd Simons Sun, 31 Jul 2011 14:52:22 +0100 gnome-bluetooth (2.30.0-2) unstable; urgency=low * 61-gnome-bluetooth-rfkill.rules: use the new syntax to use udev-acl. Closes: #582188, #584312. * Require udev 154 because of this change. -- Josselin Mouette Sat, 26 Jun 2010 08:21:03 +0200 gnome-bluetooth (2.30.0-1) unstable; urgency=low [ Emilio Pozuelo Monfort ] * debian/watch: - Only track stable releases. [ Sebastian Dröge ] * New upstream release: + debian/control.in: - Update build dependencies. - Add required dependencies to the -dev package. + debian/debian/libgnome-bluetooth7.symbols: - Add new symbols. + debian/gnome-bluetooth.install, debian/control.in: - Ship the nautilus-sendto plugin. -- Sebastian Dröge Fri, 23 Apr 2010 08:03:27 +0200 gnome-bluetooth (2.28.6-2) unstable; urgency=low * debian/control.in: - recommends on obexd-server removed, g-bluetooth doesnt use its interface and that was causing a lot of features not working correctly. The package we need is actually obex-data-server, re-adding it back as a strong dependency. -- Andrea Veri Fri, 15 Jan 2010 14:47:06 +0100 gnome-bluetooth (2.28.6-1) unstable; urgency=low * New upstream bug fix release. * debian/control.in: - DM tag removed, not needed anymore. -- Andrea Veri Mon, 11 Jan 2010 22:43:46 +0100 gnome-bluetooth (2.28.3-3) unstable; urgency=low [ Josselin Mouette ] * Recommend obexd-server. Closes: #558377. [ Andrea Veri ] * debian/control: - added a suggests on gnome-user-share, its bluetooth support should be working fine now. [ Josselin Mouette ] * 61-gnome-bluetooth-rfkill.rules: new file. Set ACLs for console users on /dev/rfkill. Closes: #552185. * Install it in the udev directory. * Require udev 146 and consolekit for it to work properly. * Pass --disable-icon-update. -- Josselin Mouette Sat, 09 Jan 2010 14:13:47 +0100 gnome-bluetooth (2.28.3-2) unstable; urgency=low [ Andrea Veri ] * debian/control.in: - moved maintainer to pkg-gnome. - added pkg-gnome-tools B-D since we have a control.in file now to autogenerate uploaders list. - removed libgeoclue-dev B-D, it was causing issues on kfreebsd, and it's actually not really needed. - VCS-* fields updated since we moved the branch to pkg-gnome. * debian/rules: - added uploaders.mk include from gnome-pkg-tools [ Emilio Pozuelo Monfort ] * debian/control.in: - Remove Filippo from uploaders with his consent. Thanks for your past work! - Wrap dependencies. * debian/watch: - Don't uupdate. * debian/control.in, debian/rules: - Remove no longer needed chrpath calls. Stop build depending on chrpath. * debian/rules: - Remove buildcore.mk, not needed. - Include gnome-get-source.mk * debian/libgnome-bluetooth-dev.install: - Stop shipping *.la. -- Andrea Veri Thu, 12 Nov 2009 20:04:49 +0100 gnome-bluetooth (2.28.3-1) unstable; urgency=low * New upstream release. * debian/control: - obex-data-server depends removed and added obexd-client instead required by bluetooth-sendto to work properly. (Closes: #551974) - added a B-D on libgeoclue-dev for a proper plugin's build. * debian/gnome-bluetooth.install: - enabling plugins installation * debian/patches/01_autostart_path.patch: - added to adjust autostartdir path to the right value /usr/share/gnome/autostart -- Andrea Veri Fri, 23 Oct 2009 12:20:27 +0200 gnome-bluetooth (2.28.1-2) unstable; urgency=low * debian/control: - added bluez depends for gnome-bluetooth, this is definitely required. (Closes: #535057) -- Andrea Veri Wed, 14 Oct 2009 00:21:07 +0200 gnome-bluetooth (2.28.1-1) unstable; urgency=low * New upstream release. * debian/control: - bumped standards-version to latest 3.8.3 - added myself into uploaders, I gonna help Filippo updating this package for the future. - added Debian Maintainers Tag. - libdbus-glib-1-dev bumped to >= 0.74. - libhal-dev B-D removed, it's no more needed according to configure.ac requirements. - libgnome-bluetooth package renamed to libgnome-bluetooth7, to match soname change. Plus renamed all other entries that had the old libgnome-bluetooth name. * debian/libgnome-bluetooth.install: - renamed to match soname bump. * debian/libgnome-bluetooth.symbols: - renamed to match soname change - refreshed with new symbols after soname bump. * debian/rules: - simple-patchsys include removed, we have no patches to apply. * debian/copyright: - added missing copyright holders. -- Andrea Veri Fri, 09 Oct 2009 20:30:37 +0200 gnome-bluetooth (2.27.5-1) unstable; urgency=low * New upstream version (Closes: #530396) + actually a fork of bluez-gnome, conflict accordingly + revisit debian/copyright * Ship a .symbols file for libgnome-bluetooth, thanks Sjoerd Simons * Add chrpath to build-depends and explictely strip RPATH * Upgrade to S-V 3.8.1, no changes needed -- Filippo Giunchedi Sun, 24 May 2009 21:42:09 +0200 gnome-bluetooth (0.9.1-1) unstable; urgency=low * New upstream release, bump libgnomeui-dev dep to >= 2.14 * libbluetooth2-dev -> libbluetooth-dev transition * first upload to unstable (Closes: #253735) -- Filippo Giunchedi Tue, 24 Jul 2007 16:32:57 +0200 gnome-bluetooth (0.8.0-1) UNRELEASED; urgency=low * New upstream release * Add Bastien Nocera as author. [debian/copyright] * Bump debhelper comp. level to 5. [debian/compat, debian/control] * Update build-depends according to configure.in. [debian/control] * Bump Standards-Version to 3.7.2. No changes needed. [debian/control] * Change libbtctl2-dev dep version to binary:Source to reobtain binNMU compatibility. [debian/control] * Drop .la files. [debian/libgnomebt0-dev.install] * Move icon to Utilities menu. [debian/patches/10_desktop-file.patch] * Add watch file. [debian/watch] * Change to synchronous rescan [debian/patches/20_rescan.patch] * Fix typo in nb translation. [30_nb-translation-typo.patch] * Add man pages * Fix typo in package description -- Oystein Gisnas Sat, 24 Feb 2007 22:39:57 +0100 gnome-bluetooth (0.7.0-1) unstable; urgency=low * New upstream release -- Filippo Giunchedi Fri, 2 Dec 2005 21:20:23 +0100 gnome-bluetooth (0.6.0-1) unstable; urgency=low * New Upstream release -- Filippo Giunchedi Fri, 2 Dec 2005 19:33:47 +0100 gnome-bluetooth (0.6.0+cvs2005.09.09-2) unstable; urgency=low * build-dep on python-dev and not python2.3-dev -- Filippo Giunchedi Sun, 13 Nov 2005 16:29:14 +0100 gnome-bluetooth (0.6.0+cvs2005.09.09-1) unstable; urgency=low * first upload to debian, imported from ubuntu (Closes: #253735) * revert back to python2.3 -- Filippo Giunchedi Tue, 1 Nov 2005 18:23:17 +0100 gnome-bluetooth (0.6.0+cvs2005.09.09-0ubuntu1) breezy; urgency=low * CVS fixes: - src/fileactiondialog.gob: don't use uri after it was freed, make sure that a URI was created before using it - src/gnomebt-fileactiondialog-test.c: (main): check that the files exist before running the tests - src/controller.gob: fix 2 memory leaks, gconf_client_get_string already returns a newly-allocated string - src/permissiondialog.gob: fix a double-free * fixes Malone #2406. -- Daniel Holbach Tue, 20 Sep 2005 19:36:24 +0200 gnome-bluetooth (0.6.0-0ubuntu1) breezy; urgency=low * New upstream release: - gnome-obex-server: Now preserves timestamps of reserved files (Tumoas Salo). - Save received files to the path specified in the /apps/gnome-obex-server/savedir GConf key - Remove the nautilus extension, sending files over Bluetooth devices is now handled though nautilus-sendto (Bastien Nocera) - Make gnome-bluetooth-manager run with newer PyGTK (Olav Vitters, Harald Hoyer) - Make dialogues comply better with the HIG (Bastien Nocera) - Add a test program for the spinner widget (Bastien Nocera) - Build fixes (Bastien Nocera) - Updated translations. * debian/control: - Bumped Standards-Version. - Adjusted Build-Depends according to configure.in * debian/patches/01_gnome-ui-appbar-fix.patch: - dropped. -- Daniel Holbach Fri, 9 Sep 2005 17:12:18 +0200 gnome-bluetooth (0.5.1-1ubuntu7) hoary; urgency=low * Rebuilt, because of libhowl0 moving out. -- Daniel Holbach Thu, 10 Mar 2005 13:55:24 +0100 gnome-bluetooth (0.5.1-1ubuntu6) hoary; urgency=low * debian/patches/01_gnome-ui-appbar-fix.patch: - gtk.Statusbar() fix thanks very much to Trent Lloyd. * debian/control: - Build-Depend on librsvg2-dev, python2.4-dev. Migrate all to python2.4. -- Jeff Waugh Mon, 24 Jan 2005 19:11:43 +1100 gnome-bluetooth (0.5.1-1ubuntu5) hoary; urgency=low * debian/control: - Build-Depends typo. -- Jeff Waugh Thu, 2 Dec 2004 21:51:04 +1100 gnome-bluetooth (0.5.1-1ubuntu4) hoary; urgency=low * debian/control: - Eugh, Build-Depends. -- Jeff Waugh Thu, 2 Dec 2004 15:05:29 +1100 gnome-bluetooth (0.5.1-1ubuntu3) hoary; urgency=low * debian/control: - Build-Depend on intltool -- Jeff Waugh Thu, 2 Dec 2004 14:12:48 +1100 gnome-bluetooth (0.5.1-1ubuntu2) hoary; urgency=low * Upload to Ubuntu -- Jeff Waugh Wed, 1 Dec 2004 18:47:26 +1100 gnome-bluetooth (0.5.1-1) unstable; urgency=low * New upstream release. -- Edd Dumbill Fri, 18 Jun 2004 20:13:52 +0100 gnome-bluetooth (0.5-3) unstable; urgency=low * Add more missing dependencies for gnome-bluetooth (gtk2, glade2, gnome2). -- Edd Dumbill Sat, 12 Jun 2004 02:54:48 +0100 gnome-bluetooth (0.5-2) unstable; urgency=low * Add missing dependency on python2.3-libbtctl. -- Edd Dumbill Fri, 11 Jun 2004 15:22:36 +0100 gnome-bluetooth (0.5-1) unstable; urgency=low * Initial packaging. -- Edd Dumbill Thu, 10 Jun 2004 11:07:33 +0100 debian/gir1.2-gnomebluetooth-1.0.install0000664000000000000000000000003312303134066015101 0ustar usr/lib/girepository-1.0/* debian/rules0000775000000000000000000000160212303134066010245 0ustar #!/usr/bin/make -f LDFLAGS=$(shell echo $$LDFLAGS | sed -e 's/-Wl,-Bsymbolic-functions//') export LDFLAGS include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/gnome.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk DEB_CONFIGURE_EXTRA_FLAGS := --disable-desktop-update \ --disable-schemas-install \ --disable-icon-update \ --enable-introspection # List any files which are not installed include /usr/share/cdbs/1/rules/utils.mk common-binary-post-install-arch:: list-missing DEB_DH_MAKESHLIBS_ARGS_gnome-bluetooth = --no-act DEB_DH_GIREPOSITORY_ARGS_gnome-bluetooth := -l$(CURDIR)/applet /usr/lib/gnome-bluetooth/ DEB_DH_MAKESHLIBS_ARGS_libgnome-bluetooth11 += -V -- -c4 debian/source/0000775000000000000000000000000012303134066010466 5ustar debian/source/format0000664000000000000000000000001412303134066011674 0ustar 3.0 (quilt) debian/control.in0000664000000000000000000000637712303134066011213 0ustar Source: gnome-bluetooth Section: gnome Priority: optional Maintainer: Ubuntu Desktop Team XSBC-Original-Maintainer: Debian GNOME Maintainers Uploaders: @GNOME_TEAM@ Build-Depends: debhelper (>= 8.1.0~), cdbs (>= 0.4.93), dh-autoreconf, gnome-common, gnome-pkg-tools, libglib2.0-dev (>= 2.29.90), libgtk-3-dev (>= 3.0.0), libx11-dev, libxi-dev, intltool (>= 0.40.0), libxml2-utils, gtk-doc-tools, nautilus-sendto (>= 2.29.0), yelp-tools, gobject-introspection (>= 0.10.2-1~), libgirepository1.0-dev (>= 0.9.5) Standards-Version: 3.9.4 Vcs-Bzr: https://code.launchpad.net/~ubuntu-desktop/gnome-bluetooth/ubuntu Homepage: https://wiki.gnome.org/GnomeBluetooth Package: gnome-bluetooth Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, ${gir:Depends}, bluez (>= 4.36), obexd-client, udev (>= 154), obex-data-server Recommends: gvfs-backends, unity-control-center | gnome-control-center, gnome-user-share Replaces: nautilus-sendto (<< 2.28.4-2) Breaks: nautilus-sendto (<< 3.0), gnome-phone-manager (<< 0.67), network-manager-gnome (<< 0.9.0-3) Conflicts: bluez-gnome Architecture: linux-any Description: GNOME Bluetooth tools This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . bluetooth-applet provides an agent to ask for PIN and managing pairing with devices, together with bluetooth-properties. . bluetooth-sendto is also included for sending files to Bluetooth devices via OBEX. Package: libgnome-bluetooth11 Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: linux-any Description: GNOME Bluetooth tools - support library This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . The libraries included provide support to gnome-bluetooth. Package: libgnome-bluetooth-dev Section: libdevel Depends: libgnome-bluetooth11 (= ${binary:Version}), gir1.2-gnomebluetooth-1.0 (= ${binary:Version}), ${misc:Depends}, libgtk-3-dev, libglib2.0-dev Suggests: pkg-config Priority: extra Architecture: linux-any Description: GNOME Bluetooth tools - support library development files This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . The libraries included provide support to gnome-bluetooth. . This package contains the development files for libgnome-bluetooth Package: gir1.2-gnomebluetooth-1.0 Section: introspection Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends}, ${gir:Depends} Breaks: gnome-shell (<< 3.4.2-9), gnome-bluetooth (<< 3.8) Description: Introspection data for GnomeBluetooth This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . The libraries included provide support to gnome-bluetooth. . This package contains the introspection data for GnomeBluetooth debian/control0000664000000000000000000000716612303134072010600 0ustar # This file is autogenerated. DO NOT EDIT! # # Modifications should be made to debian/control.in instead. # This file is regenerated automatically in the clean target. Source: gnome-bluetooth Section: gnome Priority: optional Maintainer: Ubuntu Desktop Team XSBC-Original-Maintainer: Debian GNOME Maintainers Uploaders: Debian GNOME Maintainers , Emilio Pozuelo Monfort , Jeremy Bicha , Michael Biebl , Sjoerd Simons Build-Depends: debhelper (>= 8.1.0~), cdbs (>= 0.4.93), dh-autoreconf, gnome-common, gnome-pkg-tools, libglib2.0-dev (>= 2.29.90), libgtk-3-dev (>= 3.0.0), libx11-dev, libxi-dev, intltool (>= 0.40.0), libxml2-utils, gtk-doc-tools, nautilus-sendto (>= 2.29.0), yelp-tools, gobject-introspection (>= 0.10.2-1~), libgirepository1.0-dev (>= 0.9.5) Standards-Version: 3.9.4 Vcs-Bzr: https://code.launchpad.net/~ubuntu-desktop/gnome-bluetooth/ubuntu Homepage: https://wiki.gnome.org/GnomeBluetooth Package: gnome-bluetooth Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, ${gir:Depends}, bluez (>= 4.36), obexd-client, udev (>= 154), obex-data-server Recommends: gvfs-backends, unity-control-center | gnome-control-center, gnome-user-share Replaces: nautilus-sendto (<< 2.28.4-2) Breaks: nautilus-sendto (<< 3.0), gnome-phone-manager (<< 0.67), network-manager-gnome (<< 0.9.0-3) Conflicts: bluez-gnome Architecture: linux-any Description: GNOME Bluetooth tools This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . bluetooth-applet provides an agent to ask for PIN and managing pairing with devices, together with bluetooth-properties. . bluetooth-sendto is also included for sending files to Bluetooth devices via OBEX. Package: libgnome-bluetooth11 Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: linux-any Description: GNOME Bluetooth tools - support library This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . The libraries included provide support to gnome-bluetooth. Package: libgnome-bluetooth-dev Section: libdevel Depends: libgnome-bluetooth11 (= ${binary:Version}), gir1.2-gnomebluetooth-1.0 (= ${binary:Version}), ${misc:Depends}, libgtk-3-dev, libglib2.0-dev Suggests: pkg-config Priority: extra Architecture: linux-any Description: GNOME Bluetooth tools - support library development files This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . The libraries included provide support to gnome-bluetooth. . This package contains the development files for libgnome-bluetooth Package: gir1.2-gnomebluetooth-1.0 Section: introspection Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends}, ${gir:Depends} Breaks: gnome-shell (<< 3.4.2-9), gnome-bluetooth (<< 3.8) Description: Introspection data for GnomeBluetooth This package contains tools for managing and manipulating Bluetooth devices using the GNOME desktop. . The libraries included provide support to gnome-bluetooth. . This package contains the introspection data for GnomeBluetooth debian/compat0000664000000000000000000000000212303134066010364 0ustar 8 debian/watch0000664000000000000000000000016412303134066010220 0ustar version=3 http://ftp.gnome.org/pub/gnome/sources/gnome-bluetooth/([\d\.]+[02468])/ \ gnome-bluetooth-(.*)\.tar\.xz debian/patches/0000775000000000000000000000000012303134066010615 5ustar debian/patches/99_add_microsoft_mice.patch0000664000000000000000000000120512303134066015767 0ustar ## Description: add PIN/OUI for Microsoft Wedge/Sculpt Mouse ## Origin/Author: Anthony Wong ## Bug: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1094744 ## Upstream-Bug: https://bugzilla.gnome.org/show_bug.cgi?id=690927 --- a/wizard/pin-code-database.xml +++ b/wizard/pin-code-database.xml @@ -83,6 +83,9 @@ + + + debian/patches/revert-drop-sendto-plugin.patch0000664000000000000000000002362412303134066016704 0ustar From 71ea7324219719f370f1b0667f488c490ba58802 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 09 Nov 2012 14:36:35 +0000 Subject: sendto: Remove nautilus-sendto plugin nautilus-sendto is getting trimmed. --- --- a/configure.ac +++ b/configure.ac @@ -80,6 +80,27 @@ gtk+-3.0 gio-2.0) +dnl nautilus-sendto plugin +AC_ARG_ENABLE(nautilus-sendto, + AS_HELP_STRING([--enable-nautilus-sendto=@<:@no/yes/auto@:>@], + [build nautilus-sendto plugin])) + +if test "x$enable_nautilus_sendto" != "xno"; then + PKG_CHECK_MODULES(NST, + [ + nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED + nautilus-sendto < $NAUTILUS_SENDTO_MAX_REQUIRED + ], have_nst="yes", have_nst="no") +else + have_nst=no +fi + +if test "x$enable_nautilus_sendto" = "xyes" -a "x$have_nst" != "xyes"; then + AC_MSG_ERROR([Could not find nautilus-sendto dependencies.]) +fi + +AM_CONDITIONAL(HAVE_NST, test "x$have_nst" = "xyes") + dnl Requires for the wizard dialogue PKG_CHECK_MODULES(WIZARD, gmodule-export-2.0 @@ -146,6 +167,7 @@ Compiler....................: ${CC} Compiler Flags..............: ${CFLAGS} Prefix......................: ${prefix} + nautilus-sendto plugin......: ${have_nst} Documentation...............: ${enable_gtk_doc} GObject-Introspection.......: ${found_introspection} " --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -10,4 +10,5 @@ [type: gettext/glade] wizard/wizard.ui wizard/bluetooth-wizard.desktop.in.in sendto/main.c +sendto/nautilus-sendto-plugin.c sendto/bluetooth-sendto.desktop.in.in --- a/sendto/Makefile.am +++ b/sendto/Makefile.am @@ -24,6 +24,27 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ +if HAVE_NST +plugindir = $(libdir)/nautilus-sendto/plugins + +plugin_LTLIBRARIES = libnstbluetooth.la + +libnstbluetooth_la_SOURCES = nautilus-sendto-plugin.c +libnstbluetooth_la_LDFLAGS = -module -avoid-version +libnstbluetooth_la_LIBADD = $(BLUETOOTH_LIBS) ../lib/libgnome-bluetooth.la + +convertdir=$(datadir)/GConf/gsettings +convert_DATA=gnome-bluetooth-nst + +gsettingsschema_in_files = org.gnome.Bluetooth.nst.gschema.xml.in +gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml) +@INTLTOOL_XML_NOMERGE_RULE@ +@GSETTINGS_RULES@ + +CLEANFILES = $(gsettings_SCHEMAS) $(desktop_DATA) + +endif + EXTRA_DIST = $(man_MANS) $(desktop_in_in_files) DISTCLEANFILES = bluetooth-sendto.desktop --- /dev/null +++ b/sendto/gnome-bluetooth-nst @@ -0,0 +1,2 @@ +[org.gnome.Bluetooth.nst] +last-used = /desktop/gnome/nautilus-sendto/last_obex_device --- /dev/null +++ b/sendto/nautilus-sendto-plugin.c @@ -0,0 +1,273 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +/* + * Copyright (C) 2004 Roberto Majadas + * Copyright (C) 2005, 2009 Bastien Nocera + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more av. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Author: Bastien Nocera + */ + +#include "config.h" + +#include +#include +#include + +#include "nautilus-sendto-plugin.h" + +#define SCHEMA_NAME "org.gnome.Bluetooth.nst" +#define PREF_LAST_USED "last-used" + +static GtkWidget *combo; +static char *cmd = NULL; + +static gboolean +init (NstPlugin *plugin) +{ + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + + /* Check whether bluetooth-sendto or gnome-obex-send are available */ + cmd = g_find_program_in_path ("bluetooth-sendto"); + if (cmd == NULL) + return FALSE; + + return TRUE; +} + +static void +set_last_used_device (void) +{ + char *bdaddr; + GSettings *settings; + + settings = g_settings_new (SCHEMA_NAME); + bdaddr = g_settings_get_string (settings, PREF_LAST_USED); + g_object_unref (settings); + + if (*bdaddr != '\0') { + g_object_set (G_OBJECT (combo), "device", bdaddr, NULL); + } else { + g_object_set (G_OBJECT (combo), "device", BLUETOOTH_CHOOSER_COMBO_FIRST_DEVICE, NULL); + } + g_free (bdaddr); +} + +static GtkWidget* +get_contacts_widget (NstPlugin *plugin) +{ + GtkWidget *chooser; + const char *filter = "OBEXObjectPush"; + + combo = bluetooth_chooser_combo_new (); + g_object_get (G_OBJECT (combo), "chooser", &chooser, NULL); + g_object_set (chooser, + "show-searching", TRUE, + "show-device-type", FALSE, + "show-device-category", FALSE, + "show-pairing", TRUE, + "show-connected", FALSE, + "device-service-filter", filter, + NULL); + set_last_used_device (); + bluetooth_chooser_start_discovery (BLUETOOTH_CHOOSER (chooser)); + gtk_container_set_border_width (GTK_CONTAINER (combo), 0); + gtk_widget_show (combo); + + return combo; +} + +static void +save_last_used_obex_device (const char *bdaddr) +{ + GSettings *settings; + + settings = g_settings_new (SCHEMA_NAME); + g_settings_set_string (settings, PREF_LAST_USED, bdaddr); + g_object_unref (settings); +} + +static gboolean +send_files (NstPlugin *plugin, + GtkWidget *contact_widget, + GList *file_list) +{ + char *bdaddr = NULL; + GPtrArray *argv; + GList *list; + gboolean ret; + GError *err = NULL; + + g_object_get (G_OBJECT (combo), "device", &bdaddr, NULL); + if (bdaddr == NULL) + return FALSE; + + argv = g_ptr_array_new (); + g_ptr_array_add (argv, cmd); + g_ptr_array_add (argv, "--dest"); + g_ptr_array_add (argv, bdaddr); + + for (list = file_list; list != NULL; list = list->next) { + g_ptr_array_add (argv, (gchar *) list->data); + } + g_ptr_array_add (argv, NULL); + +#if 0 + g_print ("launching command: "); + for (i = 0; i < argv->len - 1; i++) { + g_print ("%s ", (gchar *) g_ptr_array_index (argv, i)); + } + g_print ("\n"); +#endif + ret = g_spawn_async (NULL, (gchar **) argv->pdata, + NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &err); + g_ptr_array_free (argv, TRUE); + + if (ret == FALSE) { + g_warning ("Couldn't send files via bluetooth: %s", err->message); + g_error_free (err); + } else { + save_last_used_obex_device (bdaddr); + } + return ret; +} + +static gboolean +validate_destination (NstPlugin *plugin, + GtkWidget *contact_widget, + char **error) +{ +#if 0 + GError *e = NULL; + char *bdaddr, *device_path; + DBusGProxy *device; + GHashTable *props; + GValue *value; + gboolean found = FALSE; + char **array; + gboolean first_time = TRUE; + + g_return_val_if_fail (error != NULL, FALSE); + + if (get_select_device (NULL, &bdaddr) == FALSE) { + *error = g_strdup (_("Programming error: could not find the device in the list")); + return FALSE; + } + + if (dbus_g_proxy_call (object, "FindDevice", NULL, + G_TYPE_STRING, bdaddr, G_TYPE_INVALID, + DBUS_TYPE_G_OBJECT_PATH, &device_path, G_TYPE_INVALID) == FALSE) { + g_free (bdaddr); + return TRUE; + } + + device = dbus_g_proxy_new_for_name (conn, "org.bluez", + device_path, "org.bluez.Device"); + +again: + if (dbus_g_proxy_call (device, "GetProperties", NULL, + G_TYPE_INVALID, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), + &props, G_TYPE_INVALID) == FALSE) { + goto bail; + } + + value = g_hash_table_lookup (props, "UUIDs"); + array = g_value_get_boxed (value); + if (array != NULL) { + char *uuid; + guint i; + + for (i = 0; array[i] != NULL; i++) { + if (g_str_has_suffix (array[i], "-0000-1000-8000-00805f9b34fb") != FALSE) { + if (g_str_has_prefix (array[i], "0000") != FALSE) { + char *tmp; + tmp = g_strndup (array[i] + 4, 4); + uuid = g_strdup_printf ("0x%s", tmp); + g_free (tmp); + } else { + char *tmp; + tmp = g_strndup (array[i], 8); + uuid = g_strdup_printf ("0x%s", tmp); + } + } else { + uuid = g_strdup (array[i]); + } + + if (strcmp (uuid, OBEX_FILETRANS_SVCLASS_ID_STR) == 0 || + strcmp (uuid, OBEX_PUSH_SVCLASS_ID_STR) == 0 ){ + found = TRUE; + g_free (uuid); + break; + } + + g_free (uuid); + } + } else { + /* No array, can't really check now, can we */ + found = TRUE; + } + + g_hash_table_destroy (props); + if (found == TRUE || first_time == FALSE) + goto bail; + + first_time = FALSE; + + /* If no valid service found the first time around, then request services refresh */ + if (! dbus_g_proxy_call (device, "DiscoverServices", &e, G_TYPE_STRING, NULL, + G_TYPE_INVALID, dbus_g_type_get_map("GHashTable", G_TYPE_UINT, G_TYPE_STRING), + &props, G_TYPE_INVALID)) { + goto bail; + } + goto again; + +bail: + g_object_unref (device); + + if (found == FALSE) + *error = g_strdup_printf (_("OBEX Push file transfer unsupported")); + + return found; +#endif + return TRUE; +} + +static gboolean +destroy (NstPlugin *plugin) +{ + gtk_widget_destroy (combo); + g_free (cmd); + return TRUE; +} + +static +NstPluginInfo plugin_info = { + "bluetooth", + "bluetooth", + N_("Bluetooth (OBEX Push)"), + GETTEXT_PACKAGE, + NAUTILUS_CAPS_NONE, + init, + get_contacts_widget, + validate_destination, + send_files, + destroy +}; + +NST_INIT_PLUGIN (plugin_info) + --- /dev/null +++ b/sendto/org.gnome.Bluetooth.nst.gschema.xml.in @@ -0,0 +1,9 @@ + + + + '' + The last Bluetooth device we sent files to + The last Bluetooth device we sent files to. + + + debian/patches/git_leak_fixes.patch0000664000000000000000000000165712303134066014624 0ustar From 91ac544495d874159893eefff1f68332c4780001 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 20 Nov 2013 16:10:07 +0000 Subject: lib: Fix a few memory leaks --- diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 8bddb58..1fe7e6d 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -1878,8 +1878,10 @@ bluetooth_client_connect_service (BluetoothClient *client, g_object_unref (proxy); goto bail; } + g_hash_table_unref (table); service = get_proxy_for_iface (DEVICE (proxy), iface_name, client); + g_object_unref (proxy); g_debug ("Calling 'Connect' on interface %s for %s", iface_name, g_dbus_proxy_get_object_path (service)); @@ -1922,6 +1924,7 @@ bluetooth_client_connect_service (BluetoothClient *client, NULL, (GAsyncReadyCallback) disconnect_callback, conndata); + g_object_unref (proxy); } return; -- cgit v0.9.2 debian/patches/git_disconnect_callbacks.patch0000664000000000000000000001046112303134066016633 0ustar From 84ec5f5a11908e636ff3b992aecfc5c8f8faddb5 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 20 Nov 2013 16:10:46 +0000 Subject: lib: Fix cancellation handling We weren't checking for cancellation properly, not passing cancellables to sub-routines, and not reporting cancelled calls correctly. --- diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 1fe7e6d..e224033 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -1661,23 +1661,20 @@ connect_callback (GDBusProxy *proxy, ConnectData *conndata) { GVariant *variant; - gboolean retval; GError *error = NULL; variant = g_dbus_proxy_call_finish (proxy, res, &error); if (variant == NULL) { - retval = FALSE; g_debug ("Connect failed for %s: %s", g_dbus_proxy_get_object_path (proxy), error->message); - g_error_free (error); + g_simple_async_result_take_error (conndata->simple, error); } else { g_debug ("Connect succeeded for %s", g_dbus_proxy_get_object_path (proxy)); g_variant_unref (variant); - retval = TRUE; + g_simple_async_result_set_op_res_gboolean (conndata->simple, TRUE); } - g_simple_async_result_set_op_res_gboolean (conndata->simple, retval); g_simple_async_result_complete_in_idle (conndata->simple); g_object_unref (conndata->simple); @@ -1699,10 +1696,11 @@ disconnect_callback (GDBusProxy *proxy, g_debug ("Disconnect failed for %s: %s", g_dbus_proxy_get_object_path (G_DBUS_PROXY (conndata->device)), error->message); - g_error_free (error); + g_simple_async_result_take_error (conndata->simple, error); } else { g_debug ("Disconnect succeeded for %s", g_dbus_proxy_get_object_path (G_DBUS_PROXY (conndata->device))); + g_simple_async_result_set_op_res_gboolean (conndata->simple, retval); } } else { GDBusProxy *service; @@ -1716,6 +1714,10 @@ disconnect_callback (GDBusProxy *proxy, g_dbus_proxy_get_object_path (proxy), g_dbus_proxy_get_interface_name (proxy), error->message); + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { + g_simple_async_result_take_error (conndata->simple, error); + goto bail; + } g_error_free (error); } else { g_debug ("Disconnect succeeded for %s on %s", @@ -1737,14 +1739,14 @@ disconnect_callback (GDBusProxy *proxy, g_variant_new ("()"), G_DBUS_CALL_FLAGS_NONE, -1, - NULL, + g_object_get_data (G_OBJECT (conndata->simple), "cancellable"), (GAsyncReadyCallback) disconnect_callback, conndata); return; } - g_simple_async_result_set_op_res_gboolean (conndata->simple, retval); +bail: g_simple_async_result_complete_in_idle (conndata->simple); g_object_unref (proxy); @@ -1836,6 +1838,7 @@ bluetooth_client_connect_service (BluetoothClient *client, g_object_set_data_full (G_OBJECT (simple), "device", g_strdup (device), g_free); } + g_simple_async_result_set_check_cancellable (simple, cancellable); gtk_tree_model_get (GTK_TREE_MODEL (priv->store), &iter, BLUETOOTH_COLUMN_PROXY, &proxy, @@ -1891,7 +1894,7 @@ bluetooth_client_connect_service (BluetoothClient *client, NULL, G_DBUS_CALL_FLAGS_NONE, -1, - NULL, + cancellable, (GAsyncReadyCallback) connect_callback, conndata); } else if (table != NULL) { @@ -1914,14 +1917,14 @@ bluetooth_client_connect_service (BluetoothClient *client, NULL, G_DBUS_CALL_FLAGS_NONE, -1, - NULL, + cancellable, (GAsyncReadyCallback) disconnect_callback, conndata); } else if (table == NULL) { g_debug ("Calling device_call_disconnect() for %s", g_dbus_proxy_get_object_path (proxy)); device_call_disconnect (DEVICE (proxy), - NULL, + cancellable, (GAsyncReadyCallback) disconnect_callback, conndata); g_object_unref (proxy); @@ -1956,7 +1959,10 @@ bluetooth_client_connect_service_finish (BluetoothClient *client, g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == bluetooth_client_connect_service); - return g_simple_async_result_get_op_res_gboolean (simple); + if (g_simple_async_result_get_op_res_gboolean (simple)) + return TRUE; + g_simple_async_result_propagate_error (simple, error); + return FALSE; } #define BOOL_STR(x) (x ? "True" : "False") -- cgit v0.9.2 debian/patches/series0000664000000000000000000000041212303134066012027 0ustar 01-Revert-lib-Remove-ObexFTP-browsing.patch 02_gettext_macros.patch menu_update_on_rfkill.patch revert-drop-sendto-plugin.patch 99_add_microsoft_mice.patch 99_add_apple_touchpads.patch git_leak_fixes.patch git_disconnect_callbacks.patch git_reference_handling.patch debian/patches/99_add_apple_touchpads.patch0000664000000000000000000000125012303134066016140 0ustar Author: Chad MILLER Bug-gnome: https://bugzilla.gnome.org/show_bug.cgi?id=721652 --- a/wizard/pin-code-database.xml +++ b/wizard/pin-code-database.xml @@ -73,6 +73,10 @@ + + + debian/patches/git_reference_handling.patch0000664000000000000000000000177012303134066016310 0ustar From fbc1ce2836ccf17368fb6fe2aa0c69396c610aa5 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 20 Nov 2013 16:11:32 +0000 Subject: lib: Fix extraneous reference that could lead to crash The proxy we got from the tree model was already the extra reference we needed. This makes sure that all additional instances of the device (the ones not in the tree model) are destroyed when cancelling a disconnect call. --- diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index e224033..c5e86de 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -1900,7 +1900,7 @@ bluetooth_client_connect_service (BluetoothClient *client, } else if (table != NULL) { GDBusProxy *service; - conndata->device = g_object_ref (DEVICE (proxy)); + conndata->device = DEVICE (proxy); conndata->services = g_hash_table_get_keys (table); g_hash_table_unref (table); conndata->services = g_list_sort (conndata->services, (GCompareFunc) rev_sort_services); -- cgit v0.9.2 debian/patches/02_gettext_macros.patch0000664000000000000000000000077312303134066015176 0ustar Index: gnome-bluetooth-3.0.0/configure.ac =================================================================== --- gnome-bluetooth-3.0.0.orig/configure.ac 2011-05-24 11:45:22.573543108 -0400 +++ gnome-bluetooth-3.0.0/configure.ac 2011-05-24 11:45:33.643543107 -0400 @@ -41,9 +41,6 @@ # i18n stuff IT_PROG_INTLTOOL([0.40.0]) -AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION([0.17]) - GETTEXT_PACKAGE=gnome-bluetooth2 AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", debian/patches/01-Revert-lib-Remove-ObexFTP-browsing.patch0000664000000000000000000001060012303134066020414 0ustar From 4bba54bf4371b5862f74af011e67d1c59b67bab1 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 29 Mar 2013 12:05:37 +0100 Subject: [PATCH] Revert "lib: Remove ObexFTP browsing" This reverts commit ce841d2166e3af9ae5f6a001c9f12e7ea7421e74. Conflicts: lib/bluetooth-utils.c --- lib/bluetooth-utils.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++++ lib/bluetooth-utils.h | 8 ++++ 2 files changed, 115 insertions(+) diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c index 25ff91e..b19b4e1 100644 --- a/lib/bluetooth-utils.c +++ b/lib/bluetooth-utils.c @@ -340,3 +340,110 @@ bluetooth_send_to_address (const char *address, g_ptr_array_free (a, TRUE); } +typedef struct { + GSimpleAsyncResult *result; + guint timestamp; +} MountClosure; + +static void +mount_ready_cb (GObject *object, + GAsyncResult *result, + gpointer user_data) +{ + GError *error = NULL; + GFile *file = G_FILE (object); + char *uri = g_file_get_uri (file); + MountClosure *closure = user_data; + + if (g_file_mount_enclosing_volume_finish (file, result, &error) == FALSE) { + /* Ignore "already mounted" error */ + if (error->domain == G_IO_ERROR && + error->code == G_IO_ERROR_ALREADY_MOUNTED) { + g_error_free (error); + error = NULL; + } + } + + if (!error) { + gtk_show_uri (NULL, uri, closure->timestamp, &error); + } + + if (error) { + g_simple_async_result_set_from_error (closure->result, error); + g_error_free (error); + } else { + g_simple_async_result_set_op_res_gboolean (closure->result, TRUE); + } + + g_simple_async_result_complete (closure->result); + + g_free (uri); + g_object_unref (closure->result); + g_free (closure); +} + +/** + * bluetooth_browse_address_finish: + * @object: a #GObject + * @result: the #GAsyncResult from the callback + * @error: a #GError + * + * Finishes the browse operation, See bluetooth_browse_address(). + * + * Returns: %TRUE if the operation was successful, %FALSE if error is set. + */ +gboolean +bluetooth_browse_address_finish (GObject *object, + GAsyncResult *result, + GError **error) +{ + GSimpleAsyncResult *simple; + + g_return_val_if_fail (G_IS_OBJECT (object), FALSE); + g_return_val_if_fail (g_simple_async_result_is_valid (result, object, bluetooth_browse_address), FALSE); + + simple = G_SIMPLE_ASYNC_RESULT (result); + if (g_simple_async_result_propagate_error (simple, error)) + return FALSE; + else + return TRUE; +} + +/** + * bluetooth_browse_address: + * @object: a #GObject, such as the top-level of your management application + * @address: the Bluetooth device to browse + * @timestamp: a timestamp to prevent focus stealing + * @callback: (scope async): the completion callback + * @user_data: the data to pass to callback function + * + * Opens a Bluetooth device in Nautilus. + * + * Ideally the timestamp is taken from the event triggering the call to this function. + * If timestamp is not known you can take #GDK_CURRENT_TIME. + */ +void +bluetooth_browse_address (GObject *object, + const char *address, + guint timestamp, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GFile *file; + char *uri; + MountClosure *closure; + + g_return_if_fail (G_IS_OBJECT (object)); + g_return_if_fail (address != NULL); + + uri = g_strdup_printf ("obex://[%s]/", address); + file = g_file_new_for_uri (uri); + + closure = g_new (MountClosure, 1); + closure->result = g_simple_async_result_new (object, callback, user_data, bluetooth_browse_address); + closure->timestamp = timestamp; + g_file_mount_enclosing_volume(file, G_MOUNT_MOUNT_NONE, NULL, NULL, mount_ready_cb, closure); + + g_free (uri); + g_object_unref (file); +} diff --git a/lib/bluetooth-utils.h b/lib/bluetooth-utils.h index 8920b4c..53c341b 100644 --- a/lib/bluetooth-utils.h +++ b/lib/bluetooth-utils.h @@ -35,6 +35,14 @@ const gchar *bluetooth_type_to_string (guint type); gboolean bluetooth_verify_address (const char *bdaddr); const char *bluetooth_uuid_to_string (const char *uuid); +gboolean bluetooth_browse_address_finish (GObject *object, + GAsyncResult *result, + GError **error); +void bluetooth_browse_address (GObject *object, + const char *address, + guint timestamp, + GAsyncReadyCallback callback, + gpointer user_data); void bluetooth_send_to_address (const char *address, const char *alias); -- 1.7.10.4 debian/patches/menu_update_on_rfkill.patch0000664000000000000000000000137612303134066016212 0ustar From: Jesse Sung Subject: Make sure the applet notices it might be time to show the whole menu when the killswitch is toggled. Bug-Ubuntu: http://bugs.launchpad.net/ubuntu/+source/bluez/+bug/907818 Index: gnome-bluetooth-3.4.2/applet/bluetooth-applet.c =================================================================== --- gnome-bluetooth-3.4.2.orig/applet/bluetooth-applet.c 2012-07-02 22:21:54.000000000 +1200 +++ gnome-bluetooth-3.4.2/applet/bluetooth-applet.c 2012-07-05 14:51:57.960835633 +1200 @@ -637,6 +637,7 @@ BluetoothApplet *self = BLUETOOTH_APPLET (user_data); g_object_notify (G_OBJECT (self), "killswitch-state"); + g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_FULL_MENU]); } typedef struct { debian/libgnome-bluetooth-dev.install0000664000000000000000000000015712303134066015134 0ustar usr/include/* usr/lib/lib*.so usr/lib/pkgconfig/* usr/share/gtk-doc/html/gnome-bluetooth/* usr/share/gir-1.0/*