From f6303d37775aff4c1087bea9da91345a5c849afd Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Sun, 29 Jun 2008 16:48:38 +0800 Subject: [PATCH] Add icon. --- Makefile.am | 1 + configure.ac | 1 + engine/factory.py | 2 +- ibus-tmpl.spec.in | 2 +- icons/Makefile.am | 30 ++++++++ icons/ibus-enchant.svg | 197 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 231 insertions(+), 2 deletions(-) create mode 100644 icons/Makefile.am create mode 100644 icons/ibus-enchant.svg diff --git a/Makefile.am b/Makefile.am index 2e84a3b..647e6a2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,6 +20,7 @@ SUBDIRS = \ engine \ + icons \ m4 \ po \ $(NULL) diff --git a/configure.ac b/configure.ac index 88fe0b3..177c005 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,7 @@ Makefile ibus-tmpl.spec engine/Makefile engine/ibus-engine-enchant +icons/Makefile m4/Makefile ]) diff --git a/engine/factory.py b/engine/factory.py index b1c8de1..f76598d 100644 --- a/engine/factory.py +++ b/engine/factory.py @@ -27,7 +27,7 @@ ENGINE_PATH = "/com/redhat/IBus/engines/Demo/Engine/%d" class DemoEngineFactory (interface.IEngineFactory): NAME = "Enchant" LANG = "en" - ICON = "" + ICON = "ibus-enchant" AUTHORS = "Huang Peng " CREDITS = "GPLv2" diff --git a/ibus-tmpl.spec.in b/ibus-tmpl.spec.in index 47ad68d..52728bd 100644 --- a/ibus-tmpl.spec.in +++ b/ibus-tmpl.spec.in @@ -43,7 +43,7 @@ rm -rf $RPM_BUILD_ROOT %dir %{_datadir}/ibus/engine/enchant %{_datadir}/ibus/engine/enchant/* %{_libexecdir}/ibus-engine-enchant -# %{_datadir}/ibus/icons/* +%{_datadir}/ibus/icons/ibus-enchant.svg %changelog * Wed Jun 25 2008 Huang Peng - 0.1.0-1 diff --git a/icons/Makefile.am b/icons/Makefile.am new file mode 100644 index 0000000..2bd3790 --- /dev/null +++ b/icons/Makefile.am @@ -0,0 +1,30 @@ +# vim:set noet ts=4: +# +# ibus - The Input Bus +# +# Copyright (c) 2007-2008 Huang Peng +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place, Suite 330, +# Boston, MA 02111-1307 USA + +icons_DATA = \ + ibus-enchant.svg \ + $(NULL) + +iconsdir = $(datadir)/ibus/icons + +EXTRA_DIST = \ + ibus-enchant.svg \ + $(NULL) diff --git a/icons/ibus-enchant.svg b/icons/ibus-enchant.svg new file mode 100644 index 0000000..3f9061d --- /dev/null +++ b/icons/ibus-enchant.svg @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + E + + -- 2.7.4