Skip to content

Commit

Permalink
avoid deprecated GtkStock
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w authored and raveit65 committed Feb 8, 2018
1 parent 29d362e commit 2217a02
Show file tree
Hide file tree
Showing 27 changed files with 193 additions and 174 deletions.
6 changes: 3 additions & 3 deletions docs/reference/pluma-sections.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ PlumaPanelPrivate
PlumaPanel PlumaPanel
pluma_panel_new pluma_panel_new
pluma_panel_add_item pluma_panel_add_item
pluma_panel_add_item_with_stock_icon pluma_panel_add_item_with_icon
pluma_panel_remove_item pluma_panel_remove_item
pluma_panel_activate_item pluma_panel_activate_item
pluma_panel_item_is_active pluma_panel_item_is_active
Expand Down Expand Up @@ -277,7 +277,7 @@ PlumaProgressMessageAreaPrivate
<TITLE>PlumaProgressMessageArea</TITLE> <TITLE>PlumaProgressMessageArea</TITLE>
PlumaProgressMessageArea PlumaProgressMessageArea
pluma_progress_message_area_new pluma_progress_message_area_new
pluma_progress_message_area_set_stock_image pluma_progress_message_area_set_image
pluma_progress_message_area_set_markup pluma_progress_message_area_set_markup
pluma_progress_message_area_set_text pluma_progress_message_area_set_text
pluma_progress_message_area_set_fraction pluma_progress_message_area_set_fraction
Expand Down Expand Up @@ -699,7 +699,7 @@ pluma_utils_uri_has_writable_scheme
pluma_utils_uri_has_file_scheme pluma_utils_uri_has_file_scheme
pluma_utils_menu_position_under_widget pluma_utils_menu_position_under_widget
pluma_utils_menu_position_under_tree_view pluma_utils_menu_position_under_tree_view
pluma_gtk_button_new_with_stock_icon pluma_gtk_button_new_with_icon
pluma_dialog_add_button pluma_dialog_add_button
pluma_utils_escape_underscores pluma_utils_escape_underscores
pluma_utils_str_middle_truncate pluma_utils_str_middle_truncate
Expand Down
8 changes: 4 additions & 4 deletions plugins/filebrowser/pluma-file-browser-plugin.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ on_selection_changed_cb (GtkTreeSelection *selection,


static GtkActionEntry extra_actions[] = static GtkActionEntry extra_actions[] =
{ {
{"SetActiveRoot", GTK_STOCK_JUMP_TO, N_("_Set root to active document"), {"SetActiveRoot", "go-jump", N_("_Set root to active document"),
NULL, NULL,
N_("Set the root to the active document location"), N_("Set the root to the active document location"),
G_CALLBACK (on_action_set_active_root)} G_CALLBACK (on_action_set_active_root)}
Expand Down Expand Up @@ -717,7 +717,7 @@ pluma_file_browser_plugin_activate (PeasActivatable *activatable)
image = gtk_image_new_from_pixbuf(pixbuf); image = gtk_image_new_from_pixbuf(pixbuf);
g_object_unref(pixbuf); g_object_unref(pixbuf);
} else { } else {
image = gtk_image_new_from_stock(GTK_STOCK_INDEX, GTK_ICON_SIZE_MENU); image = gtk_image_new_from_icon_name("gtk-index", GTK_ICON_SIZE_MENU);
} }


gtk_widget_show(image); gtk_widget_show(image);
Expand Down Expand Up @@ -1141,7 +1141,7 @@ on_confirm_no_trash_cb (PlumaFileBrowserWidget * widget,
GTK_MESSAGE_QUESTION, GTK_MESSAGE_QUESTION,
message, message,
secondary, secondary,
GTK_STOCK_DELETE, "gtk-delete",
NULL); NULL);
g_free (secondary); g_free (secondary);


Expand Down Expand Up @@ -1176,7 +1176,7 @@ on_confirm_delete_cb (PlumaFileBrowserWidget *widget,
GTK_MESSAGE_QUESTION, GTK_MESSAGE_QUESTION,
message, message,
secondary, secondary,
GTK_STOCK_DELETE, "gtk-delete",
NULL); NULL);


