gtkcertmgr: Replace usage of GtkStock with literal strings

Thu, 24 May 2018 19:06:27 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Thu, 24 May 2018 19:06:27 -0500
changeset 39133
a6bb1c5cb619
parent 39122
f18928dc403f
child 39134
6b6eb8ca2c2c

gtkcertmgr: Replace usage of GtkStock with literal strings

This patch replaces usage of the deprecated GtkStock with literal
strings for buttons. It changes "Open" to "Import" and "Save As"
to "Export" as those are more conceptually correct for the actions
being performed.

pidgin/gtkcertmgr.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkcertmgr.c	Fri Jun 01 23:32:50 2018 +0300
+++ b/pidgin/gtkcertmgr.c	Thu May 24 19:06:27 2018 -0500
@@ -504,7 +504,7 @@
 
 	/* Import button */
 	tpm_dat->importbutton = importbutton =
-		gtk_button_new_from_stock(GTK_STOCK_OPEN);
+		gtk_button_new_with_mnemonic(_("_Import..."));
 	gtk_box_pack_start(GTK_BOX(bbox), importbutton, FALSE, FALSE, 0);
 	gtk_widget_show(importbutton);
 	g_signal_connect(G_OBJECT(importbutton), "clicked",
@@ -513,7 +513,7 @@
 
 	/* Export button */
 	tpm_dat->exportbutton = exportbutton =
-		gtk_button_new_from_stock(GTK_STOCK_SAVE_AS);
+		gtk_button_new_with_mnemonic(_("_Export..."));
 	gtk_box_pack_start(GTK_BOX(bbox), exportbutton, FALSE, FALSE, 0);
 	gtk_widget_show(exportbutton);
 	g_signal_connect(G_OBJECT(exportbutton), "clicked",
@@ -522,7 +522,7 @@
 
 	/* Info button */
 	tpm_dat->infobutton = infobutton =
-		gtk_button_new_from_stock(PIDGIN_STOCK_INFO);
+		gtk_button_new_with_mnemonic(_("_Get Info"));
 	gtk_box_pack_start(GTK_BOX(bbox), infobutton, FALSE, FALSE, 0);
 	gtk_widget_show(infobutton);
 	g_signal_connect(G_OBJECT(infobutton), "clicked",
@@ -531,7 +531,7 @@
 
 	/* Delete button */
 	tpm_dat->deletebutton = deletebutton =
-		gtk_button_new_from_stock(GTK_STOCK_DELETE);
+		gtk_button_new_with_mnemonic(_("_Delete"));
 	gtk_box_pack_start(GTK_BOX(bbox), deletebutton, FALSE, FALSE, 0);
 	gtk_widget_show(deletebutton);
 	g_signal_connect(G_OBJECT(deletebutton), "clicked",
@@ -633,8 +633,8 @@
 	gtk_widget_show(dlg->notebook);
 
 	/* Close button */
-	dlg->closebutton = pidgin_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_CLOSE,
-			G_CALLBACK(certmgr_close_cb), dlg);
+	dlg->closebutton = pidgin_dialog_add_button(GTK_DIALOG(win),
+			_("_Close"), G_CALLBACK(certmgr_close_cb), dlg);
 
 	/* Add the defined certificate managers */
 	/* TODO: Find a way of determining whether each is shown or not */

mercurial