Ejemplo n.º 1
0
def _create_activities_palette():
    from gi.repository import Gtk
    from jarabe.desktop.activitieslist import ActivityListPalette

    palette = ActivityListPalette(MockActivityInfo())
    palette.popup()

    Gtk.main()
Ejemplo n.º 2
0
def _create_activities_palette():
    from gi.repository import Gtk
    from jarabe.desktop.activitieslist import ActivityListPalette

    palette = ActivityListPalette(MockActivityInfo())
    palette.popup()

    Gtk.main()
Ejemplo n.º 3
0
        return "mock"

    def get_activity_version(self):
        return 1

    def get_is_favorite(self):
        return False

    def get_icon(self):
        return os.path.join(data_dir, "activity.svg")

    def get_name(self):
        return "mock"

    def get_path(self):
        return "mock"

    def is_user_activity(self):
        return True


os.environ["SUGAR_ACTIVITIES_DEFAULTS"] = \
    os.path.join(base_dir, "data", "activities.defaults")
os.environ["SUGAR_MIME_DEFAULTS"] = \
    os.path.join(base_dir, "data", "mime.defaults")

palette = ActivityListPalette(MockActivityInfo())
palette.popup()

Gtk.main()