diff options
author | Pablo Barciela <[email protected]> | 2018-02-10 14:40:25 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-12 16:51:15 +0100 |
commit | 145663bb841ea3d8cf813dec597d4695fda8e77d (patch) | |
tree | 8587a49bbb3919bc01c81b3496ca29fa680b7272 /src/gs-lock-plug.c | |
parent | c0038c0725cb0adcb1b2b1e4a13d66b9dc06dd87 (diff) | |
download | mate-screensaver-145663bb841ea3d8cf813dec597d4695fda8e77d.tar.bz2 mate-screensaver-145663bb841ea3d8cf813dec597d4695fda8e77d.tar.xz |
avoid deprecated GtkStock
Diffstat (limited to 'src/gs-lock-plug.c')
-rw-r--r-- | src/gs-lock-plug.c | 8 |
1 files changed, 6 insertions, 2 deletions
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), |