[kazehakase-svn] [3284] * module/embed/ie/kz-ie.cpp: Use gtk_ie_embed_get_font_size().

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Mon Oct 15 20:16:30 JST 2007


Revision: 3284
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3284
Author:   ikezoe
Date:     2007-10-15 20:16:30 +0900 (Mon, 15 Oct 2007)

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

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

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-10-15 11:06:04 UTC (rev 3283)
+++ kazehakase/trunk/ChangeLog	2007-10-15 11:16:30 UTC (rev 3284)
@@ -10,6 +10,7 @@
 	* module/embed/ie/kz-ie.cpp: Implement more functions.
 	* module/embed/gtk-webcore/kz-gtk-webcore.cpp: Clean.
 	* module/embed/ie/kz-ie.cpp: More.
+	* module/embed/ie/kz-ie.cpp: Use gtk_ie_embed_get_font_size().
 
 2007-10-15  Kouhei Sutou  <kou****@cozmi*****>
 

Modified: kazehakase/trunk/module/embed/ie/kz-ie.cpp
===================================================================
--- kazehakase/trunk/module/embed/ie/kz-ie.cpp	2007-10-15 11:06:04 UTC (rev 3283)
+++ kazehakase/trunk/module/embed/ie/kz-ie.cpp	2007-10-15 11:16:30 UTC (rev 3284)
@@ -497,10 +497,35 @@
 static int
 kz_ie_get_text_size (KzEmbed *kzembed)
 {
+	GtkIEEmbedFontSize size;
+	gint ret_size;
+
 	g_return_val_if_fail(KZ_IS_IE(kzembed), 100);
 
-	/* gtk_ie_embed_get_font_size(GTK_IE_EMBED(kzembed));*/
-	return 100;
+	size = gtk_ie_embed_get_font_size(GTK_IE_EMBED(kzembed));
+	switch (size)
+	{
+	case GTK_IE_EMBED_FONT_LARGEST:
+		ret_size = 400;
+		break;
+	case GTK_IE_EMBED_FONT_LARGE:
+		ret_size = 200;
+		break;
+	case GTK_IE_EMBED_FONT_MEDIUM:
+		ret_size = 80;
+		break;
+	case GTK_IE_EMBED_FONT_SMALL:
+		ret_size = 50;
+		break;
+	case GTK_IE_EMBED_FONT_SMALLEST:
+		ret_size = 20;
+		break;
+	default:
+		ret_size = 100;
+		break;
+	}
+
+	return ret_size;
 }
 
 




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