3838
3939from urllib .parse import urlparse
4040
41+ # pylint: disable-next=no-name-in-module
4142from diffuse import constants
43+
4244from diffuse import utils
4345from diffuse .dialogs import AboutDialog , FileChooserDialog , NumericDialog , SearchDialog
4446from diffuse .preferences import Preferences
@@ -931,11 +933,11 @@ def saveState(self, statepath):
931933 utils .logDebug (f'Error writing { statepath } .' )
932934
933935 # select viewer for a newly selected file in the confirm close dialogue
934- def __confirmClose_row_activated_cb (self , tree , path , col , model ):
936+ def _confirmClose_row_activated_cb (self , tree , path , col , model ):
935937 self .notebook .set_current_page (self .notebook .page_num (model [path ][3 ]))
936938
937939 # toggle save state for a file listed in the confirm close dialogue
938- def __confirmClose_toggle_cb (self , cell , path , model ):
940+ def _confirmClose_toggle_cb (self , cell , path , model ):
939941 model [path ][0 ] = not model [path ][0 ]
940942
941943 # returns True if the list of viewers can be closed. The user will be
@@ -968,7 +970,7 @@ def confirmCloseViewers(self, viewers):
968970 sw .set_policy (Gtk .PolicyType .AUTOMATIC , Gtk .PolicyType .AUTOMATIC )
969971 treeview = Gtk .TreeView .new_with_model (model )
970972 r = Gtk .CellRendererToggle .new ()
971- r .connect ('toggled' , self .__confirmClose_toggle_cb , model )
973+ r .connect ('toggled' , self ._confirmClose_toggle_cb , model )
972974 column = Gtk .TreeViewColumn (None , r )
973975 column .add_attribute (r , 'active' , 0 )
974976 treeview .append_column (column )
@@ -982,7 +984,7 @@ def confirmCloseViewers(self, viewers):
982984 column .set_resizable (True )
983985 column .set_sort_column_id (2 )
984986 treeview .append_column (column )
985- treeview .connect ('row-activated' , self .__confirmClose_row_activated_cb , model )
987+ treeview .connect ('row-activated' , self ._confirmClose_row_activated_cb , model )
986988 sw .add (treeview )
987989 treeview .show ()
988990 dialog .vbox .pack_start (sw , True , True , 0 ) # pylint: disable=no-member
0 commit comments