def __init__(self, account, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._account = account self.set_image( Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self._get_uid_list = get_uid_list self.connect('activate', self.__share_menu_cb)
def __init__(self, account, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_DESCRIPTION) self._account = account self.set_image(Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self._get_uid_list = get_uid_list self.connect('activate', self.upload_file)
def __init__(self, account, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._account = account self.set_image(Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self._get_uid_list = get_uid_list self.connect('activate', self.__share_menu_cb)
def __init__(self, account, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_DESCRIPTION) self._account = account self.set_image( Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self._get_uid_list = get_uid_list self.connect('activate', self.upload_file)
def __init__(self, webaccount, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._account = webaccount self._is_active = is_active self.set_image(Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self.set_sensitive(False)
def __init__(self, webaccount, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._account = webaccount self._is_active = is_active self.set_image( Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self.set_sensitive(False)
def __init__(self, account, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._facebook = account if is_active: icon_name = 'facebook-share' else: icon_name = 'facebook-share-insensitive' self.set_image(Icon(icon_name=icon_name, icon_size=Gtk.IconSize.MENU)) self.show() self._get_uid_list = get_uid_list self.connect('activate', self._facebook_share_menu_cb)
def __init__(self, account, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._facebook = account self._is_active = is_active self._metadata = None if is_active: icon_name = 'facebook-refresh' else: icon_name = 'facebook-refresh-insensitive' self.set_image(Icon(icon_name=icon_name, icon_size=Gtk.IconSize.MENU)) self.show() self.connect('activate', self._fb_refresh_menu_clicked_cb)
def __init__(self, account, metadata, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._facebook = account if is_active: icon_name = 'facebook-share' else: icon_name = 'facebook-share-insensitive' self.set_image(Icon(icon_name=icon_name, icon_size=Gtk.IconSize.MENU)) self.show() self._metadata = metadata self._comment = '%s: %s' % (self._get_metadata_by_key('title'), self._get_metadata_by_key('description')) self.connect('activate', self._facebook_share_menu_cb)
def __init__(self, webaccount, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._account = webaccount logging.debug('SHAREMENU INIT %s' % (self._account.url_cache)) self._activity_id = None self._shared_activity = None self._join_id = None self._tubes_chan = None self.set_image( Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self.set_sensitive(self.get_shared_activity_model()) self._get_uid_list = get_uid_list # In this callback join the Journal Share activity self.connect('activate', self.__share_menu_cb)
def __init__(self, webaccount, get_uid_list, is_active): MenuItem.__init__(self, ACCOUNT_NAME) self._account = webaccount logging.debug('SHAREMENU INIT %s' % (self._account.url_cache)) self._activity_id = None self._shared_activity = None self._join_id = None self._tubes_chan = None self.set_image(Icon(icon_name=ACCOUNT_ICON, icon_size=Gtk.IconSize.MENU)) self.show() self.set_sensitive(self.get_shared_activity_model()) self._get_uid_list = get_uid_list # In this callback join the Journal Share activity self.connect('activate', self.__share_menu_cb)
def __init__(self, get_uid_list_cb): MenuItem.__init__(self, _('Clipboard')) self._temp_file_path = None self._get_uid_list_cb = get_uid_list_cb self.connect('activate', self.__copy_to_clipboard_cb)
def __init__(self, metadata, label, mount_point): MenuItem.__init__(self, label) self._metadata = metadata self.connect('activate', self.__copy_to_volume_cb, mount_point)
def __init__(self, metadata): MenuItem.__init__(self, _('Clipboard')) self._temp_file_path = None self._metadata = metadata self.connect('activate', self.__copy_to_clipboard_cb)
def __init__(self, journalactivity, get_uid_list_cb, label, mount_point): MenuItem.__init__(self, label) self._get_uid_list_cb = get_uid_list_cb self._journalactivity = journalactivity self._mount_point = mount_point self.connect('activate', self.__copy_to_volume_cb)
def __init__(self): MenuItem.__init__(self, text_label=ACCOUNT_NAME) self.show()