svnno****@sourc*****
svnno****@sourc*****
Fri Mar 30 12:56:14 JST 2007
Revision: 3104 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3104 Author: ikezoe Date: 2007-03-30 12:56:14 +0900 (Fri, 30 Mar 2007) Log Message: ----------- baka. Modified Paths: -------------- kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp Modified: kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp =================================================================== --- kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp 2007-03-30 03:44:22 UTC (rev 3103) +++ kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp 2007-03-30 03:56:14 UTC (rev 3104) @@ -33,7 +33,7 @@ #include "kz-proxy-item.h" #include "gtk-utils.h" -#undef GTK_WEBCORE_HAS_MOUSE_DOWN +#define GTK_WEBCORE_HAS_MOUSE_DOWN 0 typedef struct _KzGtkWebcorePrivate KzGtkWebcorePrivate; struct _KzGtkWebcorePrivate @@ -75,7 +75,7 @@ const gchar *link_label, const gchar *link_url, const gchar *link_target); -#ifdef GTK_WEBCORE_HAS_MOUSE_DOWN +#if GTK_WEBCORE_HAS_MOUSE_DOWN static gboolean kz_gtk_webcore_mouse_down (Webi *webi, const gchar *link_url, guint button); @@ -244,7 +244,7 @@ gtk_webcore_class->req_new_window = kz_gtk_webcore_req_new_window; gtk_webcore_class->close_window = kz_gtk_webcore_close_window; gtk_webcore_class->mouse_over = kz_gtk_webcore_mouse_over; -#ifdef GTK_WEBCORE_HAS_MOUSE_DOWN +#if GTK_WEBCORE_HAS_MOUSE_DOWN gtk_webcore_class->mouse_down = kz_gtk_webcore_mouse_down; gtk_webcore_class->mouse_up = kz_gtk_webcore_mouse_up; #endif @@ -863,7 +863,7 @@ kz_embed_event_free((KzEmbedEvent *) kzevent); } -#ifdef GTK_WEBCORE_HAS_MOUSE_DOWN +#if GTK_WEBCORE_HAS_MOUSE_DOWN gboolean kz_gtk_webcore_mouse_down (Webi *webi, const gchar *link_url, @@ -1211,10 +1211,10 @@ gchar *selected; selected = webi_get_current_selection_as_text(WEBI(kzembed)); + gtkutil_copy_text(selected); + if (selected) g_free(selected); - - gtkutil_copy_text(selected); } static void