/pidgin/main: 0d20ac3015b4: Pidgin: more stock buttons

Tomasz Wasilczyk twasilczyk at pidgin.im
Thu Sep 12 09:52:14 EDT 2013


Changeset: 0d20ac3015b488668d838bf05d92be617027e64f
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2013-09-12 15:52 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/0d20ac3015b4

Description:

Pidgin: more stock buttons

diffstat:

 pidgin/gtkrequest.c |  32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diffs (51 lines):

diff --git a/pidgin/gtkrequest.c b/pidgin/gtkrequest.c
--- a/pidgin/gtkrequest.c
+++ b/pidgin/gtkrequest.c
@@ -303,27 +303,35 @@ destroy_multifield_cb(GtkWidget *dialog,
 
 
 #define STOCK_ITEMIZE(r, l) \
-	if (!strcmp((r), text)) \
+	if (!strcmp((r), text) || !strcmp(_(r), text)) \
 		return (l);
 
 static const char *
 text_to_stock(const char *text)
 {
-	STOCK_ITEMIZE(_("Yes"),     GTK_STOCK_YES);
-	STOCK_ITEMIZE(_("No"),      GTK_STOCK_NO);
-	STOCK_ITEMIZE(_("OK"),      GTK_STOCK_OK);
-	STOCK_ITEMIZE(_("Cancel"),  GTK_STOCK_CANCEL);
-	STOCK_ITEMIZE(_("Apply"),   GTK_STOCK_APPLY);
-	STOCK_ITEMIZE(_("Close"),   GTK_STOCK_CLOSE);
-	STOCK_ITEMIZE(_("Delete"),  GTK_STOCK_DELETE);
-	STOCK_ITEMIZE(_("Add"),     GTK_STOCK_ADD);
-	STOCK_ITEMIZE(_("Remove"),  GTK_STOCK_REMOVE);
-	STOCK_ITEMIZE(_("Save"),    GTK_STOCK_SAVE);
-	STOCK_ITEMIZE(_("Alias"),   PIDGIN_STOCK_ALIAS);
+	STOCK_ITEMIZE(N_("Yes"),     GTK_STOCK_YES);
+	STOCK_ITEMIZE(N_("_Yes"),    GTK_STOCK_YES);
+	STOCK_ITEMIZE(N_("No"),      GTK_STOCK_NO);
+	STOCK_ITEMIZE(N_("_No"),     GTK_STOCK_NO);
+	STOCK_ITEMIZE(N_("OK"),      GTK_STOCK_OK);
+	STOCK_ITEMIZE(N_("_OK"),     GTK_STOCK_OK);
+	STOCK_ITEMIZE(N_("Cancel"),  GTK_STOCK_CANCEL);
+	STOCK_ITEMIZE(N_("_Cancel"), GTK_STOCK_CANCEL);
+	STOCK_ITEMIZE(N_("Apply"),   GTK_STOCK_APPLY);
+	STOCK_ITEMIZE(N_("Close"),   GTK_STOCK_CLOSE);
+	STOCK_ITEMIZE(N_("Delete"),  GTK_STOCK_DELETE);
+	STOCK_ITEMIZE(N_("Add"),     GTK_STOCK_ADD);
+	STOCK_ITEMIZE(N_("Remove"),  GTK_STOCK_REMOVE);
+	STOCK_ITEMIZE(N_("Save"),    GTK_STOCK_SAVE);
+	STOCK_ITEMIZE(N_("Next"),    GTK_STOCK_GO_FORWARD);
+	STOCK_ITEMIZE(N_("Back"),    GTK_STOCK_GO_BACK);
+	STOCK_ITEMIZE(N_("Alias"),   PIDGIN_STOCK_ALIAS);
 
 	return text;
 }
 
+#undef STOCK_ITEMIZE
+
 static gchar *
 pidgin_request_escape(PurpleRequestCommonParameters *cpar, const gchar *text)
 {



More information about the Commits mailing list