def __add_new_activate_cb(self, bar, title):
     chooser = ActivityChooser()
     text = _("Choose an activity to start '%s' with") % title
     chooser.set_title(text)
     chooser.connect('activity-selected', self.__activity_selected_cb,
                     title)
     chooser.show_all()
Example #2
0
 def __add_new_activate_cb(self, bar, title):
     chooser = ActivityChooser()
     text = _("Choose an activity to start '%s' with") % title
     chooser.set_title(text)
     chooser.connect('activity-selected',
                     self.__activity_selected_cb,
                     title)
     chooser.show_all()
Example #3
0
    def __add_new_activate_cb(self, bar, title):
        shell_model = shell.get_model()
        activity = shell_model.get_active_activity()
        if activity.has_shell_window():
            return

        if shell.get_model().has_modal():
            return

        chooser = ActivityChooser()
        activity.push_shell_window(chooser)
        chooser.connect('hide', activity.pop_shell_window)

        text = _("Choose an activity to start '%s' with") % title
        chooser.set_title(text)
        chooser.connect('activity-selected', self.__activity_selected_cb,
                        title)
        chooser.show_all()
Example #4
0
    def __add_new_activate_cb(self, bar, title):
        shell_model = shell.get_model()
        activity = shell_model.get_active_activity()
        if activity.has_shell_window():
            return

        if shell.get_model().has_modal():
            return

        chooser = ActivityChooser()
        activity.push_shell_window(chooser)
        chooser.connect('hide', activity.pop_shell_window)

        text = _("Choose an activity to start '%s' with") % title
        chooser.set_title(text)
        chooser.connect('activity-selected',
                        self.__activity_selected_cb,
                        title)
        chooser.show_all()