811
811
# and the subcat view as well...
812
812
if self.subcategories_view:
813
813
self.subcategories_view.refresh_apps()
816
def get_test_window():
817
from softwarecenter.testutils import (get_test_db,
819
get_test_install_backend,
820
get_test_gtk3_viewmanager,
822
get_test_gtk3_icon_cache,
824
# needed because available pane will try to get it
825
vm = get_test_gtk3_viewmanager()
826
vm # make pyflakes happy
828
cache = get_test_pkg_info()
829
datadir = get_test_datadir()
830
icons = get_test_gtk3_icon_cache()
831
backend = get_test_install_backend()
833
# create global AppManager instance
834
from softwarecenter.ui.gtk3.session.appmanager import ApplicationManager
835
ApplicationManager(db, backend, icons)
837
navhistory_back_action = Gtk.Action("navhistory_back_action", "Back",
839
navhistory_forward_action = Gtk.Action("navhistory_forward_action",
840
"Forward", "Forward", None)
842
w = AvailablePane(cache, db, 'Ubuntu', icons, datadir,
843
navhistory_back_action, navhistory_forward_action)
848
win.connect("destroy", Gtk.main_quit)
850
win.set_size_request(800, 600)
853
# this is used later in tests
854
win.set_data("pane", w)
858
if __name__ == "__main__":
859
win = get_test_window()