svnno****@sourc*****
svnno****@sourc*****
Sun Apr 19 16:17:57 JST 2009
Revision: 3770 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3770 Author: mtasaka Date: 2009-04-19 16:17:56 +0900 (Sun, 19 Apr 2009) Log Message: ----------- 2009-04-19 Mamoru Tasaka <mtasa****@ioa*****> * src/kz-window.c: Prevent crash when no embed modules are found. Fix typo: "webkit-gtk" -> "webkit_gtk". Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/kz-window.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2009-03-16 22:57:11 UTC (rev 3769) +++ kazehakase/trunk/ChangeLog 2009-04-19 07:17:56 UTC (rev 3770) @@ -1,3 +1,9 @@ +2009-04-19 Mamoru Tasaka <mtasa****@ioa*****> + + * src/kz-window.c: + Prevent crash when no embed modules are found. + Fix typo: "webkit-gtk" -> "webkit_gtk". + 2009-03-14 Hiroyuki Ikezoe <poinc****@ikezo*****> * src/net/kz-http.c: Fix compiler warning. Modified: kazehakase/trunk/src/kz-window.c =================================================================== --- kazehakase/trunk/src/kz-window.c 2009-03-16 22:57:11 UTC (rev 3769) +++ kazehakase/trunk/src/kz-window.c 2009-04-19 07:17:56 UTC (rev 3770) @@ -840,7 +840,7 @@ if (!kz_embed) kz_embed = KZ_EMBED(kz_embed_new("gecko")); if (!kz_embed) - kz_embed = KZ_EMBED(kz_embed_new("webkit-gtk")); + kz_embed = KZ_EMBED(kz_embed_new("webkit_gtk")); if (!kz_embed) kz_embed = KZ_EMBED(kz_embed_new("ie")); @@ -859,6 +859,7 @@ if (url) g_return_val_if_fail(g_utf8_validate(url, strlen(url), NULL), NULL); kzembed = kz_window_create_embed(kz); + g_return_val_if_fail(kzembed, NULL); kztab = KZ_TAB_LABEL(kz_tab_label_new(kz, kzembed)); gtk_widget_show_all(GTK_WIDGET(kzembed));