From 5c00da64ec53ec3e29648ec366fab6199c922c82 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Thu, 20 Oct 2011 09:40:36 +1100 Subject: [PATCH] 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 26865574..6c55f095 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 d34e6f5f..998df161 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")); -- 2.39.2