status report wk26
I implemented the USB and Bluetooth pages. There’s some nice screenshots at the end of this post.
I also went off irritating people at BlueZ development mailing list:
Hello list!
I’m developing a project[1] that needs to provide the user a way to
select[2] a Bluetooth device from a list of discovered devices.I noticed that gnome-bluez applet has a very nice device selector and
that got me browsing though the code. Unfortunately I discovered that
bluez-gnome creates only a static library libcommon.a that contains the
device selector (common/bluetooth-device-selection.c) for private use.Now there is two options the way I see it. Either I have a private copy
of bluez-gnome package or bluez-gnome is made to be a shared library.The first solution would be easiest for everyone because no extra work
would be required. But it’s just generally A Bad Idea to have multiple
programs using same code privately and so on..The second solutions would be optimal. If bluez-gnome provides a shared
library 3rd party software could utilize it in sane way. I’m quite sure
there are many applications that would benefit from common bluetooth
widgets; like CUPS for bluetooth printer setup, Evolution for vCard
sending, <your favorite application that communicates with BT devices>..
Here is the lame part: I’m busy with my project, so someone else should
do all the work
OK, maybe not all the work, but I can not promise anything.What do you think about the idea? Is this something not worth the
trouble and I should just STFU or is this viable?best regards,
Antti Kaijanmäki[1] http://live.gnome.org/NetworkManager/MobileBroadband
[2] http://www.kaijanmaki.net/kesakoodi/bt_draft.pngP.S.
Here are some wishes from top of my head regarding the device selector:
1. remove the caption of the list
- let the developer provide a caption best suited for
his application
2. put the filter in GtkExpander
- Filters are not used for by the most of the users, thus it’s
convenient to have them hidden by default.
3. make the filter completely hidden
- this combined with the 1. would make the widget appear just
like GtkTreeView
- this is already achievable, but there seems to be a bug. If both of
the filter fields are hidden the caption is still shown.
See an attached patch.
4. have alternative filters in right-click pop-up menu
- very handy for tight places
5. add property for selected device name. It’s always nice to be able
to show the user a nice name instead of bluetooth address.
- see an attached patch.
bluez-devel email archive at SourceForge.net has had its last update on June 18th so no bonus for you. Here are the patches (there is a memory leak though..):
Bastien Nocera replied that the API would need a lot of work before it’s in the shape for being made public. I decided to include a private copy of the widget for now and switch to public library when it becomes available. I also made the modifications I needed as you can see in the screenshot below.
Next week
Work for first translations should begin. And guess what. We will be using Betawiki as it is part of this years Kesäkoodi and Niklas Laxström is a close friend of mine.
I am hoping that someone who speaks native English would step up and review the UI strings before I create the translation template. Any volunteers? Send me an email.
I’m on schedule, but I’m a little bit concerned about the quality of my current code base. Fortunately there is time for testing and polishing. Hopefully I finally get my svn.gnome.org account so that I can start pushing my code to public repository.
USB modems!
I got couple of USB modems one day to play with. They were Huawei E220 and Option iCON 225. They didn’t work out of the box with my ubuntu 8.04. Huawei has working driver shipped with 8.04 (option), but there is also an another (airprime) that sometimes steals the device. After blacklisting the airprime module Huawei worked nicely except that /dev permissions were wrong.
iCON 255 didn’t work with the stock option driver, but I stumbled upon a new driver hso which is developed by Option International. Unfortunately the dongle I had didn’t work with the driver. The driver didn’t recognize the dongle even though the usb-id was set (I checked the source). Hopefully and most probably that gets fixed for Intrepid Ibex (Ubuntu 8.10).
Screenshots



June 30th, 2008 at 13:49
Hi,
Are you familiar with http://www.pharscape.org/? Quite some information about how to make work the Option products with Linux. If that doesn’t help you, just let me know. I do work at Option, and I can provide you some help.
BR,
Juanma
June 30th, 2008 at 13:52
Great, thanks! I just received my Option so I’m sure the site will help me alot.