How to access detailed info of user-saved connections in maemo
Hi, everyone. I've got problem on accessing detailed info of user-saved connections in maemo. In my maemo environment, a WLAN conection with specified SSID has been created. In my program, an adhoc network with that SSID should be established first. So my idea is to find such a connection and connect it using libconic API. However, libconic APIs don't seem to provide the detailed info of a connection, e.g. the SSID name of a connection(Though it does tell me the ID of IAP, the ID is just like a serial number which makes no sense to me). And I don't know how to get it now. Anyone could help me out? Thanks in advance:) ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
Hi, I am sorry for not replying the letter soon. Thanks for all the advice and suggestions you have given me. They are very helpful. Eventually I have learned how to changed the appearance of a widget in an application using gtkrc file and some nice pictures. In my code, I just called gtk_rc_add_default_file() the parse the rc file. I usually call the function before any widget should be created or shown, say the very beginning of my code. But sometimes the rc file would not be loaded without any exception feedback to console. I have no idea on how to handle the situation. Does any one have the same problem? I think the following links are useful for a GTK+ newbiee if you mean to change the appearance of the widget. some basic concept goes here: http://live.gnome.org/GnomeArt/Tutorials/GtkThemes http://orford.org/gtk/ a piece of README on sapwood, a theme engine that maemo uses: https://stage.maemo.org/svn/maemo/projects/haf/trunk/sapwood/README detailed in theme engine: http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html API related to GTK+ theme and resources http://library.gnome.org/devel/gtk/unstable/gtk-Resource-Files.html http://library.gnome.org/devel/gtk/unstable/GtkStyle.html On 2/22/08, Tapani Pälli [EMAIL PROTECTED] wrote: Hello; ext 陈凯 wrote: Thanks for your advice. Though maemo is based on GTK+, I think it is a little bit different. I wrote a simple app and used gtkrc to change the color of a button when being active. In ubuntu it works fine while it has no effect when ported to maemo( a default style button is shown instead ). I wish I didn't miss something important in gtkrc. Or is there some other alternative way to achieve widget style customizatino? Wish to hear your reply, thanks in advance. You might want to file a bug about this. I've noticed also that using gtk_rc_parse_string() does not seem to work for some reason, on desktop it can be used to change colors. On 2/18/08, *Bin Chen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, folks! I am a newbiee on Maemo and have some experience in app dev. Though maemo platform provides a great amount of amazing UI looking, I would like my app looks somewhat different from ordinary maemo app. A cool example is Skype for maemo platform. I wonder how to make that effect or something like that. Could you please give me some hint, or where to start ? Thanks in advance~ Just a hint, you may use gtkrc to customize it.(maemo is gtk+ based so I think this method works) ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers // Tapani Pälli -- Software Engineer Open Source Software Operations ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
[Maemo App Dev] gtk.ToolItem not shown unless hildon.window.show_all() called
Hi, folks I found a problem in using hildon.window.add_toolbar(). I am not sure whether it is a bug or my misunderstanding in GTK+ concept. I've learnt GTK+ for only several couple of weeks, so your advice or opinion is welcomed. In my python script code, I created a gtk.Toolbar widget and some gtk.ToolButton widgets in it. I showed the toolbar and every widget the toolbar contains, and finally add it into hildon.window using hildon.window.add_toolbar(). When run my script, the button disappear from the toolbar. On contrast, when I add hildon.window.show_all() in my code, every button showed in the right place. So MUST I call hildon.Window.show_all() instead of call every widget's show() if I want to use toolbar in my app? Thanks in advance~ Chenkai ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
Thanks for your advice. Though maemo is based on GTK+, I think it is a little bit different. I wrote a simple app and used gtkrc to change the color of a button when being active. In ubuntu it works fine while it has no effect when ported to maemo( a default style button is shown instead ). I wish I didn't miss something important in gtkrc. Or is there some other alternative way to achieve widget style customizatino? Wish to hear your reply, thanks in advance. On 2/18/08, Bin Chen [EMAIL PROTECTED] wrote: On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] wrote: Hi, folks! I am a newbiee on Maemo and have some experience in app dev. Though maemo platform provides a great amount of amazing UI looking, I would like my app looks somewhat different from ordinary maemo app. A cool example is Skype for maemo platform. I wonder how to make that effect or something like that. Could you please give me some hint, or where to start ? Thanks in advance~ Just a hint, you may use gtkrc to customize it.(maemo is gtk+ based so I think this method works) ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
[Maemo App Integration]Fail to launch app from TaskNavigator(TN)
Hi everyone, I've got some trouble in app integration after i finished my simple python script on maemo 3.2. As the tutorial says, I wrote a .desktop file and a .service file for integration with Maemo AF. Unfortunately it didn't seem to work. My app doesn't start after a long time 'loading'. I referred to some materials on libosso reference for python and tried to modify these files a little bit, but the consequence remained the same. When I transfer all the files to scratchbox and run it, sbox tells an information: 'we could not read lowmem page stats'. What is it supposed to mean?? Here is the script code and integration file I've written. Is there any place wrong?? #Here is the Python script name: pymaemo # nothing but a hildon.Window #!/usr/bin/env python2.5 import gtk import hildon import osso class TestWindow( hildon.Program ) : def __init__( self ) : hildon.Program.__init__( self ) self.window = hildon.Window() self.window.set_title( 'pymaemo demo' ) self.window.connect( 'delete_event', lambda *w: gtk.main_quit() ) self.window.show() if __name__ == __main__ : osso_c = osso.Context( 'python_for_maemo', '1.0', False ) window = TestWindow() gtk.main() # Here is the desktop file name: python_for_maemo.desktop [Desktop Entry] Version='1.0' Encoding=UTF-8 Name=Python for Maemo Demo! Exec=/usr/bin/pymaemo Type=Application X-Osso-Service=python_for_maemo X-Osso-Type=application/x-executable # Here is the service file name : python_for_maemo.service [D-BUS Service] Name=com.nokia.python_for_maemo Exec=/usr/bin/pymaemo Finally, I copied the python script to /usr/bin/, desktop file to /usr/share/application/hildon/ and service file to /usr/share/dbus-1/services. That's all what I did in desktop integration. Did I miss something or do something wrong here? Thanks for your advice in advance ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
[Maemo App Dev]How to make my app UI different
Hi, folks! I am a newbiee on Maemo and have some experience in app dev. Though maemo platform provides a great amount of amazing UI looking, I would like my app looks somewhat different from ordinary maemo app. A cool example is Skype for maemo platform. I wonder how to make that effect or something like that. Could you please give me some hint, or where to start ? Thanks in advance~ Chenkai ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [fixed][Maemo App Dev] how to create multi-window app with only one trayicon in Task Navigator
Thanks all. I tried to add a .desktop file and it worked well~ Now I create a new window, no other trayicon will pop up again. Instead a number appeared in the icon in TN, showing how many window I have created. On 1/31/08, Mingxi Wu [EMAIL PROTECTED] wrote: Try to write a .desktop file including icon hint for your application and throw it into /usr/share/applications. 2008/1/30, 陈凯 [EMAIL PROTECTED]: Hi, everyone I am about to write an app containing multi-window and user can switch from one and another at any time. While I show a second hildon.Window , another icon pops up in the TaskNavigator. It looks ugly and confuses the user as if the two window are irrelevant. I found Pidgin and Opera which can have multi-window but only one trayicon in TN. I dived into Pidgin source code but in vain. I don't know how they achieve that effect. Could anyone give me some hint or suggestion? Thanks a lot - Chenkai ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
[Maemo App Dev] how to create multi-window app with only one trayicon in Task Navigator
Hi, everyone I am about to write an app containing multi-window and user can switch from one and another at any time. While I show a second hildon.Window , another icon pops up in the TaskNavigator. It looks ugly and confuses the user as if the two window are irrelevant. I found Pidgin and Opera which can have multi-window but only one trayicon in TN. I dived into Pidgin source code but in vain. I don't know how they achieve that effect. Could anyone give me some hint or suggestion? Thanks a lot - Chenkai ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers