Remove various unused bits
This commit is contained in:
parent
6c4a9b34a1
commit
9f71aa864f
@ -18,7 +18,6 @@
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from gi.repository import Gtk
|
|
||||||
from gi.repository import GConf
|
from gi.repository import GConf
|
||||||
from gi.repository import WebKit2
|
from gi.repository import WebKit2
|
||||||
from gwebsockets.server import Server
|
from gwebsockets.server import Server
|
||||||
|
@ -121,7 +121,7 @@ class BoundMethodWeakref(object):
|
|||||||
except Exception, e:
|
except Exception, e:
|
||||||
try:
|
try:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
except AttributeError, err:
|
except AttributeError:
|
||||||
print '''Exception during saferef %s cleanup function %s: %s'''%(
|
print '''Exception during saferef %s cleanup function %s: %s'''%(
|
||||||
self, function, e
|
self, function, e
|
||||||
)
|
)
|
||||||
|
@ -545,7 +545,6 @@ class ColorToolButton(Gtk.ToolItem):
|
|||||||
title = GObject.property(type=str, getter=get_title, setter=set_title)
|
title = GObject.property(type=str, getter=get_title, setter=set_title)
|
||||||
|
|
||||||
def do_draw(self, cr):
|
def do_draw(self, cr):
|
||||||
child = self.get_child()
|
|
||||||
if self._palette and self._palette.is_up():
|
if self._palette and self._palette.is_up():
|
||||||
allocation = self.get_allocation()
|
allocation = self.get_allocation()
|
||||||
# draw a black background, has been done by the engine before
|
# draw a black background, has been done by the engine before
|
||||||
|
@ -131,7 +131,6 @@ class RadioToolButton(Gtk.RadioToolButton):
|
|||||||
type=object, setter=set_palette_invoker, getter=get_palette_invoker)
|
type=object, setter=set_palette_invoker, getter=get_palette_invoker)
|
||||||
|
|
||||||
def do_draw(self, cr):
|
def do_draw(self, cr):
|
||||||
child = self.get_child()
|
|
||||||
if self.palette and self.palette.is_up():
|
if self.palette and self.palette.is_up():
|
||||||
allocation = self.get_allocation()
|
allocation = self.get_allocation()
|
||||||
# draw a black background, has been done by the engine before
|
# draw a black background, has been done by the engine before
|
||||||
|
@ -125,7 +125,6 @@ class ToggleToolButton(Gtk.ToggleToolButton):
|
|||||||
getter=get_accelerator)
|
getter=get_accelerator)
|
||||||
|
|
||||||
def do_draw(self, cr):
|
def do_draw(self, cr):
|
||||||
child = self.get_child()
|
|
||||||
if self.palette and self.palette.is_up():
|
if self.palette and self.palette.is_up():
|
||||||
allocation = self.get_allocation()
|
allocation = self.get_allocation()
|
||||||
# draw a black background, has been done by the engine before
|
# draw a black background, has been done by the engine before
|
||||||
|
@ -163,7 +163,6 @@ class ToolButton(Gtk.ToolButton):
|
|||||||
type=object, setter=set_palette_invoker, getter=get_palette_invoker)
|
type=object, setter=set_palette_invoker, getter=get_palette_invoker)
|
||||||
|
|
||||||
def do_draw(self, cr):
|
def do_draw(self, cr):
|
||||||
child = self.get_child()
|
|
||||||
if self.palette and self.palette.is_up():
|
if self.palette and self.palette.is_up():
|
||||||
allocation = self.get_allocation()
|
allocation = self.get_allocation()
|
||||||
# draw a black background, has been done by the engine before
|
# draw a black background, has been done by the engine before
|
||||||
|
@ -35,7 +35,6 @@ class TestUITree(unittest.TestCase):
|
|||||||
|
|
||||||
def show_window1():
|
def show_window1():
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import GLib
|
|
||||||
|
|
||||||
window = Gtk.Window()
|
window = Gtk.Window()
|
||||||
window.set_title("window1")
|
window.set_title("window1")
|
||||||
|
Loading…
Reference in New Issue
Block a user