예제 #1
0
    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)
예제 #2
0
파일: account.py 프로젝트: i5o/sugar-gdrive
    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)
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
    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)
예제 #7
0
    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)
예제 #8
0
파일: account.py 프로젝트: tchx84/facebook
    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)
예제 #9
0
파일: account.py 프로젝트: tchx84/facebook
    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)
예제 #10
0
    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)
예제 #11
0
    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)
예제 #12
0
파일: palettes.py 프로젝트: sugarlabs/sugar
    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)
예제 #13
0
 def __init__(self, metadata, label, mount_point):
     MenuItem.__init__(self, label)
     self._metadata = metadata
     self.connect('activate', self.__copy_to_volume_cb, mount_point)
예제 #14
0
    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)
예제 #15
0
    def __init__(self, metadata):
        MenuItem.__init__(self, _('Clipboard'))

        self._temp_file_path = None
        self._metadata = metadata
        self.connect('activate', self.__copy_to_clipboard_cb)
예제 #16
0
 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)
예제 #17
0
 def __init__(self):
     MenuItem.__init__(self, text_label=ACCOUNT_NAME)
     self.show()
예제 #18
0
파일: palettes.py 프로젝트: gambogi/sugar-1
 def __init__(self, metadata, label, mount_point):
     MenuItem.__init__(self, label)
     self._metadata = metadata
     self.connect('activate', self.__copy_to_volume_cb, mount_point)
예제 #19
0
파일: palettes.py 프로젝트: sugarlabs/sugar
 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)
예제 #20
0
파일: palettes.py 프로젝트: gambogi/sugar-1
    def __init__(self, metadata):
        MenuItem.__init__(self, _('Clipboard'))

        self._temp_file_path = None
        self._metadata = metadata
        self.connect('activate', self.__copy_to_clipboard_cb)