Set ibus-setup-hangul window icon
authorChoe Hwanjin <choe.hwanjin@gmail.com>
Sat, 21 Mar 2009 14:42:58 +0000 (23:42 +0900)
committerChoe Hwanjin <choe.hwanjin@gmail.com>
Sat, 21 Mar 2009 14:42:58 +0000 (23:42 +0900)
setup/Makefile.am
setup/config.py.in
setup/main.py

index 223811e..7337c80 100644 (file)
@@ -19,6 +19,7 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 setup_hangul_PYTHON = \
+       config.py \
        main.py \
        setup.glade \
        $(NULL)
index afa73b6..93f9d9a 100644 (file)
@@ -19,4 +19,5 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 prefix = "@prefix@"
+datadir = "@prefix@/share"
 localedir = "@prefix@/share/locale"
index 2238ea1..31621c2 100644 (file)
@@ -55,6 +55,8 @@ class Setup ():
                break
 
        self.__window = self.__xml.get_widget("dialog")
+       icon_file = os.path.join(config.datadir, "ibus-hangul", "icons", "ibus-hangul.svg")
+       self.__window.set_icon_from_file(icon_file)
        self.__window.connect("response", self.on_response, None)
        self.__window.show()