[kazehakase-svn] [3165] suppress warning.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Apr 12 13:15:01 JST 2007


Revision: 3165
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3165
Author:   ikezoe
Date:     2007-04-12 13:15:00 +0900 (Thu, 12 Apr 2007)

Log Message:
-----------
suppress warning.

Modified Paths:
--------------
    kazehakase/trunk/src/kz-embed.c

Modified: kazehakase/trunk/src/kz-embed.c
===================================================================
--- kazehakase/trunk/src/kz-embed.c	2007-04-12 03:09:14 UTC (rev 3164)
+++ kazehakase/trunk/src/kz-embed.c	2007-04-12 04:15:00 UTC (rev 3165)
@@ -1087,9 +1087,8 @@
 kz_embed_set_history (KzEmbed *kzembed, KzBookmark *history)
 {
 	g_return_if_fail(KZ_IS_EMBED(kzembed));
-	g_return_if_fail(KZ_EMBED_GET_IFACE(kzembed)->set_history);
-
-	KZ_EMBED_GET_IFACE(kzembed)->set_history(kzembed, history);
+	if (KZ_EMBED_GET_IFACE(kzembed)->set_history)
+		KZ_EMBED_GET_IFACE(kzembed)->set_history(kzembed, history);
 }
 
 
@@ -1097,9 +1096,9 @@
 kz_embed_get_history (KzEmbed *kzembed, KzBookmark *history)
 {
 	g_return_if_fail(KZ_IS_EMBED(kzembed));
-	g_return_if_fail(KZ_EMBED_GET_IFACE(kzembed)->get_history);
-
-	KZ_EMBED_GET_IFACE(kzembed)->get_history(kzembed, history);
+	
+	if (KZ_EMBED_GET_IFACE(kzembed)->get_history)
+		KZ_EMBED_GET_IFACE(kzembed)->get_history(kzembed, history);
 }
 
 




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