debug-viewer: cleanup imports in plugins

Don't use * imports. Don't rely on package level imports.
This commit is contained in:
Stefan Sauer 2016-09-28 20:34:53 +02:00
parent 032fccd7af
commit 3da48e7d61
4 changed files with 10 additions and 6 deletions

View file

@ -19,8 +19,11 @@
"""GStreamer Debug Viewer file properties plugin."""
from GstDebugViewer.Plugins import *
import logging
from GstDebugViewer.Plugins import FeatureBase, PluginBase
from gettext import gettext as _
from gi.repository import Gtk
class FilePropertiesSentinel (object):

View file

@ -22,8 +22,9 @@
import logging
from GstDebugViewer import Common, Data, GUI
from GstDebugViewer.Plugins import *
from GstDebugViewer.Plugins import FeatureBase, PluginBase, _N
from gettext import gettext as _
from gi.repository import GObject, GLib
from gi.repository import Gtk

View file

@ -23,8 +23,9 @@ import logging
from GstDebugViewer import Common, Data
from GstDebugViewer.GUI.colors import LevelColorThemeTango, ThreadColorThemeTango
from GstDebugViewer.Plugins import *
from GstDebugViewer.Plugins import FeatureBase, PluginBase
from gettext import gettext as _
from gi.repository import GObject
from gi.repository import Gtk
from gi.repository import Gdk
@ -356,7 +357,7 @@ class VerticalTimelineWidget (Gtk.DrawingArea):
self.queue_draw ()
return False
def do_get_preferred_width (self):
return 64, 64 # FIXME
@ -533,7 +534,7 @@ class TimelineWidget (Gtk.DrawingArea):
ctx.set_source_surface (self.__offscreen)
ctx.rectangle (rect.x, rect.y, rect.width, rect.height)
ctx.paint ()
self.__draw_position (ctx, clip = rect)
def update (self, model):

View file

@ -22,7 +22,6 @@
__all__ = ["_", "_N", "FeatureBase", "PluginBase"]
import os.path
from gettext import gettext as _
def _N (s): return s