The Following 2 Users Say Thank You to dwould For This Useful Post: | ||
|
2009-12-07
, 15:11
|
Posts: 472 |
Thanked: 107 times |
Joined on Apr 2007
@ Texas
|
#32
|
|
2009-12-07
, 16:15
|
|
Posts: 529 |
Thanked: 262 times |
Joined on Dec 2008
@ Eastleigh, Hampshire, UK
|
#33
|
|
2009-12-07
, 16:47
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#34
|
Hmm, I switched to using glade to define the user interface in the mistaken idea that this would make my life easier. If there are hildon specific versions of everything, does that mean i should just give up with glade? or is there some glade ui design software that will let me use hildon objects?
yourwidget.set_name('HildonButton-finger')
I could switch to hildon notes, what is the specific advantage over a dialog?,
I guess I could catch all non-auth responses and drive the login dialog. that said it should go straight to the login dialog on first use now anyway.
win = ... # your main window msg = 'some text' note = hildon.hildon_note_new_information(win, msg) note.run() note.destroy()
good tip on the styling. That said i like the pop-up in the top right, maybe I'll try setting it to pointer location and see how I get on with it.
I'll look at changing the window title, because I specifically didn't want to open new windows for the different views.
The Following 3 Users Say Thank You to thp For This Useful Post: | ||
|
2009-12-07
, 16:58
|
Posts: 472 |
Thanked: 107 times |
Joined on Apr 2007
@ Texas
|
#35
|
it's entirely possible. the question is really around quite how that is best implemented.
would you want to be able to switch between them, doing distinctly one at a time
would you want any refresh to simultaneously get from all accounts? or just currently selected one?
if you intermixed views, would you need to see which account a tweet related to?
I've never used multiple accounts so I'm not sure what would make the most sense.
|
2009-12-07
, 17:00
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#36
|
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:
You should be able to do the same thing for a GtkButton to get the styling, but this is untested, and not really beautifulCode:yourwidget.set_name('HildonButton-finger')
A HildonNote is the "big" yellow, modal thing where the message is shown until the note is touched:
An alternative would be to use a HildonBanner that has a timeout for non-critical messages: http://maemomm.garage.maemo.org/docs...res/banner.pngCode:win = ... # your main window msg = 'some text' note = hildon.hildon_note_new_information(win, msg) note.run() note.destroy()
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).
|
2009-12-07
, 18:00
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#37
|
|
2009-12-07
, 19:37
|
Posts: 418 |
Thanked: 174 times |
Joined on Oct 2009
|
#38
|
|
2009-12-07
, 20:26
|
|
Posts: 805 |
Thanked: 440 times |
Joined on Aug 2009
@ Mississauga, On
|
#39
|
The Following 4 Users Say Thank You to joshua.maverick For This Useful Post: | ||
|
2009-12-07
, 20:57
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#40
|
The Following User Says Thank You to tso For This Useful Post: | ||
I guess I could catch all non-auth responses and drive the login dialog. that said it should go straight to the login dialog on first use now anyway.
I stlil have no idea if the text will obey any theme rules.
----------
N900
http://danielwould.wordpress.com
Check out Witter, a twitter client for N900
http://danielwould.wordpress.com/witter
If Witter isn't working for you, eg crashes/doesn't start, gives errors etc etc. Please run it from x-term using:
run-standalone.sh python2.5 /opt/witter/witter.py
This will generate diagnostic output. Without this I cannot help you.