Skip to content
Permalink
Browse files

avoid deprecated GtkStock

  • Loading branch information...
sc0w authored and raveit65 committed Feb 10, 2018
1 parent c0038c0 commit 145663bb841ea3d8cf813dec597d4695fda8e77d
Showing with 7 additions and 3 deletions.
  1. +1 −1 src/copy-theme-dialog.c
  2. +6 −2 src/gs-lock-plug.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"));
@@ -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),

0 comments on commit 145663b

Please sign in to comment.
You can’t perform that action at this time.