Move tooltips module into gtk folder
This commit is contained in:
parent
a1701301f7
commit
5c97f0a91c
|
@ -33,7 +33,6 @@ from gi.repository import Pango
|
|||
from nbxmpp.protocol import NS_JINGLE_FILE_TRANSFER_5
|
||||
|
||||
from gajim import gtkgui_helpers
|
||||
from gajim import tooltips
|
||||
|
||||
from gajim.common import app
|
||||
from gajim.common import helpers
|
||||
|
@ -50,6 +49,7 @@ from gajim.gtk.dialogs import FTOverwriteConfirmationDialog
|
|||
from gajim.gtk.dialogs import NonModalConfirmationDialog
|
||||
from gajim.gtk.filechoosers import FileSaveDialog
|
||||
from gajim.gtk.filechoosers import FileChooserDialog
|
||||
from gajim.gtk.tooltips import FileTransfersTooltip
|
||||
|
||||
log = logging.getLogger('gajim.filetransfer_window')
|
||||
|
||||
|
@ -152,7 +152,7 @@ class FileTransfersWindow:
|
|||
# Tooltip
|
||||
self.tree.connect('query-tooltip', self._query_tooltip)
|
||||
self.tree.set_has_tooltip(True)
|
||||
self.tooltip = tooltips.FileTransfersTooltip()
|
||||
self.tooltip = FileTransfersTooltip()
|
||||
|
||||
self.file_transfers_menu = self.xml.get_object('file_transfers_menu')
|
||||
self.open_folder_menuitem = self.xml.get_object('open_folder_menuitem')
|
||||
|
|
|
@ -43,7 +43,6 @@ from gi.repository import Gio
|
|||
from gajim import gtkgui_helpers
|
||||
from gajim import gui_menu_builder
|
||||
from gajim import message_control
|
||||
from gajim import tooltips
|
||||
from gajim import config
|
||||
from gajim import vcard
|
||||
from gajim import dataforms_widget
|
||||
|
@ -77,6 +76,7 @@ from gajim.gtk.dialogs import InputDialog
|
|||
from gajim.gtk.dialogs import ChangeNickDialog
|
||||
from gajim.gtk.filechoosers import AvatarChooserDialog
|
||||
from gajim.gtk.add_contact import AddNewContactWindow
|
||||
from gajim.gtk.tooltips import GCTooltip
|
||||
|
||||
|
||||
log = logging.getLogger('gajim.groupchat_control')
|
||||
|
@ -495,7 +495,7 @@ class GroupchatControl(ChatControlBase):
|
|||
self.banner_actionbar.pack_start(self.subject_button)
|
||||
|
||||
# GC Roster tooltip
|
||||
self.gc_tooltip = tooltips.GCTooltip()
|
||||
self.gc_tooltip = GCTooltip()
|
||||
|
||||
self.control_menu = gui_menu_builder.get_groupchat_menu(self.control_id)
|
||||
settings_menu = self.xml.get_object('settings_menu')
|
||||
|
|
|
@ -24,13 +24,13 @@ import os
|
|||
from gi.repository import Gtk
|
||||
|
||||
from gajim import dialogs
|
||||
from gajim import tooltips
|
||||
from gajim import gtkgui_helpers
|
||||
from gajim.common import app
|
||||
from gajim.common import helpers
|
||||
from gajim.common.i18n import _
|
||||
from gajim.gtk.util import get_builder
|
||||
from gajim.gtk.single_message import SingleMessageWindow
|
||||
from gajim.gtk.tooltips import NotificationAreaTooltip
|
||||
|
||||
|
||||
class StatusIcon:
|
||||
|
@ -50,7 +50,7 @@ class StatusIcon:
|
|||
self._ui.connect_signals(self)
|
||||
self.popup_menus = []
|
||||
self.status_icon = None
|
||||
self.tooltip = tooltips.NotificationAreaTooltip()
|
||||
self.tooltip = NotificationAreaTooltip()
|
||||
|
||||
def subscribe_events(self):
|
||||
"""
|
||||
|
|
|
@ -41,7 +41,7 @@ from gajim.common import helpers
|
|||
from gajim.common.i18n import Q_
|
||||
from gajim.common.i18n import _
|
||||
|
||||
log = logging.getLogger('gajim.tooltips')
|
||||
log = logging.getLogger('gajim.gtk.tooltips')
|
||||
|
||||
|
||||
class StatusTable:
|
|
@ -50,7 +50,6 @@ from gajim import disco
|
|||
from gajim import gtkgui_helpers
|
||||
from gajim import gui_menu_builder
|
||||
from gajim import cell_renderer_image
|
||||
from gajim import tooltips
|
||||
from gajim import message_control
|
||||
from gajim import adhoc_commands
|
||||
|
||||
|
@ -82,6 +81,7 @@ from gajim.gtk.account_wizard import AccountCreationWizard
|
|||
from gajim.gtk.service_registration import ServiceRegistration
|
||||
from gajim.gtk.history import HistoryWindow
|
||||
from gajim.gtk.accounts import AccountsWindow
|
||||
from gajim.gtk.tooltips import RosterTooltip
|
||||
|
||||
|
||||
log = logging.getLogger('gajim.roster')
|
||||
|
@ -5841,7 +5841,7 @@ class RosterWindow:
|
|||
|
||||
self.collapsed_rows = app.config.get('collapsed_rows').split('\t')
|
||||
self.tree.set_has_tooltip(True)
|
||||
self.tree.set_tooltip_window(tooltips.RosterTooltip(self.window))
|
||||
self.tree.set_tooltip_window(RosterTooltip(self.window))
|
||||
self.current_tooltip = None
|
||||
self.tree.connect('query-tooltip', self.query_tooltip)
|
||||
# Workaround: For strange reasons signal is behaving like row-changed
|
||||
|
|
Loading…
Reference in New Issue