[empathy: 2/7] Fix extra buttons in new-call/message dialogs



commit 5c00da64ec53ec3e29648ec366fab6199c922c82
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Thu Oct 20 09:40:36 2011 +1100

    Fix extra buttons in new-call/message dialogs
    
    This was caused by a missing parameter of gtk_dialog_add_buttons().

 libempathy-gtk/empathy-new-call-dialog.c    |    3 ++-
 libempathy-gtk/empathy-new-message-dialog.c |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-new-call-dialog.c b/libempathy-gtk/empathy-new-call-dialog.c
index 2686557..6c55f09 100644
--- a/libempathy-gtk/empathy-new-call-dialog.c
+++ b/libempathy-gtk/empathy-new-call-dialog.c
@@ -219,7 +219,8 @@ empathy_new_call_dialog_init (EmpathyNewCallDialog *self)
       G_CALLBACK (selection_activate_cb), self);
 
   /* close button */
-  gtk_dialog_add_buttons (GTK_DIALOG (self), GTK_STOCK_CLOSE, NULL);
+  gtk_dialog_add_button (GTK_DIALOG (self),
+      GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
 
   /* add video button */
   self->priv->button_video = gtk_button_new_with_mnemonic (_("_Video Call"));
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c
index d34e6f5..998df16 100644
--- a/libempathy-gtk/empathy-new-message-dialog.c
+++ b/libempathy-gtk/empathy-new-message-dialog.c
@@ -307,7 +307,8 @@ empathy_new_message_dialog_init (EmpathyNewMessageDialog *self)
       G_CALLBACK (selection_activate_cb), self);
 
   /* close button */
-  gtk_dialog_add_buttons (GTK_DIALOG (self), GTK_STOCK_CLOSE, NULL);
+  gtk_dialog_add_button (GTK_DIALOG (self),
+      GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
 
   /* add SMS button */
   self->priv->button_sms = gtk_button_new_with_mnemonic (_("_SMS"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]