Mercurial > pidgin
changeset 28083:aca6f567cc1f
Reorder the New Pounces/New Mail dialog buttons.
Every other dialog that has a 'Close' button seems to have it on the
right. Also change "Edit" to PIDGIN_STOCK_MODIFY.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 24 Aug 2009 04:43:31 +0000 |
parents | c921fe62cf59 |
children | 9affcab62522 |
files | pidgin/gtknotify.c |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtknotify.c Mon Aug 24 02:03:07 2009 +0000 +++ b/pidgin/gtknotify.c Mon Aug 24 04:43:31 2009 +0000 @@ -1461,9 +1461,7 @@ G_TYPE_STRING, G_TYPE_POINTER); } - dialog = gtk_dialog_new_with_buttons(NULL, NULL, 0, - GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, - NULL); + dialog = gtk_dialog_new(); /* Setup the dialog */ gtk_container_set_border_width(GTK_CONTAINER(dialog), PIDGIN_HIG_BOX_SPACE); @@ -1537,17 +1535,17 @@ _("IM"), GTK_RESPONSE_YES); gtk_widget_set_sensitive(button, FALSE); spec_dialog->open_button = button; - + + button = gtk_dialog_add_button(GTK_DIALOG(dialog), + PIDGIN_STOCK_MODIFY, GTK_RESPONSE_APPLY); + gtk_widget_set_sensitive(button, FALSE); + spec_dialog->edit_button = button; + button = gtk_dialog_add_button(GTK_DIALOG(dialog), _("Dismiss"), GTK_RESPONSE_NO); gtk_widget_set_sensitive(button, FALSE); spec_dialog->dismiss_button = button; - button = gtk_dialog_add_button(GTK_DIALOG(dialog), - PIDGIN_STOCK_EDIT, GTK_RESPONSE_APPLY); - gtk_widget_set_sensitive(button, FALSE); - spec_dialog->edit_button = button; - g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(pounce_response_cb), spec_dialog); @@ -1598,6 +1596,9 @@ G_CALLBACK(pounce_response_open_ims), NULL); } + button = gtk_dialog_add_button(GTK_DIALOG(dialog), + GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE); + gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);