From: Danielle Madeley Date: Wed, 19 Oct 2011 22:40:36 +0000 (+1100) Subject: Fix extra buttons in new-call/message dialogs X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=5c00da64ec53ec3e29648ec366fab6199c922c82 Fix extra buttons in new-call/message dialogs This was caused by a missing parameter of gtk_dialog_add_buttons(). --- 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"));