Permalink
Browse files

fixed minor problems

  • Loading branch information...
1 parent a81020d commit d6ce6c25dc4c20944302fdac44065f611d5d8555 @xnreformer xnreformer committed Nov 12, 2011
Showing with 6 additions and 5 deletions.
  1. +4 −4 hotot-gir/hotot.py
  2. +1 −0 hotot-gir/inspector.py
  3. +1 −1 hotot-gir/view.py
View
@@ -43,15 +43,15 @@ def update_status(self, text):
@dbus.service.method(dbus_interface=HOTOT_DBUS_NAME, in_signature="", out_signature="")
def show(self):
- return self.app.window.present()
+ self.app.window.present()
@dbus.service.method(dbus_interface=HOTOT_DBUS_NAME, in_signature="", out_signature="")
def hide(self):
- return self.app.window.hide()
+ self.app.window.hide()
@dbus.service.method(dbus_interface=HOTOT_DBUS_NAME, in_signature="", out_signature="")
def quit(self):
- return self.app.quit()
+ self.app.quit()
class Hotot:
@@ -351,7 +351,7 @@ def on_sign_out(self):
def usage():
print '''Usage: hotot [OPTION...]
- -d, --dev enable dev tools
+ -d, --dev enable hotot inspector
-h, --help show this help info'''
def main():
View
@@ -23,6 +23,7 @@ def __init__ (self, inspector):
"""initialize the WebInspector class"""
Gtk.Window.__init__(self)
self.set_default_size(600, 480)
+ self.set_title("Hotot Inspector")
self._web_inspector = inspector
View
@@ -48,7 +48,7 @@ def __init__(self, devtools=False):
templatefile = utils.get_ui_object(config.TEMPLATE)
template = open(templatefile, 'rb').read()
- self.load_html_string(template, 'file://' + templatefile)
+ self.load_string(template, 'text/html', 'UTF-8', 'file://' + templatefile)
def on_navigation_requested(self, view, webframe, request):
return self.handle_uri(request.get_uri())

0 comments on commit d6ce6c2

Please sign in to comment.