Reply
Thread Tools
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#1
Hi,

is it possible to add an item in the status-bar-menu area ?
I mean in the 'dialog' that appear onclick, not on the statusbar itself.

Thanks.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#3
 

The Following 2 Users Say Thank You to b666m For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#4
I love the way it's just in the development area with no mention of the N900 or Maemo - but the assumption is there hehe
__________________
----------- 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? -
 
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#5
Yeah! Thanks you all for your great help, it works fine
 

The Following User Says Thank You to b0unc3 For This Useful Post:
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#6
Hi guys,

I'm here again because I get other two strange issues... the first thing is that I cannot align the button's icon correctly (as the others); the second is that at the click event I need to start a wizard and I have implemented the hildon-wizard and the wizard come up but the main panel of the status area doesn't disappear.
Here is a screenshot of what happens.

 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
Originally Posted by b0unc3 View Post
Hi guys,

I'm here again because I get other two strange issues... the first thing is that I cannot align the button's icon correctly (as the others); the second is that at the click event I need to start a wizard and I have implemented the hildon-wizard and the wizard come up but the main panel of the status area doesn't disappear.
Here is a screenshot of what happens.

The alignment usually works fine for me but you can force it with hildon_button_set_alignment ().

As for the panel hiding, it only hides automatically if a GtkButton (or one of its deriatives) is the direct child of the HDStatusMenuItem, as explained in the link above.

Anyway, for some of my applets, I had to add a GtkHBox as the direct child because I wanted more than one widget there. I also packed a button into that HBox and needed the panel to close automatically when pressing said button so I did this in my signal handler that was handling the button's clicked event:
PHP Code:
static void on_button_clicked (GtkWidget *buttongconstpointer user_data G_GNUC_UNUSED)
{
   
GtkWidget *toplevel gtk_widget_get_toplevel(button);
   
gtk_widget_hide (toplevel);

 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#8
Ok, with the hildon_button_set_alignment () I can get the correct alignment ;I was using hildon_button_image_set_alignment() because I was thinking that only the icon was not in the right place, not the whole contents.
The trick for the hiding the panel is really nice, work as expected.
So, again, thank you
 

The Following User Says Thank You to b0unc3 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:43.