Skip to content
Permalink
Browse files

avoid deprecated GtkStock

  • Loading branch information...
sc0w authored and raveit65 committed Feb 12, 2018
1 parent efbcc67 commit 91c840faea76d98659a79e76737cb37270cec558
Showing with 9 additions and 9 deletions.
  1. +5 −5 capplet/gsm-app-dialog.c
  2. +2 −2 capplet/gsm-properties-dialog.c
  3. +2 −2 mate-session/gsm-logout-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));
@@ -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,
@@ -454,7 +454,7 @@ gsm_get_dialog (GsmDialogLogoutType type,
}

gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
GTK_STOCK_CANCEL,
"gtk-cancel",
GTK_RESPONSE_CANCEL);

gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
@@ -487,7 +487,7 @@ gsm_get_dialog (GsmDialogLogoutType type,
}

gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
GTK_STOCK_CANCEL,
"gtk-cancel",
GTK_RESPONSE_CANCEL);

if (gsm_logout_supports_shutdown (logout_dialog)) {

0 comments on commit 91c840f

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