2008-10-27 Claudio Saavedra <csaavedra@igalia.com>
authorClaudio Saavedra <csaavedra@igalia.com>
Mon, 27 Oct 2008 11:28:29 +0000 (11:28 +0000)
committerClaudio Saavedra <csaavedra@igalia.com>
Mon, 27 Oct 2008 11:28:29 +0000 (11:28 +0000)
* src/hildon-note.c: (hildon_note_rebuild),
(hildon_note_new_confirmation_add_buttons): Explicitely show the buttons
when needed.

Fixes NB#90661 (Delete dialog is displayed without NO button)

ChangeLog
src/hildon-note.c

index 6572d47..5566e6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2008-10-27  Claudio Saavedra  <csaavedra@igalia.com>
 
+       * src/hildon-note.c: (hildon_note_rebuild),
+       (hildon_note_new_confirmation_add_buttons): Explicitely show the buttons
+       when needed.
+
+       Fixes NB#90661 (Delete dialog is displayed without NO button)
+
+2008-10-27  Claudio Saavedra  <csaavedra@igalia.com>
+
        * src/hildon-note.c: (hildon_note_new_confirmation_add_buttons): Make
        sure all buttons are shown, even the Cancel/Close-like ones.
 
index b8264db..427f1d8 100644 (file)
@@ -487,6 +487,7 @@ hildon_note_rebuild                             (HildonNote *note)
                     _("wdgt_bd_yes"), GTK_RESPONSE_OK);
             priv->cancelButton = gtk_dialog_add_button (dialog,
                     _("wdgt_bd_no"), GTK_RESPONSE_CANCEL);
+            gtk_widget_show (priv->cancelButton);
             gtk_widget_set_no_show_all (priv->cancelButton, FALSE);
             break;
 
@@ -603,6 +604,7 @@ hildon_note_new_confirmation_add_buttons        (GtkWindow *parent,
            cancel/close-like buttons to TRUE, so that they are not shown. On
            the other hand, this confirmation note with custom buttons should
            not obey this rule, so we need to make sure they are shown. */
+        gtk_widget_show (button);
         gtk_widget_set_no_show_all (button, FALSE);
     }