Mercurial > pidgin
diff src/prpl.c @ 3753:764ecb5f984b
[gaim-migrate @ 3892]
I never committed this last night.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 19 Oct 2002 22:11:10 +0000 |
| parents | 10a60faad8d7 |
| children | 43e396e94095 |
line wrap: on
line diff
--- a/src/prpl.c Sat Oct 19 05:22:30 2002 +0000 +++ b/src/prpl.c Sat Oct 19 22:11:10 2002 +0000 @@ -165,6 +165,10 @@ gtk_widget_destroy(GTK_WIDGET(d)); } +#define STOCK_ITEMIZE(r, l) if (!strcmp(r,yestext)) \ + yestext = l; \ + if (!strcmp(r,notext)) \ + notext = l; void do_ask_dialog(const char *prim, const char *sec, void *data, char *yestext, void *doit, char *notext, void *dont) { @@ -183,6 +187,18 @@ g_free(filename); gtk_misc_set_alignment(GTK_MISC(img), 0, 0); + /* This is ugly. GTK Stock items will take a button with a label "gtk-cancel" and turn it into a + * Cancel button with a Cancel icon and whatnot. We want to avoid using anything gtk in the prpls + * so we replace "Cancel" with "gtk-cancel" right here. */ + STOCK_ITEMIZE("Add", GTK_STOCK_ADD); + STOCK_ITEMIZE("Apply", GTK_STOCK_APPLY); + STOCK_ITEMIZE("Cancel", GTK_STOCK_CANCEL); + STOCK_ITEMIZE("Close", GTK_STOCK_CLOSE); + STOCK_ITEMIZE("Delete", GTK_STOCK_DELETE); + STOCK_ITEMIZE("Remove", GTK_STOCK_REMOVE); + STOCK_ITEMIZE("Yes", GTK_STOCK_YES); + STOCK_ITEMIZE("No", GTK_STOCK_NO); + window = gtk_dialog_new_with_buttons("", NULL, GTK_DIALOG_MODAL, notext, GTK_RESPONSE_NO, yestext, GTK_RESPONSE_YES, NULL); gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_YES); g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(do_ask_callback), doask);
