2009-01-14 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Wed, 14 Jan 2009 15:29:28 +0000 (15:29 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 14 Jan 2009 15:29:28 +0000 (15:29 +0000)
* src/hildon-picker-dialog.c (hildon_picker_dialog_show): Decide
whether to show or not the 'Done' button each time the dialog is
shown, as it depends on the HildonTouchSelector selection mode.

Fixes: NB#96226 (In multiple selection mode Done button is shown
sometimes in listpicker)

ChangeLog
src/hildon-picker-dialog.c

index f49ed96..360857b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-01-14  Alberto Garcia  <agarcia@igalia.com>
+
+       * src/hildon-picker-dialog.c (hildon_picker_dialog_show): Decide
+       whether to show or not the 'Done' button each time the dialog is
+       shown, as it depends on the HildonTouchSelector selection mode.
+
+       Fixes: NB#96226 (In multiple selection mode Done button is shown
+       sometimes in listpicker)
+
 2009-01-14  Claudio Saavedra  <csaavedra@igalia.com>
 
        * src/hildon-picker-dialog.c: (_save_current_selection): Do not query
index e803593..c22183e 100644 (file)
@@ -243,7 +243,11 @@ hildon_picker_dialog_finalize (GObject *object)
 static void
 hildon_picker_dialog_show                       (GtkWidget *widget)
 {
-  _save_current_selection (HILDON_PICKER_DIALOG (widget));
+  HildonPickerDialog *dialog = HILDON_PICKER_DIALOG (widget);
+
+  _save_current_selection (dialog);
+
+  setup_interaction_mode (dialog);
 
   GTK_WIDGET_CLASS (hildon_picker_dialog_parent_class)->show (widget);
 }