svnno****@sourc*****
svnno****@sourc*****
Wed Oct 17 14:09:17 JST 2007
Revision: 3291 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3291 Author: ikezoe Date: 2007-10-17 14:09:16 +0900 (Wed, 17 Oct 2007) Log Message: ----------- * module/embed/ie/kz-ie.cpp: more. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/ie/kz-ie.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-10-17 04:52:16 UTC (rev 3290) +++ kazehakase/trunk/ChangeLog 2007-10-17 05:09:16 UTC (rev 3291) @@ -2,6 +2,7 @@ * module/embed/ie/Makefile.am: Add some options. * module/embed/ie/kz-ie.cpp: Fix horrible mistake. + * module/embed/ie/kz-ie.cpp: more. 2007-10-16 Hiroyuki Ikezoe <poinc****@ikezo*****> Modified: kazehakase/trunk/module/embed/ie/kz-ie.cpp =================================================================== --- kazehakase/trunk/module/embed/ie/kz-ie.cpp 2007-10-17 04:52:16 UTC (rev 3290) +++ kazehakase/trunk/module/embed/ie/kz-ie.cpp 2007-10-17 05:09:16 UTC (rev 3291) @@ -75,6 +75,15 @@ static void kz_ie_go_forward (KzEmbed *kzembed); static gboolean kz_ie_can_go_back (KzEmbed *kzembed); static gboolean kz_ie_can_go_forward (KzEmbed *kzembed); +static gboolean kz_ie_can_cut_selection + (KzEmbed *kzembed); +static gboolean kz_ie_can_copy_selection + (KzEmbed *kzembed); +static gboolean kz_ie_can_paste (KzEmbed *kzembed); +static void kz_ie_cut_selection (KzEmbed *kzembed); +static void kz_ie_copy_selection (KzEmbed *kzembed); +static void kz_ie_paste (KzEmbed *kzembed); +static void kz_ie_select_all (KzEmbed *kzembed); static void kz_ie_print (KzEmbed *kzembed); static void kz_ie_print_preview (KzEmbed *kzembed); static void kz_ie_zoom_set (KzEmbed *kzembed, @@ -183,13 +192,13 @@ iface->ensure_title = kz_ie_ensure_title; iface->get_link_message = NULL; iface->get_progress = kz_ie_get_progress; - iface->can_cut_selection = NULL; - iface->can_copy_selection = NULL; - iface->can_paste = NULL; - iface->cut_selection = NULL; - iface->copy_selection = NULL; - iface->paste = NULL; - iface->select_all = NULL; + iface->can_cut_selection = kz_ie_can_cut_selection; + iface->can_copy_selection = kz_ie_can_copy_selection; + iface->can_paste = kz_ie_can_paste; + iface->cut_selection = kz_ie_cut_selection; + iface->copy_selection = kz_ie_copy_selection; + iface->paste = kz_ie_paste; + iface->select_all = kz_ie_select_all; iface->get_selection_string = NULL; iface->find = NULL; iface->incremental_search = NULL; @@ -488,7 +497,63 @@ return gtk_ie_embed_can_go_forward(GTK_IE_EMBED(kzembed)); } +static gboolean +kz_ie_can_cut_selection (KzEmbed *kzembed) +{ + g_return_val_if_fail(KZ_IS_IE(kzembed), FALSE); + + return gtk_ie_embed_can_cut_clipboard(GTK_IE_EMBED(kzembed)); +} + +static gboolean +kz_ie_can_copy_selection (KzEmbed *kzembed) +{ + g_return_val_if_fail(KZ_IS_IE(kzembed), FALSE); + + return gtk_ie_embed_can_copy_clipboard(GTK_IE_EMBED(kzembed)); +} + +static gboolean +kz_ie_can_paste (KzEmbed *kzembed) +{ + g_return_val_if_fail(KZ_IS_IE(kzembed), FALSE); + + return gtk_ie_embed_can_paste_clipboard(GTK_IE_EMBED(kzembed)); +} + static void +kz_ie_cut_selection (KzEmbed *kzembed) +{ + g_return_if_fail(KZ_IS_IE(kzembed)); + + gtk_ie_embed_cut_clipboard(GTK_IE_EMBED(kzembed)); +} + +static void +kz_ie_copy_selection (KzEmbed *kzembed) +{ + g_return_if_fail(KZ_IS_IE(kzembed)); + + gtk_ie_embed_copy_clipboard(GTK_IE_EMBED(kzembed)); +} + +static void +kz_ie_paste (KzEmbed *kzembed) +{ + g_return_if_fail(KZ_IS_IE(kzembed)); + + gtk_ie_embed_paste_clipboard(GTK_IE_EMBED(kzembed)); +} + +static void +kz_ie_select_all (KzEmbed *kzembed) +{ + g_return_if_fail(KZ_IS_IE(kzembed)); + + gtk_ie_embed_select_all(GTK_IE_EMBED(kzembed)); +} + +static void kz_ie_print (KzEmbed *kzembed) { g_return_if_fail(KZ_IS_IE(kzembed));