Permalink
Browse files

Use icon path replace icon name.

  • Loading branch information...
1 parent eab4571 commit ad1bed89280bb07ddf9cdae0a545f1d7a690b250 @phuang committed Aug 6, 2008
Showing with 6 additions and 4 deletions.
  1. +5 −2 engine/gen-engine.py.in
  2. +0 −1 ibus-m17n.spec.in
  3. +1 −1 icons/Makefile.am
View
@@ -2,7 +2,7 @@ import sys
import m17n
_exec = "@prefix@/libexec/ibus-engine-m17n %s:%s"
-_icon = "ibus-m17n"
+_icon = "@prefix@/share/ibus-m17n/icons/ibus-m17n.svg"
_author = ""
_credits = ""
@@ -15,11 +15,14 @@ print installdir
for name, lang in m17n.minput_list_ims ():
file_name = "%s/m17n-%s-%s.engine" % (installdir, lang, name)
+ icon_name = m17n.minput_get_icon(lang, name)
+ if icon_name == None:
+ icon_name = _icon
out = file (file_name, "w")
print >> out, "Exec=%s" % (_exec % (lang, name))
print >> out, "Name=%s" % name
print >> out, "Lang=%s" % lang
- print >> out, "Icon=%s" % _icon
+ print >> out, "Icon=%s" % icon_name
print >> out, "Author=%s" % _author
print >> out, "Credits=%s" % _credits
out.close ()
View
@@ -45,7 +45,6 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/ibus-m17n/*
%{_libexecdir}/ibus-engine-m17n
%{_datadir}/ibus/engine/m17n-*.engine
-%{_datadir}/ibus/icons/ibus-m17n.svg
%changelog
* Wed Jun 25 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0-1
View
@@ -23,7 +23,7 @@ icons_DATA = \
ibus-m17n.svg \
$(NULL)
-iconsdir = $(datadir)/ibus/icons
+iconsdir = $(pkgdatadir)/icons
EXTRA_DIST = \
ibus-m17n.svg \

0 comments on commit ad1bed8

Please sign in to comment.