g_free (message); g_free (message);
Expand Down
18 changes: 13 additions & 5 deletions plugins/filebrowser/pluma-file-browser-utils.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window,
GtkMessageType type, GtkMessageType type,
gchar const *message, gchar const *message,
gchar const *secondary, gchar const *secondary,
gchar const * button_stock, gchar const * button_image,
gchar const * button_label) gchar const * button_label)
{ {
GtkWidget *dlg; GtkWidget *dlg;
Expand All @@ -167,7 +167,12 @@ pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window,
(GTK_MESSAGE_DIALOG (dlg), "%s", secondary); (GTK_MESSAGE_DIALOG (dlg), "%s", secondary);


/* Add a cancel button */ /* Add a cancel button */
button = gtk_button_new_from_stock (GTK_STOCK_CANCEL); button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
"label", "gtk-cancel",
"use-stock", TRUE,
"use-underline", TRUE,
NULL));

gtk_widget_show (button); gtk_widget_show (button);


gtk_widget_set_can_default (button, TRUE); gtk_widget_set_can_default (button, TRUE);
Expand All @@ -176,10 +181,13 @@ pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window,
GTK_RESPONSE_CANCEL); GTK_RESPONSE_CANCEL);


/* Add custom button */ /* Add custom button */
button = gtk_button_new_from_stock (button_stock); button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,

"label", button_image,
"use-stock", TRUE,
"use-underline", TRUE,
NULL));

if (button_label) { if (button_label) {
gtk_button_set_use_stock (GTK_BUTTON (button), FALSE);
gtk_button_set_label (GTK_BUTTON (button), button_label); gtk_button_set_label (GTK_BUTTON (button), button_label);
} }


Expand Down
2 changes: 1 addition & 1 deletion plugins/filebrowser/pluma-file-browser-utils.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gboolean pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window,
GtkMessageType type, GtkMessageType type,
gchar const *message, gchar const *message,
gchar const *secondary, gchar const *secondary,
gchar const * button_stock, gchar const * button_image,
gchar const * button_label); gchar const * button_label);


#endif /* __PLUMA_FILE_BROWSER_UTILS_H__ */ #endif /* __PLUMA_FILE_BROWSER_UTILS_H__ */
Expand Down
34 changes: 19 additions & 15 deletions plugins/filebrowser/pluma-file-browser-widget.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -802,30 +802,30 @@ static const GtkActionEntry tree_actions_selection[] =
{"FileMoveToTrash", "mate-stock-trash", N_("_Move to Trash"), NULL, {"FileMoveToTrash", "mate-stock-trash", N_("_Move to Trash"), NULL,
N_("Move selected file or folder to trash"), N_("Move selected file or folder to trash"),
G_CALLBACK (on_action_file_move_to_trash)}, G_CALLBACK (on_action_file_move_to_trash)},
{"FileDelete", GTK_STOCK_DELETE, N_("_Delete"), NULL, {"FileDelete", "edit-delete", N_("_Delete"), NULL,
N_("Delete selected file or folder"), N_("Delete selected file or folder"),
G_CALLBACK (on_action_file_delete)} G_CALLBACK (on_action_file_delete)}
}; };


static const GtkActionEntry tree_actions_file_selection[] = static const GtkActionEntry tree_actions_file_selection[] =
{ {
{"FileOpen", GTK_STOCK_OPEN, NULL, NULL, {"FileOpen", "document-open", N_("_Open"), NULL,
N_("Open selected file"), N_("Open selected file"),
G_CALLBACK (on_action_file_open)} G_CALLBACK (on_action_file_open)}
}; };


static const GtkActionEntry tree_actions[] = static const GtkActionEntry tree_actions[] =
{ {
{"DirectoryUp", GTK_STOCK_GO_UP, N_("Up"), NULL, {"DirectoryUp", "go-up", N_("Up"), NULL,
N_("Open the parent folder"), G_CALLBACK (on_action_directory_up)} N_("Open the parent folder"), G_CALLBACK (on_action_directory_up)}
}; };


static const GtkActionEntry tree_actions_single_most_selection[] = static const GtkActionEntry tree_actions_single_most_selection[] =
{ {
{"DirectoryNew", GTK_STOCK_ADD, N_("_New Folder"), NULL, {"DirectoryNew", "list-add", N_("_New Folder"), NULL,
N_("Add new empty folder"), N_("Add new empty folder"),
G_CALLBACK (on_action_directory_new)}, G_CALLBACK (on_action_directory_new)},
{"FileNew", GTK_STOCK_NEW, N_("New F_ile"), NULL, {"FileNew", "document-new", N_("New F_ile"), NULL,
N_("Add new empty file"), G_CALLBACK (on_action_file_new)} N_("Add new empty file"), G_CALLBACK (on_action_file_new)}
}; };


Expand All @@ -838,22 +838,22 @@ static const GtkActionEntry tree_actions_single_selection[] =


