svnno****@sourc*****
svnno****@sourc*****
Mon Oct 22 19:23:15 JST 2007
Revision: 3307 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3307 Author: ikezoe Date: 2007-10-22 19:23:14 +0900 (Mon, 22 Oct 2007) Log Message: ----------- 2007-10-22 Hiroyuki Ikezoe <poinc****@ikezo*****> * module/embed/ie/kz-ie.c: Add find function. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/ie/kz-ie.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-10-22 04:44:52 UTC (rev 3306) +++ kazehakase/trunk/ChangeLog 2007-10-22 10:23:14 UTC (rev 3307) @@ -1,5 +1,9 @@ 2007-10-22 Hiroyuki Ikezoe <poinc****@ikezo*****> + * module/embed/ie/kz-ie.c: Add find function. + +2007-10-22 Hiroyuki Ikezoe <poinc****@ikezo*****> + * module/embed/ie/*.cpp -> module/embed/ie/*.c: rename. 2007-10-22 Hiroyuki Ikezoe <poinc****@ikezo*****> Modified: kazehakase/trunk/module/embed/ie/kz-ie.c =================================================================== --- kazehakase/trunk/module/embed/ie/kz-ie.c 2007-10-22 04:44:52 UTC (rev 3306) +++ kazehakase/trunk/module/embed/ie/kz-ie.c 2007-10-22 10:23:14 UTC (rev 3307) @@ -110,6 +110,9 @@ (KzEmbed *kzembed); static gchar *kz_ie_get_selection_string (KzEmbed *kzembed); +static gboolean kz_ie_find (KzEmbed *kzembed, + const char *keyword, + gboolean backward); /* KzEmbedPrefs interfaces */ /* no functions is implemented yet */ @@ -215,7 +218,7 @@ iface->paste = kz_ie_paste; iface->select_all = kz_ie_select_all; iface->get_selection_string = kz_ie_get_selection_string; - iface->find = NULL; + iface->find = kz_ie_find; iface->incremental_search = NULL; iface->selection_is_collapsed = NULL; iface->get_links = NULL; @@ -746,10 +749,18 @@ } static gchar * -kz_ie_get_selection_string (KzEmbed *kzembed) +kz_ie_get_selection_string (KzEmbed *kzembed) { g_return_val_if_fail(KZ_IS_IE(kzembed), NULL); return gtk_ie_embed_get_selected_text(GTK_IE_EMBED(kzembed)); } +static gboolean +kz_ie_find (KzEmbed *kzembed, const char *keyword, gboolean backward) +{ + g_return_val_if_fail(KZ_IS_IE(kzembed), FALSE); + + return gtk_ie_embed_find_string(GTK_IE_EMBED(kzembed), keyword, !backward, FALSE); +} +