Bringing to latest changes #3

Merged
itdominator merged 41 commits from develop into master 2022-07-16 19:14:30 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit 09a85abb79 - Show all commits

View File

@ -36,13 +36,13 @@ class WindowMixin(TabMixin):
try:
if not self.is_pane4_hidden:
icon_grid = self.window4.get_children()[1].get_children()[0]
icon_grid = self.window4.get_children()[-1].get_children()[0]
elif not self.is_pane3_hidden:
icon_grid = self.window3.get_children()[1].get_children()[0]
icon_grid = self.window3.get_children()[-1].get_children()[0]
elif not self.is_pane2_hidden:
icon_grid = self.window2.get_children()[1].get_children()[0]
icon_grid = self.window2.get_children()[-1].get_children()[0]
elif not self.is_pane1_hidden:
icon_grid = self.window1.get_children()[1].get_children()[0]
icon_grid = self.window1.get_children()[-1].get_children()[0]
icon_grid.event(Gdk.Event().new(type=Gdk.EventType.BUTTON_RELEASE))
icon_grid.event(Gdk.Event().new(type=Gdk.EventType.BUTTON_RELEASE))

View File

@ -30,16 +30,16 @@ class Window:
def pop_tab(self):
self._tabs.pop()
def delete_tab_by_id(self, vid):
def delete_tab_by_id(self, tid):
for tab in self._tabs:
if tab.get_id() == vid:
if tab.get_id() == tid:
self._tabs.remove(tab)
break
def get_tab_by_id(self, vid):
def get_tab_by_id(self, tid):
for tab in self._tabs:
if tab.get_id() == vid:
if tab.get_id() == tid:
return tab
def get_tab_by_index(self, index):