aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-touch-selector.h
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2009-05-06 18:20:11 +0200
committerAlejandro Piñeiro <apinheiro@igalia.com>2009-05-06 18:34:29 +0200
commit97ec1b987c93aa2dc199318f6ca7765c33776ef3 (patch)
tree58f14a816ae83f7272662cac1ea84f9026e60174 /hildon/hildon-touch-selector.h
parent5a8feca278d36c838c3d2a887a68797883336235 (diff)
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)
Diffstat (limited to 'hildon/hildon-touch-selector.h')
-rw-r--r--hildon/hildon-touch-selector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hildon/hildon-touch-selector.h b/hildon/hildon-touch-selector.h
index 14b4d9f..6f3022c 100644
--- a/hildon/hildon-touch-selector.h
+++ b/hildon/hildon-touch-selector.h
@@ -215,6 +215,10 @@ hildon_touch_selector_has_multiple_selection (HildonTouchSelector *selector);
void
hildon_touch_selector_center_on_selected (HildonTouchSelector *selector);
+void
+hildon_touch_selector_optimal_size_request (HildonTouchSelector *selector,
+ GtkRequisition *requisition);
+
G_END_DECLS
#endif /* __HILDON_TOUCH_SELECTOR_H__ */