Skip to content

Commit

Permalink
Remove stock items from Glade files
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Sep 9, 2024
1 parent 38368c8 commit 625e937
Show file tree
Hide file tree
Showing 22 changed files with 109 additions and 168 deletions.
2 changes: 1 addition & 1 deletion gramps/gui/editors/displaytabs/addrembedlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(self, dbstate, uistate, track, data, config_key):

def get_icon_name(self):
"""
Return the stock-id icon name associated with the display tab
Return the icon name associated with the display tab
"""
return "gramps-address"

Expand Down
2 changes: 1 addition & 1 deletion gramps/gui/editors/displaytabs/citationembedlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _connect_db_signals(self):

def get_icon_name(self):
"""
Return the stock-id icon name associated with the display tab
Return the icon name associated with the display tab
"""
return "gramps-source"

Expand Down
2 changes: 1 addition & 1 deletion gramps/gui/editors/displaytabs/notetab.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def share_button_clicked(self, obj):

def get_icon_name(self):
"""
Return the stock-id icon name associated with the display tab
Return the icon name associated with the display tab
"""
return "gramps-notes"

Expand Down
8 changes: 4 additions & 4 deletions gramps/gui/glade/styleeditor.glade
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@
</child>
<child>
<object class="GtkButton" id="help_btn">
<property name="label">gtk-help</property>
<property name="label" translatable="1">_Help</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="on_help_btn_style_clicked" swapped="no"/>
</object>
<packing>
Expand Down Expand Up @@ -1819,11 +1819,11 @@
</child>
<child>
<object class="GtkButton" id="help_btn_styles">
<property name="label">gtk-help</property>
<property name="label" translatable="1">_Help</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="on_help_btn_clicked" swapped="no"/>
</object>
<packing>
Expand Down
39 changes: 16 additions & 23 deletions gramps/plugins/docgen/gtkprint.glade
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<property name="toolbar-style">icons</property>
<child>
<object class="GtkToolButton" id="quit">
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Quit</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Closes print preview window</property>
<property name="stock-id">gtk-quit</property>
<signal name="clicked" handler="on_quit_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -36,11 +36,11 @@
</child>
<child>
<object class="GtkToolButton" id="print">
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Print</property>
<property name="use-underline">1</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Prints the current file</property>
<property name="stock-id">gtk-print</property>
<signal name="clicked" handler="on_print_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -60,13 +60,12 @@
</child>
<child>
<object class="GtkToolButton" id="first">
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_First</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Shows the first page</property>
<property name="is-important">True</property>
<property name="stock-id">gtk-goto-first</property>
<signal name="clicked" handler="on_first_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -76,13 +75,12 @@
</child>
<child>
<object class="GtkToolButton" id="prev">
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Back</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Shows previous page</property>
<property name="is-important">True</property>
<property name="stock-id">gtk-go-back</property>
<signal name="clicked" handler="on_prev_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -92,13 +90,12 @@
</child>
<child>
<object class="GtkToolButton" id="next">
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Forward</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Shows the next page</property>
<property name="is-important">True</property>
<property name="stock-id">gtk-go-forward</property>
<signal name="clicked" handler="on_next_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -108,13 +105,12 @@
</child>
<child>
<object class="GtkToolButton" id="last">
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Last</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Shows the last page</property>
<property name="is-important">True</property>
<property name="stock-id">gtk-goto-last</property>
<signal name="clicked" handler="on_last_clicked" swapped="no"/>
</object>
<packing>
Expand Down Expand Up @@ -189,7 +185,7 @@
</child>
<child>
<object class="GtkToggleToolButton" id="zoom_fit_width">
<property name="use-action-appearance">False</property>
<property name="icon-name">gramps-zoom-fit-width</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Zooms to fit the page width</property>
Expand All @@ -203,11 +199,10 @@
</child>
<child>
<object class="GtkToggleToolButton" id="zoom_best_fit">
<property name="use-action-appearance">False</property>
<property name="icon-name">gramps-zoom-best-fit</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Zooms to fit the whole page</property>
<property name="stock-id">gtk-zoom-fit</property>
<signal name="toggled" handler="on_zoom_best_fit_toggled" swapped="no"/>
</object>
<packing>
Expand All @@ -217,11 +212,10 @@
</child>
<child>
<object class="GtkToolButton" id="zoom_in">
<property name="use-action-appearance">False</property>
<property name="icon-name">gramps-zoom-in</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Zooms the page in</property>
<property name="stock-id">gtk-zoom-in</property>
<signal name="clicked" handler="on_zoom_in_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -231,11 +225,10 @@
</child>
<child>
<object class="GtkToolButton" id="zoom_out">
<property name="use-action-appearance">False</property>
<property name="icon-name">gramps-zoom-out</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Zooms the page out</property>
<property name="stock-id">gtk-zoom-out</property>
<signal name="clicked" handler="on_zoom_out_clicked" swapped="no"/>
</object>
<packing>
Expand Down
4 changes: 0 additions & 4 deletions gramps/plugins/docgen/gtkprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,9 @@ def __build_window(self):
self._pages_entry = glade_xml.get_object("entry")
self._pages_label = glade_xml.get_object("label")
self._zoom_fit_width_button = glade_xml.get_object("zoom_fit_width")
self._zoom_fit_width_button.set_stock_id("gramps-zoom-fit-width")
self._zoom_best_fit_button = glade_xml.get_object("zoom_best_fit")
self._zoom_best_fit_button.set_stock_id("gramps-zoom-best-fit")
self._zoom_in_button = glade_xml.get_object("zoom_in")
self._zoom_in_button.set_stock_id("gramps-zoom-in")
self._zoom_out_button = glade_xml.get_object("zoom_out")
self._zoom_out_button.set_stock_id("gramps-zoom-out")

# connect the signals
glade_xml.connect_signals(self)
Expand Down
5 changes: 2 additions & 3 deletions gramps/plugins/importer/importgedcom.glade
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="okbutton1">
<property name="label">gtk-ok</property>
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_OK</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">False</property>
<property name="use-stock">True</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down
10 changes: 4 additions & 6 deletions gramps/plugins/tool/changenames.glade
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ Select the names you wish Gramps to convert. </property>
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Help</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">True</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="on_help_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -86,13 +85,12 @@ Select the names you wish Gramps to convert. </property>
</child>
<child>
<object class="GtkButton" id="button6">
<property name="label">gtk-cancel</property>
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Cancel</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">True</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="destroy_passed_object" object="changenames" swapped="yes"/>
</object>
<packing>
Expand Down
10 changes: 4 additions & 6 deletions gramps/plugins/tool/changetypes.glade
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="button5">
<property name="label">gtk-cancel</property>
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Cancel</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">False</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="on_close_clicked" object="changetypes" swapped="yes"/>
</object>
<packing>
Expand All @@ -36,13 +35,12 @@
</child>
<child>
<object class="GtkButton" id="button3">
<property name="label">gtk-ok</property>
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_OK</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">False</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="on_apply_clicked" object="changetypes" swapped="yes"/>
</object>
<packing>
Expand Down
5 changes: 2 additions & 3 deletions gramps/plugins/tool/check.glade
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="close">
<property name="label">gtk-close</property>
<property name="use-action-appearance">False</property>
<property name="label" translatable="1">_Close</property>
<property name="use-underline">1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">False</property>
<property name="use-stock">True</property>
<signal name="clicked" handler="destroy_passed_object" object="check" swapped="yes"/>
</object>
<packing>
Expand Down
Loading

0 comments on commit 625e937

Please sign in to comment.