summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-10 14:40:25 +0100
committerraveit65 <[email protected]>2018-02-12 16:51:15 +0100
commit145663bb841ea3d8cf813dec597d4695fda8e77d (patch)
tree8587a49bbb3919bc01c81b3496ca29fa680b7272 /src
parentc0038c0725cb0adcb1b2b1e4a13d66b9dc06dd87 (diff)
downloadmate-screensaver-145663bb841ea3d8cf813dec597d4695fda8e77d.tar.bz2
mate-screensaver-145663bb841ea3d8cf813dec597d4695fda8e77d.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'src')
-rw-r--r--src/copy-theme-dialog.c2
-rw-r--r--src/gs-lock-plug.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/copy-theme-dialog.c b/src/copy-theme-dialog.c
index fe7610d..fe02f52 100644
--- a/src/copy-theme-dialog.c
+++ b/src/copy-theme-dialog.c
@@ -253,7 +253,7 @@ copy_theme_dialog_init (CopyThemeDialog *dlg)
gtk_widget_set_halign (dlg->priv->current, GTK_ALIGN_START);
gtk_dialog_add_button (GTK_DIALOG (dlg),
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ "gtk-cancel", GTK_RESPONSE_CANCEL);
gtk_window_set_title (GTK_WINDOW (dlg),
_("Copying themes"));
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index e4692e4..0dbd32e 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -1587,7 +1587,11 @@ gs_lock_plug_add_button (GSLockPlug *plug,
g_return_val_if_fail (GS_IS_LOCK_PLUG (plug), NULL);
g_return_val_if_fail (button_text != NULL, NULL);
- button = gtk_button_new_with_label (button_text);
+ button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+ "label", button_text,
+ "use-stock", TRUE,
+ "use-underline", TRUE,
+ NULL));
gtk_widget_set_can_default (button, TRUE);
@@ -1664,7 +1668,7 @@ create_page_one_buttons (GSLockPlug *plug)
plug->priv->auth_cancel_button = gs_lock_plug_add_button (GS_LOCK_PLUG (plug),
plug->priv->auth_action_area,
- GTK_STOCK_CANCEL);
+ "gtk-cancel");
gtk_widget_set_focus_on_click (GTK_WIDGET (plug->priv->auth_cancel_button), FALSE);
plug->priv->auth_unlock_button = gs_lock_plug_add_button (GS_LOCK_PLUG (plug),