2008-10-09 Alejandro Pinheiro <apinheiro@igalia.com>
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 9 Oct 2008 14:36:43 +0000 (14:36 +0000)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 9 Oct 2008 14:36:43 +0000 (14:36 +0000)
commitb0bb04a0b8e433915287e25420f34e4c53ab5374
tree0ef70de438d742d2e3bd1a87344ef50e59943092
parent5f390880b2de1cfa5e260e858c943439fd38a780
2008-10-09 Alejandro Pinheiro <apinheiro@igalia.com>

* src/hildon-picker-dialog.c
(hildon_picker_dialog_realize): Removed as not required
(hildon_picker_dialog_class_init): Avoid to redefine widget->realize
* src/hildon-picker-button.c
(_current_selector_empty): New function, checks if the selector is empty
(hildon_picker_button_clicked): Now it checks (using _current_selector_empty)
if the current selector is empty, in order to avoid to show the dialog
close the dialog in this case (and shows a g_warning).

Fixes: NB#88946 (Hildon Picker button should disable itself if there are no values)
ChangeLog
src/hildon-picker-button.c
src/hildon-picker-dialog.c