2008-10-20 Claudio Saavedra <csaavedra@igalia.com>
authorClaudio Saavedra <csaavedra@igalia.com>
Mon, 20 Oct 2008 08:43:42 +0000 (08:43 +0000)
committerClaudio Saavedra <csaavedra@igalia.com>
Mon, 20 Oct 2008 08:43:42 +0000 (08:43 +0000)
* src/hildon-picker-button.c:
(hildon_picker_button_set_done_button_text): Set the dialog's
done button text here as well.

Fixes NB#90232 (Picker button does not set the label on done button
for the second time)

ChangeLog
src/hildon-picker-button.c

index 5049aa7..efdafa9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2008-10-20  Claudio Saavedra  <csaavedra@igalia.com>
 
+       * src/hildon-picker-button.c:
+       (hildon_picker_button_set_done_button_text): Set the dialog's
+       done button text here as well.
+
+       Fixes NB#90232 (Picker button does not set the label on done button
+       for the second time)
+
+2008-10-20  Claudio Saavedra  <csaavedra@igalia.com>
+
        * src/hildon-picker-button.c: (hildon_picker_button_clicked): Update
        warning message.
 
index 1fe08cb..f13700e 100644 (file)
@@ -461,4 +461,9 @@ hildon_picker_button_set_done_button_text (HildonPickerButton *button,
 
   g_free (priv->done_button_text);
   priv->done_button_text = g_strdup (done_button_text);
+
+  if (priv->dialog) {
+    hildon_picker_dialog_set_done_label (HILDON_PICKER_DIALOG (priv->dialog),
+                                         priv->done_button_text);
+  }
 }