From 46f4fba56428863cfb219e3a3b00d2c3843c7317 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 11 Mar 2017 17:02:52 +0100 Subject: password-view: replace some GtkStock deprecations --- shell/ev-password-view.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c index 6ddd04ec..d0bf4417 100644 --- a/shell/ev-password-view.c +++ b/shell/ev-password-view.c @@ -130,8 +130,8 @@ ev_password_view_init (EvPasswordView *password_view) NULL); gtk_box_pack_start (GTK_BOX (vbox), password_view->priv->label, FALSE, FALSE, 0); - image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_AUTHENTICATION, - GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-password", + GTK_ICON_SIZE_DIALOG); gtk_box_pack_start (GTK_BOX (vbox), image, FALSE, FALSE, 0); label = gtk_label_new (NULL); @@ -256,7 +256,7 @@ ev_password_view_ask_password (EvPasswordView *password_view) gtk_window_set_title (GTK_WINDOW (dialog), _("Enter password")); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); - gtk_window_set_icon_name (GTK_WINDOW (dialog), GTK_STOCK_DIALOG_AUTHENTICATION); + gtk_window_set_icon_name (GTK_WINDOW (dialog), "dialog-password"); gtk_window_set_transient_for (GTK_WINDOW (dialog), password_view->priv->parent_window); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); @@ -274,8 +274,8 @@ ev_password_view_ask_password (EvPasswordView *password_view) gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_AUTHENTICATION, - GTK_ICON_SIZE_DIALOG); + icon = gtk_image_new_from_icon_name ("dialog-password", + GTK_ICON_SIZE_DIALOG); gtk_widget_set_halign (icon, GTK_ALIGN_CENTER); gtk_widget_set_valign (icon, GTK_ALIGN_START); -- cgit v1.2.1