[kazehakase-svn] [3304] 2007-10-19 Hiroyuki Ikezoe <poinc****@ikezo*****>

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Fri Oct 19 13:17:33 JST 2007


Revision: 3304
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3304
Author:   ikezoe
Date:     2007-10-19 13:17:33 +0900 (Fri, 19 Oct 2007)

Log Message:
-----------
2007-10-19  Hiroyuki Ikezoe  <poinc****@ikezo*****>

	* module/embed/ie/kz-ie.cpp: Set context link.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/module/embed/ie/kz-ie.cpp

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-10-19 02:44:41 UTC (rev 3303)
+++ kazehakase/trunk/ChangeLog	2007-10-19 04:17:33 UTC (rev 3304)
@@ -1,5 +1,9 @@
 2007-10-19  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 
+	* module/embed/ie/kz-ie.cpp: Set context link.
+
+2007-10-19  Hiroyuki Ikezoe  <poinc****@ikezo*****>
+
 	* src/missing/kz-missing.h: #define kz_strptime.
 	* src/missing/strptime.c: #include "kz-missing.h".
 	* src/missing/Makefile.am, src/Makefile.am: Build libkzmissing.def.

Modified: kazehakase/trunk/module/embed/ie/kz-ie.cpp
===================================================================
--- kazehakase/trunk/module/embed/ie/kz-ie.cpp	2007-10-19 02:44:41 UTC (rev 3303)
+++ kazehakase/trunk/module/embed/ie/kz-ie.cpp	2007-10-19 04:17:33 UTC (rev 3304)
@@ -22,6 +22,8 @@
 
 #include <glib/gi18n.h>
 
+#define __USE_XOPEN
+#include <time.h>
 #include "kazehakase.h"
 #include "kz-ie.h"
 #include "kz-embed-prefs.h"
@@ -407,6 +409,17 @@
 	kzevent->button = event->button;
 	kzevent->cinfo.context = KZ_CONTEXT_NONE;
 
+	if (event->target) {
+		const gchar *name;
+		name = gtk_ie_embed_dom_event_target_get_name(event->target);
+		if (!strcmp("a", name)) {
+			const gchar *value;
+			kzevent->cinfo.context = KZ_CONTEXT_LINK;
+			value = gtk_ie_embed_dom_event_target_get_attribute_value(event->target,
+									     	  "href");
+			kzevent->cinfo.link = g_strdup(value);
+		}
+	}
 	return kzevent;
 }
 




More information about the Kazehakase-cvs mailing list
Back to archive index