Skip to content

Commit

Permalink
Replace Dialog Question stock id
Browse files Browse the repository at this point in the history
  • Loading branch information
astroDimitrios committed Aug 27, 2024
1 parent 93c3dd2 commit c9f1774
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion metomi/rose/config_editor/keywidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class KeyWidget(Gtk.Box):
metomi.rose.config_editor.FLAG_TYPE_FIXED: Gtk.STOCK_DIALOG_AUTHENTICATION,
metomi.rose.config_editor.FLAG_TYPE_OPT_CONF: Gtk.STOCK_INDEX,
metomi.rose.config_editor.FLAG_TYPE_OPTIONAL: Gtk.STOCK_ABOUT,
metomi.rose.config_editor.FLAG_TYPE_NO_META: Gtk.STOCK_DIALOG_QUESTION,
metomi.rose.config_editor.FLAG_TYPE_NO_META: "dialog-question",
}

MODIFIED_COLOUR = metomi.rose.gtk.util.color_parse(
Expand Down
2 changes: 1 addition & 1 deletion metomi/rose/config_editor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def generate_toolbar(self):
(metomi.rose.config_editor.TOOLBAR_FIND, 'Gtk.Entry'),
(metomi.rose.config_editor.TOOLBAR_FIND_NEXT, 'Gtk.STOCK_FIND'),
(metomi.rose.config_editor.TOOLBAR_VALIDATE,
'Gtk.STOCK_DIALOG_QUESTION'),
"dialog-question"),
(metomi.rose.config_editor.TOOLBAR_TRANSFORM,
'Gtk.STOCK_CONVERT'),
],
Expand Down
4 changes: 2 additions & 2 deletions metomi/rose/config_editor/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ class MenuBar(object):
metomi.rose.config_editor.TOP_MENU_METADATA_PREFERENCES),
('Upgrade', Gtk.STOCK_GO_UP,
metomi.rose.config_editor.TOP_MENU_METADATA_UPGRADE),
('All V', Gtk.STOCK_DIALOG_QUESTION,
('All V', "dialog-question",
metomi.rose.config_editor.TOP_MENU_METADATA_MACRO_ALL_V),
('Autofix', Gtk.STOCK_CONVERT,
metomi.rose.config_editor.TOP_MENU_METADATA_MACRO_AUTOFIX),
('Extra checks', Gtk.STOCK_DIALOG_QUESTION,
('Extra checks', "dialog-question",
metomi.rose.config_editor.TOP_MENU_METADATA_CHECK),
('Graph', Gtk.STOCK_SORT_ASCENDING,
metomi.rose.config_editor.TOP_MENU_METADATA_GRAPH),
Expand Down
2 changes: 1 addition & 1 deletion metomi/rose/config_editor/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ def _macro_menu_launch(self, widget, event):
if method == metomi.rose.macro.TRANSFORM_METHOD:
stock_id = Gtk.STOCK_CONVERT
else:
stock_id = Gtk.STOCK_DIALOG_QUESTION
stock_id = "dialog-question"
macro_menuitem_box = Gtk.Box()
macro_menuitem_icon = Gtk.Image.new_from_icon_name(stock_id, Gtk.IconSize.MENU)
macro_menuitem_label = Gtk.Label(label=macro_name)
Expand Down
2 changes: 1 addition & 1 deletion metomi/rose/config_editor/valuewidget/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _generate_available_treeview(self):
def _get_custom_menu_items(self):
"""Return some custom menuitems for use in the list view."""
menuitem_box = Gtk.Box()
menuitem_icon = Gtk.Image.new_from_icon_name(Gtk.STOCK_DIALOG_QUESTION, Gtk.IconSize.MENU)
menuitem_icon = Gtk.Image.new_from_icon_name("dialog-question", Gtk.IconSize.MENU)
menuitem_label = Gtk.Label(label=metomi.rose.config_editor.FILE_CONTENT_PANEL_MENU_OPTIONAL)
menuitem = Gtk.MenuItem()
menuitem_box.pack_start(menuitem_icon, False, False, 0)
Expand Down
2 changes: 1 addition & 1 deletion metomi/rose/gtk/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def run_dialog(dialog_type, text, title=None, modal=True,
elif dialog_type == Gtk.MessageType.WARNING:
stock_id = Gtk.STOCK_DIALOG_WARNING
elif dialog_type == Gtk.MessageType.QUESTION:
stock_id = Gtk.STOCK_DIALOG_QUESTION
stock_id = "dialog-question"
elif dialog_type == Gtk.MessageType.ERROR:
stock_id = Gtk.STOCK_DIALOG_ERROR
else:
Expand Down

0 comments on commit c9f1774

Please sign in to comment.