static const GtkActionEntry tree_actions_sensitive[] = static const GtkActionEntry tree_actions_sensitive[] =
{ {
{"DirectoryPrevious", GTK_STOCK_GO_BACK, N_("_Previous Location"), {"DirectoryPrevious", "go-previous", N_("_Previous Location"),
NULL, NULL,
N_("Go to the previous visited location"), N_("Go to the previous visited location"),
G_CALLBACK (on_action_directory_previous)}, G_CALLBACK (on_action_directory_previous)},
{"DirectoryNext", GTK_STOCK_GO_FORWARD, N_("_Next Location"), NULL, {"DirectoryNext", "go-next", N_("_Next Location"), NULL,
N_("Go to the next visited location"), G_CALLBACK (on_action_directory_next)}, N_("Go to the next visited location"), G_CALLBACK (on_action_directory_next)},
{"DirectoryRefresh", GTK_STOCK_REFRESH, N_("Re_fresh View"), NULL, {"DirectoryRefresh", "view-refresh", N_("Re_fresh View"), NULL,
N_("Refresh the view"), G_CALLBACK (on_action_directory_refresh)}, N_("Refresh the view"), G_CALLBACK (on_action_directory_refresh)},
{"DirectoryOpen", GTK_STOCK_OPEN, N_("_View Folder"), NULL, {"DirectoryOpen", "document-open", N_("_View Folder"), NULL,
N_("View folder in file manager"), N_("View folder in file manager"),
G_CALLBACK (on_action_directory_open)} G_CALLBACK (on_action_directory_open)}
}; };


static const GtkToggleActionEntry tree_actions_toggle[] = static const GtkToggleActionEntry tree_actions_toggle[] =
{ {
{"FilterHidden", GTK_STOCK_DIALOG_AUTHENTICATION, {"FilterHidden", "dialog-password",
N_("Show _Hidden"), NULL, N_("Show _Hidden"), NULL,
N_("Show hidden files and folders"), N_("Show hidden files and folders"),
G_CALLBACK (on_action_filter_hidden), FALSE}, G_CALLBACK (on_action_filter_hidden), FALSE},
Expand All @@ -864,7 +864,7 @@ static const GtkToggleActionEntry tree_actions_toggle[] =


static const GtkActionEntry bookmark_actions[] = static const GtkActionEntry bookmark_actions[] =
{ {
{"BookmarkOpen", GTK_STOCK_OPEN, N_("_View Folder"), NULL, {"BookmarkOpen", "document-open", N_("_View Folder"), NULL,
N_("View folder in file manager"), G_CALLBACK (on_action_bookmark_open)} N_("View folder in file manager"), G_CALLBACK (on_action_bookmark_open)}
}; };


Expand Down Expand Up @@ -986,11 +986,13 @@ create_toolbar (PlumaFileBrowserWidget * obj,
obj->priv->location_previous_menu = gtk_menu_new (); obj->priv->location_previous_menu = gtk_menu_new ();
gtk_widget_show (obj->priv->location_previous_menu); gtk_widget_show (obj->priv->location_previous_menu);


widget = GTK_WIDGET (gtk_menu_tool_button_new_from_stock (GTK_STOCK_GO_BACK)); widget = GTK_WIDGET (gtk_menu_tool_button_new (gtk_image_new_from_icon_name ("go-previous",
GTK_ICON_SIZE_MENU),
_("Previous location")));

gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (widget), gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (widget),
obj->priv->location_previous_menu); obj->priv->location_previous_menu);


g_object_set (widget, "label", _("Previous location"), NULL);
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (widget), gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (widget),
_("Go to previous location")); _("Go to previous location"));
gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (widget), gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (widget),
Expand All @@ -1007,11 +1009,13 @@ create_toolbar (PlumaFileBrowserWidget * obj,
obj->priv->location_next_menu = gtk_menu_new (); obj->priv->location_next_menu = gtk_menu_new ();
gtk_widget_show (obj->priv->location_next_menu); gtk_widget_show (obj->priv->location_next_menu);


widget = GTK_WIDGET (gtk_menu_tool_button_new_from_stock (GTK_STOCK_GO_FORWARD)); widget = GTK_WIDGET (gtk_menu_tool_button_new (gtk_image_new_from_icon_name ("go-next",
GTK_ICON_SIZE_MENU),
_("Next location")));

gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (widget), gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (widget),
obj->priv->location_next_menu); obj->priv->location_next_menu);


