Small fixes

This commit is contained in:
itdominator 2021-11-17 19:55:12 -06:00
parent ef63e5edf6
commit 85a9c5d899
3 changed files with 11 additions and 7 deletions

View File

@ -54,3 +54,4 @@ class Builtins:
# __builtins__.update({"event_system": Builtins()})
builtins.event_system = Builtins()
builtins.event_sleep_time = 0.2
builtins.debug = False

View File

@ -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)

View File

@ -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,9 +134,12 @@ class WindowMixin(TabMixin):
dest = view.get_current_directory()
if len(uris) > 0:
print(f"Target Move Path: {dest}")
if debug:
print(f"Target Move Path: {dest}")
for uri in uris:
print(f"URI: {uri}")
if debug:
print(f"URI: {uri}")
self.move_file(view, uri, dest)
# Reloads new directory