diff options
author | raveit65 <[email protected]> | 2017-03-11 17:02:52 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-07 13:03:17 +0200 |
commit | 46f4fba56428863cfb219e3a3b00d2c3843c7317 (patch) | |
tree | b5e1156c557ea0a372d67b0cf9e6c6270afb9c2c | |
parent | ce1421628f98aa67cbdd6bb75e32aad687ddd8d9 (diff) | |
download | atril-46f4fba56428863cfb219e3a3b00d2c3843c7317.tar.bz2 atril-46f4fba56428863cfb219e3a3b00d2c3843c7317.tar.xz |
password-view: replace some GtkStock deprecations
-rw-r--r-- | shell/ev-password-view.c | 10 |
1 files 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); |