View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#36
Originally Posted by thp View Post
You should use GtkBuilder instead of Glade. There's an automated utility to do this called "gtk-builder-convert". You can use Hildon widgets with GtkBuilder (i.e. replace GtkButton with HildonButton). Please note that bug 4718 will cause the styling to still be incorrect, so you have to set the name of the widget to "HildonButton-finger" (or "HildonButton-thumb") after loading it from the .ui file, like this:

Code:
yourwidget.set_name('HildonButton-finger')
You should be able to do the same thing for a GtkButton to get the styling, but this is untested, and not really beautiful



A HildonNote is the "big" yellow, modal thing where the message is shown until the note is touched:
Code:
win = ... # your main window
msg = 'some text'
note = hildon.hildon_note_new_information(win, msg)
note.run()
note.destroy()
An alternative would be to use a HildonBanner that has a timeout for non-critical messages: http://maemomm.garage.maemo.org/docs...res/banner.png



In all the built-in applications, context menus pop up under the touch point, so for consistency, it should probably be like that for your application, too. Even on the desktop when right-clicking somewhere, the menu pops up at the cursor position, and not at the top left corner of the screen. Of course, there are issues with this approach on a finger-based UI (because the content that pops up is hidden by the physical finger), but it's how things are done in the Maemo 5 UI today.



If you convert to GtkBuilder, think about using HildonStackableWindow + sub-views. It's nice, easy, and makes the user navigation more friendly. It also restricts the possible actions that the user can do (i.e. because in a search results view you cannot click on "Timeline", you have to go back first), leading to less errors that you have to catch



AFAIK Identi.ca has a Twitter-compatible API, so just having a "API URL" setting should be enough to support Identi.ca as well (with the default being the URL of the Twitter API).
I'm really impressed, not only are you incredibly helpful - i can actually understand what you are saying and what you mean

Going to make an effort to try to learn python soon - (Have done facebook api's before and coded in PHP, ASP and .net) - so how hard can it be! (Crossing fingers after i type that!)

It's also very refreshing on here to not be be-littled! i know not everyone does, but a few spoil it - and its just great to see help like the above
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -