summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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),