1
0
OBS User unknown 2007-01-10 16:42:14 +00:00 committed by Git OBS Bridge
commit a46028cb75
10 changed files with 532 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10823e914d36fe7fe79dadec29b180cb7f850cea2dd6de7a3322aa4bca1ba87a
size 795141

View File

@ -0,0 +1,17 @@
--- gnome-bluetooth-0.7.0/obex/gnome-obex-server.desktop.in
+++ gnome-bluetooth-0.7.0/obex/gnome-obex-server.desktop.in
@@ -1,12 +1,11 @@
[Desktop Entry]
-Encoding=UTF-8
+X-SuSE-translate=true
_Name=Bluetooth File Sharing
-_Comment=Receive files sent by Bluetooth devices
+_GenericName=Receive files sent by Bluetooth devices
Icon=blueradio-48
Exec=gnome-obex-server
Terminal=0
Type=Application
-Categories=Application;System;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-bluetooth
X-GNOME-Bugzilla-Component=obex-server

View File

@ -0,0 +1,26 @@
--- python/manager.py
+++ python/manager.py
@@ -82,10 +82,13 @@
self.btctl.connect ("status_change", self.on_status_change)
self.btctl.connect ("add_device", self.on_add_device)
- if not self.btctl.is_initialised():
+ try:
+ self.btctl.is_initialised()
+ except:
hig_alert.reportError (self.window, _("Could not find Bluetooth devices on the system"), _("Please make sure that your Bluetooth adapter is correctly plugged in your machine."))
sys.exit (1)
+ self.window.show_all ()
self.read_devices ()
def setup_gui (self):
@@ -163,8 +166,6 @@
self.scrolly.set_policy (gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
self.scrolly.add (self.iconlist)
- self.window.show_all ()
-
logoname = self.image_file ("btdevice-misc.png")
self.logo = gtk.gdk.pixbuf_new_from_file (logoname)

View File

@ -0,0 +1,16 @@
Index: python/manager.py
===================================================================
RCS file: /cvs/gnome/gnome-bluetooth/python/manager.py,v
retrieving revision 1.15
diff -u -p -r1.15 manager.py
--- python/manager.py 7 Aug 2005 16:51:50 -0000 1.15
+++ python/manager.py 2 Feb 2006 18:46:25 -0000
@@ -265,7 +265,7 @@ class BTManager (object):
dialog.show ()
def image_file (self, fname):
- for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps"]:
+ for d in [os.path.join (__datadir__, "pixmaps"), os.path.join (__datadir__, "../pixmaps"), "../pixmaps"]:
if os.path.isfile (os.path.join (d, fname)):
return os.path.join (d, fname)
return None

View File

@ -0,0 +1,90 @@
--- libegg/libegg/tray/eggtrayicon.c
+++ libegg/libegg/tray/eggtrayicon.c
@@ -62,6 +62,9 @@
static void egg_tray_icon_realize (GtkWidget *widget);
static void egg_tray_icon_unrealize (GtkWidget *widget);
+static void egg_tray_icon_add (GtkContainer *container,
+ GtkWidget *widget);
+
static void egg_tray_icon_update_manager_window (EggTrayIcon *icon);
GType
@@ -104,6 +107,7 @@
{
GObjectClass *gobject_class = (GObjectClass *)klass;
GtkWidgetClass *widget_class = (GtkWidgetClass *)klass;
+ GtkContainerClass *container_class = (GtkContainerClass *)klass;
parent_class = g_type_class_peek_parent (klass);
@@ -112,6 +116,8 @@
widget_class->realize = egg_tray_icon_realize;
widget_class->unrealize = egg_tray_icon_unrealize;
+ container_class->add = egg_tray_icon_add;
+
g_object_class_install_property (gobject_class,
PROP_ORIENTATION,
g_param_spec_enum ("orientation",
@@ -330,6 +336,36 @@
}
}
+static gboolean
+transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
+{
+ gdk_window_clear_area (widget->window, event->area.x, event->area.y,
+ event->area.width, event->area.height);
+ return FALSE;
+}
+
+static void
+make_transparent_again (GtkWidget *widget, GtkStyle *previous_style,
+ gpointer user_data)
+{
+ gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
+}
+
+static void
+make_transparent (GtkWidget *widget, gpointer user_data)
+{
+ if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget))
+ return;
+
+ gtk_widget_set_app_paintable (widget, TRUE);
+ gtk_widget_set_double_buffered (widget, FALSE);
+ gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
+ g_signal_connect (widget, "expose_event",
+ G_CALLBACK (transparent_expose_event), NULL);
+ g_signal_connect_after (widget, "style_set",
+ G_CALLBACK (make_transparent_again), NULL);
+}
+
static void
egg_tray_icon_realize (GtkWidget *widget)
{
@@ -343,6 +379,8 @@
if (GTK_WIDGET_CLASS (parent_class)->realize)
GTK_WIDGET_CLASS (parent_class)->realize (widget);
+ make_transparent (widget, NULL);
+
screen = gtk_widget_get_screen (widget);
display = gdk_screen_get_display (screen);
xdisplay = gdk_x11_display_get_xdisplay (display);
@@ -373,6 +411,14 @@
egg_tray_icon_manager_filter, icon);
}
+static void
+egg_tray_icon_add (GtkContainer *container, GtkWidget *widget)
+{
+ g_signal_connect (widget, "realize",
+ G_CALLBACK (make_transparent), NULL);
+ GTK_CONTAINER_CLASS (parent_class)->add (container, widget);
+}
+
EggTrayIcon *
egg_tray_icon_new_for_xscreen (Screen *xscreen, const char *name)
{

140
gnome-bluetooth.changes Normal file
View File

@ -0,0 +1,140 @@
-------------------------------------------------------------------
Tue Dec 19 12:08:07 CET 2006 - sbrabec@suse.cz
- Spec file cleanup.
-------------------------------------------------------------------
Mon Dec 18 11:51:05 CST 2006 - maw@suse.de
- Move to /usr.
-------------------------------------------------------------------
Thu Nov 30 15:41:23 CET 2006 - sbrabec@suse.cz
- Fixed devel dependencies.
-------------------------------------------------------------------
Tue Sep 19 22:22:21 CEST 2006 - jhargadon@suse.de
- update to version 0.8.0
- Fix icons not showing up properly
- Allow passing URIs as well as local filenames to gnome-obex-send
- Save to ~/Desktop/Downloads by default, then fallback to ~/Desktop and ~/,
as Epiphany does, or to the user specified directory
- Remove direct openobex and bluez-devel dependencies, as well as gnome-vfs
- Remove the useless gnome-bluetooth-manager
- translation updates
-------------------------------------------------------------------
Wed Aug 16 12:13:13 CEST 2006 - cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
-------------------------------------------------------------------
Wed Aug 16 02:09:26 CEST 2006 - ro@suse.de
- added python-gobject2-devel to BuildRequires
-------------------------------------------------------------------
Mon Mar 20 22:51:31 CET 2006 - danw@suse.de
- Fail cleanly (with a dialog rather than a message to stderr) if
bluetooth is not configured on the machine. #140780
-------------------------------------------------------------------
Fri Mar 10 16:35:50 CET 2006 - danw@suse.de
- Make the gnome-obex-server trayicon transparent. #155345
-------------------------------------------------------------------
Sat Feb 18 10:26:56 CET 2006 - stbinner@suse.de
- move GenericName entries in .desktop files to Comment
-------------------------------------------------------------------
Mon Feb 6 09:26:34 CET 2006 - hpj@suse.de
- Added Rodney's pixmap path patch.
-------------------------------------------------------------------
Wed Jan 25 21:31:41 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Nov 29 17:19:44 CET 2005 - sbrabec@suse.cz
- Updated to version 0.7.0.
-------------------------------------------------------------------
Wed Nov 9 19:25:10 CET 2005 - sbrabec@suse.cz
- Fixed more random return values.
- Removed .mo install hack, locales now install properly.
-------------------------------------------------------------------
Thu Nov 3 13:20:22 CET 2005 - sbrabec@suse.cz
- Updated to version 0.6.0.
-------------------------------------------------------------------
Wed Nov 2 22:06:41 CET 2005 - dmueller@suse.de
- don't build as root
-------------------------------------------------------------------
Wed Jun 1 18:12:37 CEST 2005 - sbrabec@suse.cz
- Fixed devel requirements.
-------------------------------------------------------------------
Wed May 4 16:10:59 CEST 2005 - sbrabec@suse.cz
- Fixed some GCC 4 warnings.
-------------------------------------------------------------------
Wed Apr 27 13:39:05 CEST 2005 - sbrabec@suse.cz
- Added gnome hbox patch from Harald Hoyer <harald@redhat.com>
(#72172).
- Added patch for crash on file send.
http://bugzilla.gnome.org/show_bug.cgi?id=150388
-------------------------------------------------------------------
Thu Nov 25 00:02:19 CET 2004 - ro@suse.de
- fix build with new python2.4
-------------------------------------------------------------------
Tue Nov 23 17:30:05 CET 2004 - hvogel@suse.de
- correct desktop files
- include icon
- fix ac-quotation
-------------------------------------------------------------------
Wed Sep 8 02:01:20 CEST 2004 - ro@suse.de
- require python-gnome instead of gnome-python
-------------------------------------------------------------------
Fri Sep 3 11:48:24 CEST 2004 - hhetter@suse.de
- use lib64 on 64bit systems in PYTHONPATH
-------------------------------------------------------------------
Thu Sep 2 16:23:32 CEST 2004 - hhetter@suse.de
- part of Bug #44638, require gnome-python, fix PYTHONPATH
in gnome-bluetooth-manager
-------------------------------------------------------------------
Mon Aug 2 16:16:03 CEST 2004 - ro@suse.de
- update to 0.5.1 to make it build again with current environment
-------------------------------------------------------------------
Thu Jan 29 10:25:10 CET 2004 - hhetter@suse.de
- initial SUSE package

216
gnome-bluetooth.spec Normal file
View File

@ -0,0 +1,216 @@
#
# spec file for package gnome-bluetooth (Version 0.8.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnome-bluetooth
BuildRequires: gnutls-devel gob2 intltool libbtctl-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel librsvg-devel libwnck-devel mDNSResponder-devel perl-XML-Parser python-devel python-gtk-devel update-desktop-files
License: GNU General Public License (GPL)
Group: System/GUI/GNOME
Requires: gnome-vfs2 python-gnome
Version: 0.8.0
Release: 37
Summary: GNOME Bluetooth Support
URL: http://usefulinc.com/software/gnome-bluetooth/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.8/%{name}-%{version}.tar.bz2
Patch: %name-desktop.diff
Patch1: gnome-bluetooth-pixmapsdir.patch
Patch2: gnome-bluetooth-transparent-trayicon.patch
Patch3: gnome-bluetooth-fail-cleanly.patch
Autoreqprov: on
%py_requires
%gconf_schemas_prereq
%description
This package contains a controller class, GnomebtController, to control
Bluetooth devices and a simple GUI to explore which devices are
available (gnome-bluetooth-manager). An OBEX server is available,
gnome-obex-server. This receives files sent via Bluetooth to your PC
and saves them in your home directory. The program gnome-obex-send
enables you to send files. It is used by the Nautilus
component--select the files to send and choose "Send via Bluetooth"
from the context menu.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
Bastien Nocera <hadess@hadess.net>
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Jonathan Blandford <jrb@redhat.com>
Kristian Rietveld <kris@gtk.org>
Anders Carlsson <andersca@gnu.org>
James Henstridge <james@daa.com.au>
%package devel
Summary: GNOME Bluetooth Support
Group: System/GUI/GNOME
Requires: %{name} = %{version} glib2-devel libbtctl-devel libglade2-devel libgnomeui-devel libjpeg-devel libbonoboui-devel gnome-keyring-devel libxml2-devel libgnomecanvas-devel libart_lgpl-devel libgnome-devel esound-devel alsa-devel resmgr audiofile-devel popt-devel gtk2-devel atk-devel pango-devel cairo-devel fontconfig-devel glitz-devel libpng-devel freetype2-devel expat libbonobo-devel gnome-vfs2-devel zlib-devel openssl-devel orbit2-devel gconf2-devel
%if %suse_version > 1010
Requires: dbus-1-glib-devel
%else
Requires: dbus-1-devel dbus-1-glib
%endif
%description devel
This package contains a controller class, GnomebtController, to control
Bluetooth devices and a simple GUI to explore which devices are
available (gnome-bluetooth-manager). An OBEX server is available,
gnome-obex-server. This receives files sent via Bluetooth to your PC
and saves them in your home directory. The program gnome-obex-send
enables you to send files. It is used by the Nautilus component --
select the files you want to send and choose "Send via Bluetooth..."
from the context menu.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
Bastien Nocera <hadess@hadess.net>
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Jonathan Blandford <jrb@redhat.com>
Kristian Rietveld <kris@gtk.org>
Anders Carlsson <andersca@gnu.org>
James Henstridge <james@daa.com.au>
%prep
%setup -q
%patch -p1
#%patch1 -p0
%patch2 -p0
#%patch3 -p0
rm -f libegg/aclocal.m4 aclocal.m4
%build
autoreconf -f -i
%configure\
--disable-schemas-install
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
%suse_update_desktop_file -G "" -C "Receive files sent by Bluetooth devices" gnome-obex-server System Applet
%find_lang %{name}
%find_gconf_schemas
cat %{name}.lang %{name}.schemas_list >%{name}.lst
%clean
rm -rf $RPM_BUILD_ROOT
%postun
%run_ldconfig
%pre -f %{name}.schemas_pre
%post
%run_ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_sysconfdir}/gconf/schemas/gnome-obex-server.schemas
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-bluetooth
%{_datadir}/pixmaps/blueradio-48.png
%{py_sitedir}/gnomebt
%files devel
%defattr(-, root, root)
%{_includedir}/gnome-bluetooth
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%changelog -n gnome-bluetooth
* Tue Dec 19 2006 - sbrabec@suse.cz
- Spec file cleanup.
* Mon Dec 18 2006 - maw@suse.de
- Move to /usr.
* Thu Nov 30 2006 - sbrabec@suse.cz
- Fixed devel dependencies.
* Tue Sep 19 2006 - jhargadon@suse.de
- update to version 0.8.0
- Fix icons not showing up properly
- Allow passing URIs as well as local filenames to gnome-obex-send
- Save to ~/Desktop/Downloads by default, then fallback to ~/Desktop and ~/,
as Epiphany does, or to the user specified directory
- Remove direct openobex and bluez-devel dependencies, as well as gnome-vfs
- Remove the useless gnome-bluetooth-manager
- translation updates
* Wed Aug 16 2006 - cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Wed Aug 16 2006 - ro@suse.de
- added python-gobject2-devel to BuildRequires
* Mon Mar 20 2006 - danw@suse.de
- Fail cleanly (with a dialog rather than a message to stderr) if
bluetooth is not configured on the machine. #140780
* Fri Mar 10 2006 - danw@suse.de
- Make the gnome-obex-server trayicon transparent. #155345
* Sat Feb 18 2006 - stbinner@suse.de
- move GenericName entries in .desktop files to Comment
* Mon Feb 06 2006 - hpj@suse.de
- Added Rodney's pixmap path patch.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 29 2005 - sbrabec@suse.cz
- Updated to version 0.7.0.
* Wed Nov 09 2005 - sbrabec@suse.cz
- Fixed more random return values.
- Removed .mo install hack, locales now install properly.
* Thu Nov 03 2005 - sbrabec@suse.cz
- Updated to version 0.6.0.
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Wed Jun 01 2005 - sbrabec@suse.cz
- Fixed devel requirements.
* Wed May 04 2005 - sbrabec@suse.cz
- Fixed some GCC 4 warnings.
* Wed Apr 27 2005 - sbrabec@suse.cz
- Added gnome hbox patch from Harald Hoyer <harald@redhat.com>
(#72172).
- Added patch for crash on file send.
http://bugzilla.gnome.org/show_bug.cgi?id=150388
* Thu Nov 25 2004 - ro@suse.de
- fix build with new python2.4
* Tue Nov 23 2004 - hvogel@suse.de
- correct desktop files
- include icon
- fix ac-quotation
* Wed Sep 08 2004 - ro@suse.de
- require python-gnome instead of gnome-python
* Fri Sep 03 2004 - hhetter@suse.de
- use lib64 on 64bit systems in PYTHONPATH
* Thu Sep 02 2004 - hhetter@suse.de
- part of Bug #44638, require gnome-python, fix PYTHONPATH
in gnome-bluetooth-manager
* Mon Aug 02 2004 - ro@suse.de
- update to 0.5.1 to make it build again with current environment
* Thu Jan 29 2004 - hhetter@suse.de
- initial SUSE package

0
ready Normal file
View File