OfflineBookmarksPlugin. version 0.1
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Offline Bookmarks
|
name: Offline Bookmarks
|
||||||
short_name: offline_bookmarks
|
short_name: offline_bookmarks
|
||||||
#version: 0.1
|
version: 0.1
|
||||||
description: OfflineBookmarks
|
description: Saving bookmarks inside the plugin configuration file. Allows the use of locally stored bookmarks if the server does not support the storage of bookmarks (eg talk.google.com).
|
||||||
For icons in tooltip support, you need to install Gajim r14117 or above.
|
Support to import bookmarks from one account to another.
|
||||||
authors = Denis Fomin <fominde@gmail.com>
|
authors = Denis Fomin <fominde@gmail.com>
|
||||||
homepage = http://trac-plugins.gajim.org/wiki/OfflineBookmarksPlugin
|
homepage = http://trac-plugins.gajim.org/wiki/OfflineBookmarksPlugin
|
||||||
|
|||||||
@@ -3,22 +3,24 @@
|
|||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
|
import gtkgui_helpers
|
||||||
from plugins.gui import GajimPluginConfigDialog
|
from plugins.gui import GajimPluginConfigDialog
|
||||||
from plugins import GajimPlugin
|
from plugins import GajimPlugin
|
||||||
from plugins.helpers import log_calls
|
from plugins.helpers import log_calls
|
||||||
from common import ged
|
from common import ged
|
||||||
from common import gajim
|
from common import gajim
|
||||||
import gtkgui_helpers
|
|
||||||
from config import ManageBookmarksWindow
|
|
||||||
from common.i18n import Q_
|
from common.i18n import Q_
|
||||||
|
from config import ManageBookmarksWindow
|
||||||
|
|
||||||
|
|
||||||
class OfflineBookmarksPlugin(GajimPlugin):
|
class OfflineBookmarksPlugin(GajimPlugin):
|
||||||
|
|
||||||
@log_calls('OfflineBookmarksPlugin')
|
@log_calls('OfflineBookmarksPlugin')
|
||||||
def init(self):
|
def init(self):
|
||||||
self.description = _('OfflineBookmarks')
|
self.description = _('Saving bookmarks inside the plugin configuration '
|
||||||
self.pos_list = [_('after statusicon'), _('before avatar')]
|
'file. Allows the use of locally stored bookmarks if the server '
|
||||||
|
'does not support the storage of bookmarks (eg talk.google.com).\n'
|
||||||
|
'Support to import bookmarks from one account to another.')
|
||||||
|
|
||||||
self.events_handlers = {
|
self.events_handlers = {
|
||||||
'bookmarks-received': (ged.POSTGUI, self.bookmarks_received),
|
'bookmarks-received': (ged.POSTGUI, self.bookmarks_received),
|
||||||
@@ -362,7 +364,6 @@ class OfflineBookmarksPluginConfigDialog(GajimPluginConfigDialog,
|
|||||||
to_bookmarks.append(bm)
|
to_bookmarks.append(bm)
|
||||||
|
|
||||||
self.fill_treeview()
|
self.fill_treeview()
|
||||||
# select root iter
|
|
||||||
self.view.set_cursor((0,))
|
self.view.set_cursor((0,))
|
||||||
self.import_from_combo.set_active(-1)
|
self.import_from_combo.set_active(-1)
|
||||||
self.import_to_combo.set_active(-1)
|
self.import_to_combo.set_active(-1)
|
||||||
|
|||||||
Reference in New Issue
Block a user