@@ -914,21 +914,21 @@ def __init__(self, rc_dir, **kwargs):
914914 # create toolbar
915915 hbox = Gtk .Box (orientation = Gtk .Orientation .HORIZONTAL , spacing = 0 )
916916 button_specs = [
917- [DIFFUSE_STOCK_NEW_2WAY_MERGE , self .new_2_way_file_merge_cb , None , _ ('New 2-Way File Merge' )], # noqa: E501
918- [DIFFUSE_STOCK_NEW_3WAY_MERGE , self .new_3_way_file_merge_cb , None , _ ('New 3-Way File Merge' )], # noqa: E501
917+ ['new-2way-merge-symbolic' , self .new_2_way_file_merge_cb , None , _ ('New 2-Way File Merge' )], # noqa: E501
918+ ['new-3way-merge-symbolic' , self .new_3_way_file_merge_cb , None , _ ('New 3-Way File Merge' )], # noqa: E501
919919 [],
920920 ['system-run-symbolic' , self .button_cb , 'realign-all' , _ ('Realign All' )],
921921 ['go-top-symbolic' , self .button_cb , 'first-difference' , _ ('First Difference' )],
922922 ['go-up-symbolic' , self .button_cb , 'previous-difference' , _ ('Previous Difference' )],
923923 ['go-down-symbolic' , self .button_cb , 'next-difference' , _ ('Next Difference' )],
924924 ['go-bottom-symbolic' , self .button_cb , 'last-difference' , _ ('Last Difference' )],
925925 [],
926- ['go-last -symbolic' , self .button_cb , 'copy-selection-right' , _ ('Copy Selection Right' )], # noqa: E501
927- ['go-first- symbolic' , self .button_cb , 'copy-selection-left' , _ ('Copy Selection Left' )],
928- ['go-next -symbolic' , self .button_cb , 'copy-left-into-selection' , _ ('Copy Left Into Selection' )], # noqa: E501
929- ['go-previous -symbolic' , self .button_cb , 'copy-right-into-selection' , _ ('Copy Right Into Selection' )], # noqa: E501
930- [DIFFUSE_STOCK_LEFT_RIGHT , self .button_cb , 'merge-from-left-then-right' , _ ('Merge From Left Then Right' )], # noqa: E501
931- [DIFFUSE_STOCK_RIGHT_LEFT , self .button_cb , 'merge-from-right-then-left' , _ ('Merge From Right Then Left' )], # noqa: E501
926+ ['copy-selection-right -symbolic' , self .button_cb , 'copy-selection-right' , _ ('Copy Selection Right' )], # noqa: E501
927+ ['copy-selection-left- symbolic' , self .button_cb , 'copy-selection-left' , _ ('Copy Selection Left' )], # noqa: E501
928+ ['copy-left-into-selection -symbolic' , self .button_cb , 'copy-left-into-selection' , _ ('Copy Left Into Selection' )], # noqa: E501
929+ ['copy-right-into-selection -symbolic' , self .button_cb , 'copy-right-into-selection' , _ ('Copy Right Into Selection' )], # noqa: E501
930+ ['document-revert-rtl-symbolic' , self .button_cb , 'merge-from-left-then-right' , _ ('Merge From Left Then Right' )], # noqa: E501
931+ ['document-revert-symbolic' , self .button_cb , 'merge-from-right-then-left' , _ ('Merge From Right Then Left' )], # noqa: E501
932932 [],
933933 ['edit-undo-symbolic' , self .button_cb , 'undo' , _ ('Undo' )],
934934 ['edit-redo-symbolic' , self .button_cb , 'redo' , _ ('Redo' )],
@@ -1811,10 +1811,7 @@ def _append_buttons(box, size, specs):
18111811 button .set_relief (Gtk .ReliefStyle .NONE )
18121812 button .set_can_focus (False )
18131813 image = Gtk .Image ()
1814- if icon_name .startswith ('diffuse' ):
1815- image .set_from_stock (icon_name , size )
1816- else :
1817- image .set_from_icon_name (icon_name , size )
1814+ image .set_from_icon_name (icon_name , size )
18181815 button .add (image )
18191816 image .show ()
18201817 button .connect ('clicked' , cb , cb_data )
0 commit comments