Skip to content

Commit

Permalink
fix(Factory): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
t00m committed May 31, 2024
1 parent 52857e4 commit 6bf01a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion MiAZ/frontend/desktop/services/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def _on_factory_bind(factory, list_item):
label.set_markup('%s' % item.title)

def _on_search_changed(search_entry, item_filter):
text = search_entry.get_text()
item_filter.changed(Gtk.FilterChange.DIFFERENT)

def _do_filter(item, filter_list_model, search_entry):
Expand Down
18 changes: 0 additions & 18 deletions MiAZ/frontend/desktop/widgets/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,24 +216,7 @@ def _on_selection_changed(self, selection, position, n_items):
self.selected_items.append(item)
label = self.btnDocsSel.get_child()
docs = self.util.get_files(self.repository.docs)
# ~ self.log.debug(', '.join([item.id for item in self.selected_items]))
label.set_markup("<small>%d</small> / %d / <big>%d</big>" % (len(self.selected_items), len(model), len(docs)))
# ~ self.app.statusbar_message("Selected %d of %d documents in current view (total documents: %d)" % (len(self.selected_items), len(model), len(docs)))
# ~ if len(self.selected_items) == 1:
# ~ menu = self.app.get_widget('workspace-menu-single')
# ~ self.popDocsSel.set_menu_model(menu)
# ~ else:
# ~ menu = self.app.get_widget('workspace-menu-selection')
# ~ self.popDocsSel.set_menu_model(menu)

def _setup_searchbar(self):
# ~ window = self.app.get_widget('window')
# ~ mainbox = self.app.get_widget('window-mainbox')
# ~ search = self.app.add_widget('searchbar', SearchBar(window))
# ~ self.append(mainbox)
# ~ searchbar = self.app.get_widget('searchbar')
# ~ searchbar.set_callback(self._on_filter_selected)
pass

def _setup_toolbar_top(self):
hdb_left = self.app.get_widget('headerbar-left-box')
Expand Down Expand Up @@ -363,7 +346,6 @@ def _setup_workspace(self):
self.toolbar_filters = self._setup_toolbar_filters()
self.app.add_widget('workspace-toolbar-filters', self.toolbar_filters)
self._setup_toolbar_top()
self._setup_searchbar()
frmView = self._setup_columnview()
head.append(self.toolbar_filters)
body.append(frmView)
Expand Down

0 comments on commit 6bf01a3

Please sign in to comment.