summaryrefslogtreecommitdiff
path: root/capplet
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-12 12:13:35 +0100
committerraveit65 <[email protected]>2018-02-13 12:37:25 +0100
commit91c840faea76d98659a79e76737cb37270cec558 (patch)
treeabd22c86baf7b503c8fa811ceede224f978d3752 /capplet
parentefbcc67539de524b1f328b4fb90e4f03e811aa22 (diff)
downloadmate-session-manager-91c840faea76d98659a79e76737cb37270cec558.tar.bz2
mate-session-manager-91c840faea76d98659a79e76737cb37270cec558.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'capplet')
-rw-r--r--capplet/gsm-app-dialog.c10
-rw-r--r--capplet/gsm-properties-dialog.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/capplet/gsm-app-dialog.c b/capplet/gsm-app-dialog.c
index 8eb6bd6..04aaf28 100644
--- a/capplet/gsm-app-dialog.c
+++ b/capplet/gsm-app-dialog.c
@@ -111,9 +111,9 @@ on_browse_button_clicked (GtkWidget *widget,
chooser = gtk_file_chooser_dialog_new ("",
GTK_WINDOW (dialog),
GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL,
+ "gtk-cancel",
GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN,
+ "gtk-open",
GTK_RESPONSE_ACCEPT,
NULL);
@@ -189,18 +189,18 @@ setup_dialog (GsmAppDialog *dialog)
NULL);
gtk_dialog_add_button (GTK_DIALOG (dialog),
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ "gtk-cancel", GTK_RESPONSE_CANCEL);
if (dialog->priv->name == NULL
&& dialog->priv->command == NULL
&& dialog->priv->comment == NULL) {
gtk_window_set_title (GTK_WINDOW (dialog), _("Add Startup Program"));
gtk_dialog_add_button (GTK_DIALOG (dialog),
- GTK_STOCK_ADD, GTK_RESPONSE_OK);
+ "gtk-add", GTK_RESPONSE_OK);
} else {
gtk_window_set_title (GTK_WINDOW (dialog), _("Edit Startup Program"));
gtk_dialog_add_button (GTK_DIALOG (dialog),
- GTK_STOCK_SAVE, GTK_RESPONSE_OK);
+ "gtk-save", GTK_RESPONSE_OK);
}
dialog->priv->name_entry = GTK_WIDGET (gtk_builder_get_object (xml, CAPPLET_NAME_ENTRY_WIDGET_NAME));
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c
index cc049a4..09042a6 100644
--- a/capplet/gsm-properties-dialog.c
+++ b/capplet/gsm-properties-dialog.c
@@ -474,8 +474,8 @@ setup_dialog (GsmPropertiesDialog *dialog)
GtkTargetList *targetlist;
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
- GTK_STOCK_HELP, GTK_RESPONSE_HELP,
- GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
+ "gtk-help", GTK_RESPONSE_HELP,
+ "gtk-close", GTK_RESPONSE_CLOSE,
NULL);
dialog->priv->list_store = gtk_list_store_new (NUMBER_OF_COLUMNS,