View Single Post
Posts: 654 | Thanked: 664 times | Joined on Feb 2009 @ Germany
#106
Originally Posted by kanishou View Post
Right, those should be disabled in the SDK. I will have a look at this.
That's nice! Thanks

Originally Posted by kanishou View Post
But there is another problem with using a stock button, in that it doesn't adopt the right themeing by default. I would suggest to use hildon_button_new (HILDON_SIZE_FINGER_HEIGHT, ..) (or hildon_gtk_button_new), but if you want to keep using the stock ID, then you should manually call hildon_gtk_widget_set_theme_size() after creating the button.
I just tested that and in my case calling hildon_gtk_widget_set_theme_size(button, HILDON_SIZE_AUTO) or not doesn't make a difference. The result is both times like on the screenshots earlier. I guess it's because the button is scaling itself to the surrounding hbox container.

Still I think it's important to know. I use almost not stock elements anymore, but I'm sure there are many apps out there which do.
Maybe you'd like to add this information here:
http://wiki.maemo.org/Using_Fremantle_Widgets

And maybe we should continue this discussion some where else as it has not much to do with the topic anymore How about here:
http://talk.maemo.org/showthread.php?t=29500
 

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