g_object_set (widget, "label", _("Next location"), NULL);
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (widget), gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (widget),
_("Go to next location")); _("Go to next location"));
gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (widget), gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (widget),
Expand Down
2 changes: 1 addition & 1 deletion plugins/sort/pluma-sort-plugin.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static void sort_real (SortDialog *dialog);
static const GtkActionEntry action_entries[] = static const GtkActionEntry action_entries[] =
{ {
{ "Sort", { "Sort",
GTK_STOCK_SORT_ASCENDING, "view-sort-ascending",
N_("S_ort..."), N_("S_ort..."),
NULL, NULL,
N_("Sort the current document or selection"), N_("Sort the current document or selection"),
Expand Down
10 changes: 5 additions & 5 deletions plugins/spell/pluma-automatic-spell-checker.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ build_suggestion_menu (PlumaAutomaticSpellChecker *spell, const gchar *word)
/* Ignore all */ /* Ignore all */
mi = gtk_image_menu_item_new_with_mnemonic (_("_Ignore All")); mi = gtk_image_menu_item_new_with_mnemonic (_("_Ignore All"));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
gtk_image_new_from_stock (GTK_STOCK_GOTO_BOTTOM, gtk_image_new_from_icon_name ("go-bottom",
GTK_ICON_SIZE_MENU)); GTK_ICON_SIZE_MENU));


g_signal_connect (mi, g_signal_connect (mi,
"activate", "activate",
Expand All @@ -513,8 +513,8 @@ build_suggestion_menu (PlumaAutomaticSpellChecker *spell, const gchar *word)
/* + Add to Dictionary */ /* + Add to Dictionary */
mi = gtk_image_menu_item_new_with_mnemonic (_("_Add")); mi = gtk_image_menu_item_new_with_mnemonic (_("_Add"));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
gtk_image_new_from_stock (GTK_STOCK_ADD, gtk_image_new_from_icon_name ("list-add",
GTK_ICON_SIZE_MENU)); GTK_ICON_SIZE_MENU));


g_signal_connect (mi, g_signal_connect (mi,
"activate", "activate",
Expand Down Expand Up @@ -549,7 +549,7 @@ populate_popup (GtkTextView *textview, GtkMenu *menu, PlumaAutomaticSpellChecker
gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), mi); gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), mi);


/* then, on top of it, the suggestions menu. */ /* then, on top of it, the suggestions menu. */
img = gtk_image_new_from_stock (GTK_STOCK_SPELL_CHECK, GTK_ICON_SIZE_MENU); img = gtk_image_new_from_icon_name ("tools-check-spelling", GTK_ICON_SIZE_MENU);
mi = gtk_image_menu_item_new_with_mnemonic (_("_Spelling Suggestions...")); mi = gtk_image_menu_item_new_with_mnemonic (_("_Spelling Suggestions..."));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), img); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), img);


Expand Down
6 changes: 3 additions & 3 deletions plugins/spell/pluma-spell-language-dialog.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ create_dialog (PlumaSpellLanguageDialog *dlg,
}; };


gtk_dialog_add_buttons (GTK_DIALOG (dlg), gtk_dialog_add_buttons (GTK_DIALOG (dlg),
GTK_STOCK_CANCEL, "gtk-cancel",
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, "gtk-ok",
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_STOCK_HELP, "gtk-help",
GTK_RESPONSE_HELP, GTK_RESPONSE_HELP,
NULL); NULL);


Expand Down
2 changes: 1 addition & 1 deletion plugins/spell/pluma-spell-plugin.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static void auto_spell_cb (GtkAction *action, PlumaSpellPlugin *plugin);
static const GtkActionEntry action_entries[] = static const GtkActionEntry action_entries[] =
{ {
{ "CheckSpell", { "CheckSpell",
GTK_STOCK_SPELL_CHECK, "tools-check-spelling",
N_("_Check Spelling..."), N_("_Check Spelling..."),
"<shift>F7", "<shift>F7",
N_("Check the current document for incorrect spelling"), N_("Check the current document for incorrect spelling"),
Expand Down
8 changes: 4 additions & 4 deletions plugins/taglist/pluma-taglist-plugin.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ pluma_taglist_plugin_activate (PeasActivatable *activatable)
priv->taglist_panel = pluma_taglist_plugin_panel_new (window, data_dir); priv->taglist_panel = pluma_taglist_plugin_panel_new (window, data_dir);
g_free (data_dir); g_free (data_dir);


pluma_panel_add_item_with_stock_icon (side_panel, pluma_panel_add_item_with_icon (side_panel,
priv->taglist_panel, priv->taglist_panel,
_("Tags"), _("Tags"),
"list-add"); "list-add");
} }


static void static void
Expand Down
2 changes: 1 addition & 1 deletion plugins/time/pluma-time-plugin.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ get_choose_format_dialog (GtkWindow *parent,
err_dialog = gtk_dialog_new_with_buttons (NULL, err_dialog = gtk_dialog_new_with_buttons (NULL,
parent, parent,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, "gtk-ok", GTK_RESPONSE_ACCEPT,
NULL); NULL);


if (wg != NULL) if (wg != NULL)
Expand Down
10 changes: 5 additions & 5 deletions pluma/dialogs/pluma-close-confirmation-dialog.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,


pluma_dialog_add_button (GTK_DIALOG (dlg), pluma_dialog_add_button (GTK_DIALOG (dlg),
_("_Cancel Logout"), _("_Cancel Logout"),
GTK_STOCK_CANCEL, "process-stop",
GTK_RESPONSE_CANCEL); GTK_RESPONSE_CANCEL);
} }
else else
Expand All @@ -152,7 +152,7 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,
GTK_RESPONSE_NO); GTK_RESPONSE_NO);


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


