[kazehakase-svn] [3296] * module/embed/ie/kz-ie.cpp: get_last_modified().

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Wed Oct 17 19:55:17 JST 2007


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

Log Message:
-----------
* module/embed/ie/kz-ie.cpp: get_last_modified().

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

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-10-17 09:54:04 UTC (rev 3295)
+++ kazehakase/trunk/ChangeLog	2007-10-17 10:55:16 UTC (rev 3296)
@@ -5,6 +5,7 @@
 	* module/embed/ie/kz-ie.cpp: more.
 	* module/embed/ie/kz-ie.cpp: Emit mouse event.
 	* module/embed/ie/kz-ie.cpp: Emit "kz-dom-mouse-click".
+	* module/embed/ie/kz-ie.cpp: get_last_modified().
 
 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 09:54:04 UTC (rev 3295)
+++ kazehakase/trunk/module/embed/ie/kz-ie.cpp	2007-10-17 10:55:16 UTC (rev 3296)
@@ -107,6 +107,8 @@
 static void	    kz_ie_get_encoding	   (KzEmbed      *kzembed,
 					    gchar       **encoding,
 					    gboolean     *forced);
+static guint	    kz_ie_get_last_modified
+					   (KzEmbed	 *kzembed);
 
 /* KzEmbedPrefs interfaces */
 /* no functions is implemented yet */
@@ -259,7 +261,7 @@
 	iface->get_html_with_contents = NULL;
 	iface->set_history            = NULL;
 	iface->get_history            = NULL;
-	iface->get_last_modified      = NULL;
+	iface->get_last_modified      = kz_ie_get_last_modified;
 	iface->fine_scroll            = NULL;
 	iface->page_up                = NULL;
 	iface->page_down              = NULL; 
@@ -713,3 +715,18 @@
 	*encoding = gtk_ie_embed_get_charset(GTK_IE_EMBED(kzembed));
 }
 
+static guint
+kz_ie_get_last_modified (KzEmbed *kzembed)
+{
+	gchar *string;
+	struct tm t = {0};
+
+	g_return_val_if_fail(KZ_IS_IE(kzembed), 0);
+
+	string = gtk_ie_embed_get_last_modified(GTK_IE_EMBED(kzembed));
+	strptime(string, "%m/%d/%C %H:%M:%S", &t);
+	g_free (string);
+
+	return (guint) mktime(&t);
+}
+




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