]> git.0d.be Git - empathy.git/commitdiff
Fix extra buttons in new-call/message dialogs
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 19 Oct 2011 22:40:36 +0000 (09:40 +1100)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 19 Oct 2011 22:40:36 +0000 (09:40 +1100)
This was caused by a missing parameter of gtk_dialog_add_buttons().

libempathy-gtk/empathy-new-call-dialog.c
libempathy-gtk/empathy-new-message-dialog.c

index 26865574d21b804ca68bc0150a42099db2bd76c8..6c55f095e8434dad730cb2f4d7d98d97332b2102 100644 (file)
@@ -219,7 +219,8 @@ empathy_new_call_dialog_init (EmpathyNewCallDialog *self)
       G_CALLBACK (selection_activate_cb), self);
 
   /* close button */
       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"));
 
   /* add video button */
   self->priv->button_video = gtk_button_new_with_mnemonic (_("_Video Call"));
index d34e6f5f0a211f9ad039c9dc981d682b49f43857..998df161752a4adf7ac4456a9d74cb279281d93a 100644 (file)
@@ -307,7 +307,8 @@ empathy_new_message_dialog_init (EmpathyNewMessageDialog *self)
       G_CALLBACK (selection_activate_cb), self);
 
   /* close button */
       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"));
 
   /* add SMS button */
   self->priv->button_sms = gtk_button_new_with_mnemonic (_("_SMS"));