Fixed the hard-coded height in HildonPickerDialog
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 6 May 2009 16:20:11 +0000 (18:20 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 6 May 2009 16:34:29 +0000 (18:34 +0200)
commit97ec1b987c93aa2dc199318f6ca7765c33776ef3
tree58f14a816ae83f7272662cac1ea84f9026e60174
parent5a8feca278d36c838c3d2a887a68797883336235
Fixed the hard-coded height in HildonPickerDialog

* hildon/hildon-touch-selector.[ch]
(hildon_touch_selector_optimal_size_request): function added to get a
optimal size request from the touch selector, when you want a dialog to
show as much of the selector
* hildon/hildon-picker-dialog.c:
Removed HILDON_TOUCH_SELECTOR_HEIGHT macro
(hildon_app_menu_class_init):
New "max-height-landscape" and "max-height-portrait" style properties
(hildon_picker_dialog_size_request): redefined GtkWidget::size_request
(hildon_picker_dialog_get_max_height): returns the maximum height using
the style properties defined and checking the current portrait/landscape
status
(_hildon_picker_dialog_set_selector): removed the set_size_request

Fixes: NB#109369 (Hard-coded height in HildonPickerDialog)
ChangeLog
hildon/hildon-picker-dialog.c
hildon/hildon-touch-selector.c
hildon/hildon-touch-selector.h