Another bluez-gnome patch
Subsystems (2)
Heya,
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is available
- Fix translation of scanning mode changes (modes weren't translated at all, and the string used could only be used in English)
- Don't show the notification bubble when switching the bluetooth device on/off, and we're only showing the icon if a device is present. The icon appearing/disappearing should be enough
- Fix excessive markup in the properties labels
Marcel, could you merge those patches?
Once you've accepted this patch, my next step is to implement the software enable/disable for laptops in the applet (that would use HAL as well).
Cheers
Signature · 1 line
Bastien Nocera <[email protected]>
Index: configure.in
===================================================================
RCS file: /cvsroot/bluez/gnome/configure.in,v
retrieving revision 1.32
configure.in +6 -0
@@ -61,6 +61,12 @@ PKG_CHECK_MODULES(NOTIFY, libnotify >= 0 AC_SUBST(NOTIFY_CFLAGS) AC_SUBST(NOTIFY_LIBS) +PKG_CHECK_MODULES(HAL, hal >= 0.5.8, [ + AC_DEFINE(HAVE_HAL, 1, [Define to 1 if you have HAL support.]) +], AC_MSG_RESULT(no)) +AC_SUBST(HAL_CFLAGS) +AC_SUBST(HAL_LIBS) + PKG_CHECK_MODULES(OPENOBEX, libopenobex-glib >= 1.4, dummy=yes, dummy=no) AC_SUBST(OPENOBEX_CFLAGS) AC_SUBST(OPENOBEX_LIBS)
Index: applet/Makefile.am
===================================================================
RCS file: /cvsroot/bluez/gnome/applet/Makefile.am,v retrieving revision 1.14
Makefile.am +2 -2
@@ -3,9 +3,9 @@ bin_PROGRAMS = bluetooth-applet bluetooth_applet_SOURCES = main.c -bluetooth_applet_LDADD = @NOTIFY_LIBS@ @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ $(top_builddir)/compat/libcompat.a +bluetooth_applet_LDADD = @NOTIFY_LIBS@ @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ @HAL_LIBS@ $(top_builddir)/compat/libcompat.a -AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ @NOTIFY_CFLAGS@ +AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ @NOTIFY_CFLAGS@ @HAL_CFLAGS@ INCLUDES = -I$(top_srcdir)/compat
Index: applet/main.c
===================================================================
RCS file: /cvsroot/bluez/gnome/applet/main.c,v
retrieving revision 1.50
main.c +105 -1
139 lines not on this page · raw message
Index: properties/Makefile.am
===================================================================
RCS file: /cvsroot/bluez/gnome/properties/Makefile.am,v retrieving revision 1.6
Makefile.am +2 -2
@@ -3,10 +3,10 @@ bin_PROGRAMS = bluetooth-properties bluetooth_properties_SOURCES = main.c -bluetooth_properties_LDADD = @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ \ +bluetooth_properties_LDADD = @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ @HAL_LIBS@ \ $(top_builddir)/common/libcommon.a -AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ +AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ @HAL_CFLAGS@ desktopdir = $(datadir)/applications
Index: properties/main.c
===================================================================
RCS file: /cvsroot/bluez/gnome/properties/main.c,v retrieving revision 1.29
main.c +120 -50
280 lines not on this page · raw message
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Bastien,
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is available
I added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
Quoted 2 lines
- Fix translation of scanning mode changes (modes weren't translated at all, and the string used could only be used in English)
Fixed that and did a little rewording.
Quoted 3 lines
- Don't show the notification bubble when switching the bluetooth device on/off, and we're only showing the icon if a device is present. The icon appearing/disappearing should be enough
We need to show when it goes back into connectable mode, because that happens if you use the discoverable timeout.
Quoted 1 line
- Fix excessive markup in the properties labels
Done a little bit different, but with the same result.
Quoted 3 lines
Once you've accepted this patch, my next step is to implement the software enable/disable for laptops in the applet (that would use HAL as well).
I really like to see that. We need that feature.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 10 lines · Marcel Holtmann
Hi Bastien,
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is availableI added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
That sounds like over-engineering to me. What is the use case of the applet? If it's only going to be used on desktops, what's the matter with leaving the HAL support on? If the applet is to be used in embedded systems, surely those systems would make mofidications to the applet to fit their usage, and could turn off HAL support.
Quoted 4 lines
Quoted 2 lines
- Fix translation of scanning mode changes (modes weren't translated at all, and the string used could only be used in English)
Fixed that and did a little rewording.
Cool.
Quoted 6 lines
Quoted 3 lines
- Don't show the notification bubble when switching the bluetooth device on/off, and we're only showing the icon if a device is present. The icon appearing/disappearing should be enough
We need to show when it goes back into connectable mode, because that happens if you use the discoverable timeout.
Then we should save the mode before the change of mode_changed signal, and only popup the notification if the previous mode was discoverable.
Quoted 3 lines
Quoted 1 line
- Fix excessive markup in the properties labels
Done a little bit different, but with the same result.
OK.
Quoted 5 lines
Quoted 3 lines
Once you've accepted this patch, my next step is to implement the software enable/disable for laptops in the applet (that would use HAL as well).
I really like to see that. We need that feature.
Cool, I'll get onto that in the near future, hopefully.
Signature · 12 lines
Bastien Nocera <[email protected]> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Bastien,
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is availableI added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
Quoted 8 lines
Quoted 2 lines
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
That sounds like over-engineering to me. What is the use case of the applet? If it's only going to be used on desktops, what's the matter with leaving the HAL support on? If the applet is to be used in embedded systems, surely those systems would make mofidications to the applet to fit their usage, and could turn off HAL support.
it is not over-engineered for people that don't have the HAL formfactor setting to be used as base for the Bluetooth class of device. It also makes the properties application simpler since it doesn't have to check for HAL at all. It simply only sets a GConf value and applet acts depending on this value.
Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
- Don't show the notification bubble when switching the bluetooth device on/off, and we're only showing the icon if a device is present. The icon appearing/disappearing should be enough
We need to show when it goes back into connectable mode, because that happens if you use the discoverable timeout.
Then we should save the mode before the change of
mode_changedsignal, and only popup the notification if the previous mode was discoverable.
Good idea. Was actually to lazy to do it by myself. Then we can also change the wording to discoverable/non-discoverable.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hey Marcel,
Quoted 17 lines · Marcel Holtmann
Hi Bastien,
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is availableI added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
Quoted 8 lines
Quoted 2 lines
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
That sounds like over-engineering to me. What is the use case of the applet? If it's only going to be used on desktops, what's the matter with leaving the HAL support on? If the applet is to be used in embedded systems, surely those systems would make mofidications to the applet to fit their usage, and could turn off HAL support.
Quoted 5 lines
it is not over-engineered for people that don't have the HAL formfactor setting to be used as base for the Bluetooth class of device. It also makes the properties application simpler since it doesn't have to check for HAL at all. It simply only sets a GConf value and applet acts depending on this value.
I still don't understand why you would want to give the user the choice of using HAL or not. If it's there, use it! The information is always available (it's given out by the BIOS/firmware), and if it's not accurate, it can be overridden using an .fdi file.
What does the user gain from being able to enable/disable HAL support themselves?
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
- Don't show the notification bubble when switching the bluetooth device on/off, and we're only showing the icon if a device is present. The icon appearing/disappearing should be enough
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
We need to show when it goes back into connectable mode, because that happens if you use the discoverable timeout.
Then we should save the mode before the change of
mode_changedsignal, and only popup the notification if the previous mode was discoverable.Good idea. Was actually to lazy to do it by myself. Then we can also change the wording to discoverable/non-discoverable.
I'll try and fix that then.
Cheers
Signature · 12 lines
Bastien Nocera <[email protected]> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Bastien,
Quoted 21 lines
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is availableI added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
Quoted 8 lines
Quoted 2 lines
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
That sounds like over-engineering to me. What is the use case of the applet? If it's only going to be used on desktops, what's the matter with leaving the HAL support on? If the applet is to be used in embedded systems, surely those systems would make mofidications to the applet to fit their usage, and could turn off HAL support.
Quoted 5 lines
it is not over-engineered for people that don't have the HAL formfactor setting to be used as base for the Bluetooth class of device. It also makes the properties application simpler since it doesn't have to check for HAL at all. It simply only sets a GConf value and applet acts depending on this value.
Quoted 7 lines
I still don't understand why you would want to give the user the choice of using HAL or not. If it's there, use it! The information is always available (it's given out by the BIOS/firmware), and if it's not accurate, it can be overridden using an .fdi file.
What does the user gain from being able to enable/disable HAL support themselves?
for example if they wanna modify the class of device with a specific value (as access point or something else) and still log into the system. It is a special case, but there are still some systems that use the class of device value for filtering the inquiry list. In general this value is only good for choosing the correct icon in the UI. By default however HAL will be used.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 31 lines · Marcel Holtmann
Hi Bastien,
Quoted 21 lines
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is availableI added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
Quoted 8 lines
Quoted 2 lines
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
That sounds like over-engineering to me. What is the use case of the applet? If it's only going to be used on desktops, what's the matter with leaving the HAL support on? If the applet is to be used in embedded systems, surely those systems would make mofidications to the applet to fit their usage, and could turn off HAL support.
Quoted 5 lines
it is not over-engineered for people that don't have the HAL formfactor setting to be used as base for the Bluetooth class of device. It also makes the properties application simpler since it doesn't have to check for HAL at all. It simply only sets a GConf value and applet acts depending on this value.
Quoted 7 lines
I still don't understand why you would want to give the user the choice of using HAL or not. If it's there, use it! The information is always available (it's given out by the BIOS/firmware), and if it's not accurate, it can be overridden using an .fdi file.
What does the user gain from being able to enable/disable HAL support themselves?
Quoted 6 lines
for example if they wanna modify the class of device with a specific value (as access point or something else) and still log into the system. It is a special case, but there are still some systems that use the class of device value for filtering the inquiry list. In general this value is only good for choosing the correct icon in the UI. By default however HAL will be used.
OK. Do you mind me changing the "use HAL" checkbox with something like:
Class of device
[ ] automatic
[X] [drop-down menu]
Then?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Bastien,
Quoted 36 lines
Quoted 29 lines
Quoted 21 lines
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Here's an updated patch for the bluez-gnome applet and properties:
- Use HAL to determine the device class, if HAL is availableI added this part to the CVS now. However we need another GConf setting that allows the user to control if HAL should be used or not.
Quoted 8 lines
Quoted 2 lines
The properties dialog needs a setting to control the HAL usage and show or hide the class of device box according to it.
That sounds like over-engineering to me. What is the use case of the applet? If it's only going to be used on desktops, what's the matter with leaving the HAL support on? If the applet is to be used in embedded systems, surely those systems would make mofidications to the applet to fit their usage, and could turn off HAL support.
Quoted 5 lines
it is not over-engineered for people that don't have the HAL formfactor setting to be used as base for the Bluetooth class of device. It also makes the properties application simpler since it doesn't have to check for HAL at all. It simply only sets a GConf value and applet acts depending on this value.
Quoted 7 lines
I still don't understand why you would want to give the user the choice of using HAL or not. If it's there, use it! The information is always available (it's given out by the BIOS/firmware), and if it's not accurate, it can be overridden using an .fdi file.
What does the user gain from being able to enable/disable HAL support themselves?
Quoted 6 lines
for example if they wanna modify the class of device with a specific value (as access point or something else) and still log into the system. It is a special case, but there are still some systems that use the class of device value for filtering the inquiry list. In general this value is only good for choosing the correct icon in the UI. By default however HAL will be used.
Quoted 6 lines
OK. Do you mind me changing the "use HAL" checkbox with something like:
Class of device
[ ] automatic
[X] [drop-down menu]Then?
actually use, because the HAL usage is a user wide setting while the class of device is per adapter. Remember that Linux supports for than one adapter. When HAL usage is on, I need to make the class of device setting disappear, but I haven't had time for that so far.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel