Skip to content

Commit

Permalink
Further the new AppRow class
Browse files Browse the repository at this point in the history
  • Loading branch information
heliguy4599 committed Nov 10, 2023
1 parent f70f87f commit 8cff983
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/app_row_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

class AppRow(Adw.ActionRow):


def __init__(self, parent_window, host_flatpaks, flatpak_index, **kwargs):
super().__init__(**kwargs)
self.my_utils = myUtils(parent_window)
Expand All @@ -31,10 +32,10 @@ def __init__(self, parent_window, host_flatpaks, flatpak_index, **kwargs):
properties_button.connect("clicked", lambda *_: PropertiesWindow(flatpak_index, host_flatpaks, parent_window))
self.add_suffix(properties_button)

select_flatpak_tickbox = Gtk.CheckButton() # visible=self.in_batch_mode
select_flatpak_tickbox.add_css_class("selection-mode")
# select_flatpak_tickbox.connect("toggled", self.rowSelectHandler, index)
self.add_suffix(select_flatpak_tickbox)
self.select_flatpak_tickbox = Gtk.CheckButton() # visible=self.in_batch_mode
self.select_flatpak_tickbox.add_css_class("selection-mode")
# self.select_flatpak_tickbox.connect("toggled", self.rowSelectHandler, index)
self.add_suffix(self.select_flatpak_tickbox)

row_menu = Gtk.MenuButton(icon_name="view-more-symbolic", valign=Gtk.Align.CENTER) # visible=not self.in_batch_mode
row_menu.add_css_class("flat")
Expand Down
2 changes: 1 addition & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ def generate_list_of_flatpaks(self):
self.batchActionsEnable(False)

cool_row = AppRow(self, self.host_flatpaks, 7)
print(cool_row.app_id)
self.flatpaks_list_box.append(cool_row)
cool_row.select_flatpak_tickbox.set_active(True)

def openDataFolder(self, path):
try:
Expand Down

0 comments on commit 8cff983

Please sign in to comment.