if (dlg->priv->disable_save_to_disk) if (dlg->priv->disable_save_to_disk)
Expand All @@ -162,7 +162,7 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,
} }
else else
{ {
const gchar *stock_id = GTK_STOCK_SAVE; const gchar *icon_id = "gtk-save";


if (GET_MODE (dlg->priv) == SINGLE_DOC_MODE) if (GET_MODE (dlg->priv) == SINGLE_DOC_MODE)
{ {
Expand All @@ -172,11 +172,11 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,


if (pluma_document_get_readonly (doc) || if (pluma_document_get_readonly (doc) ||
pluma_document_is_untitled (doc)) pluma_document_is_untitled (doc))
stock_id = GTK_STOCK_SAVE_AS; icon_id = "gtk-save-as";
} }


gtk_dialog_add_button (GTK_DIALOG (dlg), gtk_dialog_add_button (GTK_DIALOG (dlg),
stock_id, icon_id,
GTK_RESPONSE_YES); GTK_RESPONSE_YES);


gtk_dialog_set_default_response (GTK_DIALOG (dlg), gtk_dialog_set_default_response (GTK_DIALOG (dlg),
Expand Down
6 changes: 3 additions & 3 deletions pluma/dialogs/pluma-encodings-dialog.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -310,11 +310,11 @@ pluma_encodings_dialog_init (PlumaEncodingsDialog *dlg)
dlg->priv = PLUMA_ENCODINGS_DIALOG_GET_PRIVATE (dlg); dlg->priv = PLUMA_ENCODINGS_DIALOG_GET_PRIVATE (dlg);


gtk_dialog_add_buttons (GTK_DIALOG (dlg), gtk_dialog_add_buttons (GTK_DIALOG (dlg),
GTK_STOCK_CANCEL, "gtk-cancel",
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, "gtk-ok",
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_STOCK_HELP, "gtk-help",
GTK_RESPONSE_HELP, GTK_RESPONSE_HELP,
NULL); NULL);


Expand Down
8 changes: 4 additions & 4 deletions pluma/dialogs/pluma-preferences-dialog.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -810,12 +810,12 @@ install_scheme_clicked (GtkButton *button,
chooser = gtk_file_chooser_dialog_new (_("Add Scheme"), chooser = gtk_file_chooser_dialog_new (_("Add Scheme"),
GTK_WINDOW (dlg), GTK_WINDOW (dlg),
GTK_FILE_CHOOSER_ACTION_OPEN, GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, "gtk-cancel", GTK_RESPONSE_CANCEL,
NULL); NULL);


pluma_dialog_add_button (GTK_DIALOG (chooser), pluma_dialog_add_button (GTK_DIALOG (chooser),
_("A_dd Scheme"), _("A_dd Scheme"),
GTK_STOCK_ADD, "list-add",
GTK_RESPONSE_ACCEPT); GTK_RESPONSE_ACCEPT);


gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE); gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE);
Expand Down Expand Up @@ -1079,9 +1079,9 @@ pluma_preferences_dialog_init (PlumaPreferencesDialog *dlg)
dlg->priv = PLUMA_PREFERENCES_DIALOG_GET_PRIVATE (dlg); dlg->priv = PLUMA_PREFERENCES_DIALOG_GET_PRIVATE (dlg);


gtk_dialog_add_buttons (GTK_DIALOG (dlg), gtk_dialog_add_buttons (GTK_DIALOG (dlg),
GTK_STOCK_CLOSE, "gtk-close",
GTK_RESPONSE_CLOSE, GTK_RESPONSE_CLOSE,
GTK_STOCK_HELP, "gtk-help",
GTK_RESPONSE_HELP, GTK_RESPONSE_HELP,
NULL); NULL);


Expand Down
Loading

0 comments on commit 2217a02

Please sign in to comment.