From: Daiki Ueno Date: Fri, 2 Mar 2012 01:27:47 +0000 (+0900) Subject: ibus-setup: minor typo fixes of GI enum names X-Git-Tag: 1.4.99.20121006~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07ec3b4c930445731708c2006a65dda11acfcc78;p=platform%2Fupstream%2Fibus.git ibus-setup: minor typo fixes of GI enum names BUG=none TEST=manual Review URL: https://codereview.appspot.com/5710049 --- diff --git a/setup/enginetreeview.py b/setup/enginetreeview.py index 8b3ef9e..8ade7db 100644 --- a/setup/enginetreeview.py +++ b/setup/enginetreeview.py @@ -148,9 +148,9 @@ class EngineTreeView(Gtk.TreeView): renderer.set_property("text", layout) if self.__model.get_path(it).get_indices()[0] == 0: #default engine - renderer.set_property("weight", Pango.WEIGHT_BOLD) + renderer.set_property("weight", Pango.Weight.BOLD) else: - renderer.set_property("weight", Pango.WEIGHT_NORMAL) + renderer.set_property("weight", Pango.Weight.NORMAL) def __engine_layout_changed_cb(self, combo, path, it): return diff --git a/setup/main.py b/setup/main.py index f9c7e5e..274b25a 100644 --- a/setup/main.py +++ b/setup/main.py @@ -392,7 +392,7 @@ class Setup(object): try: self.__bus.register_start_engine(data[DATA_LANG], data[DATA_NAME]) except Exception, e: - dlg = Gtk.MessageDialog(type = Gtk.MESSAGE_ERROR, + dlg = Gtk.MessageDialog(type = Gtk.MessageType.ERROR, buttons = Gtk.ButtonsType.CLOSE, message_format = str(e)) dlg.run() @@ -403,7 +403,7 @@ class Setup(object): try: self.__bus.register_stop_engine(data[DATA_LANG], data[DATA_NAME]) except Exception, e: - dlg = Gtk.MessageDialog(type = Gtk.MESSAGE_ERROR, + dlg = Gtk.MessageDialog(type = Gtk.MessageType.ERROR, buttons = Gtk.ButtonsType.CLOSE, message_format = str(e)) dlg.run()