Small fixes
This commit is contained in:
parent
ef63e5edf6
commit
85a9c5d899
|
@ -54,3 +54,4 @@ class Builtins:
|
|||
# __builtins__.update({"event_system": Builtins()})
|
||||
builtins.event_system = Builtins()
|
||||
builtins.event_sleep_time = 0.2
|
||||
builtins.debug = False
|
||||
|
|
|
@ -99,7 +99,7 @@ class WidgetMixin:
|
|||
|
||||
close.connect("button_release_event", self.close_tab)
|
||||
tab.show_all()
|
||||
# tid.hide()
|
||||
tid.hide()
|
||||
return tab
|
||||
|
||||
def create_grid_iconview_widget(self, view, wid):
|
||||
|
@ -121,7 +121,7 @@ class WidgetMixin:
|
|||
grid.set_spacing(1)
|
||||
grid.set_column_spacing(2)
|
||||
|
||||
grid.connect("button_release_event", self.grid_icon_single_click)
|
||||
grid.connect("button_release_event", self.grid_icon_single_left_click)
|
||||
grid.connect("item-activated", self.grid_icon_double_left_click)
|
||||
grid.connect("drag-data-get", self.grid_on_drag_set)
|
||||
grid.connect("drag-data-received", self.grid_on_drag_data_received)
|
||||
|
@ -161,8 +161,8 @@ class WidgetMixin:
|
|||
grid.set_enable_tree_lines(False)
|
||||
grid.set_visible(True)
|
||||
|
||||
# grid.connect("button_release_event", self.icon_single_click)
|
||||
# grid.connect("item-activated", self.icon_double_left_click)
|
||||
grid.connect("button_release_event", self.grid_icon_single_left_click)
|
||||
grid.connect("item-activated", self.grid_icon_double_left_click)
|
||||
|
||||
column.set_visible(True)
|
||||
icon.set_visible(True)
|
||||
|
|
|
@ -31,7 +31,7 @@ class WindowMixin(TabMixin):
|
|||
view = self.get_fm_window(wid).get_view_by_id(tid)
|
||||
path_entry.set_text(view.get_current_directory())
|
||||
|
||||
def grid_icon_single_click(self, widget, eve):
|
||||
def grid_icon_single_left_click(self, widget, eve):
|
||||
try:
|
||||
wid, tid = widget.get_name().split("|")
|
||||
self.window_controller.set_active_data(wid, tid)
|
||||
|
@ -134,8 +134,11 @@ class WindowMixin(TabMixin):
|
|||
dest = view.get_current_directory()
|
||||
|
||||
if len(uris) > 0:
|
||||
if debug:
|
||||
print(f"Target Move Path: {dest}")
|
||||
|
||||
for uri in uris:
|
||||
if debug:
|
||||
print(f"URI: {uri}")
|
||||
self.move_file(view, uri, dest)
|
||||
|
||||
|
|
Loading…
Reference in New Issue