summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Baldessari <michele@acksyn.org>2013-11-03 20:21:00 +0000
committerGuido Günther <agx@sigxcpu.org>2013-11-03 22:20:14 +0100
commitf6a5df9b0a8ab93274450fa094d201be3df6adcf (patch)
tree24e2104fc0ffa28a04e6e147e6da39e7228f7296
parenta7ed375295ec947295a6b7e9010665346e20c03c (diff)
Replace *_STOCK with their non-deprecated counterparts
In gtk+-3.10 stock items have been deprecated: https://docs.google.com/document/d/1KCVPoYQBqMbDP11tHPpjW6uaEHrvLUmcDPqKAppCY8o/pub Replace the all the stock item references with their suggested new counterparts. Signed-off-by: Guido Günther <agx@sigxcpu.org>
-rw-r--r--auth-dialog/vpn-password-dialog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth-dialog/vpn-password-dialog.c b/auth-dialog/vpn-password-dialog.c
index 79af9f7..215e0bf 100644
--- a/auth-dialog/vpn-password-dialog.c
+++ b/auth-dialog/vpn-password-dialog.c
@@ -184,8 +184,8 @@ vpn_password_dialog_new (const char *title,
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OK, GTK_RESPONSE_OK,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Ok"), GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
@@ -245,7 +245,7 @@ vpn_password_dialog_new (const char *title,
hbox = gtk_hbox_new (FALSE, 12);
#endif
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
- dialog_icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_AUTHENTICATION, GTK_ICON_SIZE_DIALOG);
+ dialog_icon = gtk_image_new_from_icon_name (_("dialog-password"), GTK_ICON_SIZE_DIALOG);
gtk_misc_set_alignment (GTK_MISC (dialog_icon), 0.5, 0.0);
gtk_box_pack_start (GTK_BOX (hbox), dialog_icon, FALSE, FALSE, 0);