svnno****@sourc*****
svnno****@sourc*****
Mon Nov 26 21:49:42 JST 2007
Revision: 3320 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3320 Author: kous Date: 2007-11-26 21:49:41 +0900 (Mon, 26 Nov 2007) Log Message: ----------- * src/kz-window.c (motion_notify_event): added NULL check. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/kz-window.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-10-28 15:21:17 UTC (rev 3319) +++ kazehakase/trunk/ChangeLog 2007-11-26 12:49:41 UTC (rev 3320) @@ -1,3 +1,7 @@ +2007-11-26 Kouhei Sutou <kou****@cozmi*****> + + * src/kz-window.c (motion_notify_event): added NULL check. + 2007-10-29 Ryo SHIMIZU <furyo****@on-ai*****> * configure.ac:version 0.5.0 Modified: kazehakase/trunk/src/kz-window.c =================================================================== --- kazehakase/trunk/src/kz-window.c 2007-10-28 15:21:17 UTC (rev 3319) +++ kazehakase/trunk/src/kz-window.c 2007-11-26 12:49:41 UTC (rev 3320) @@ -2406,10 +2406,12 @@ KzWindowPrivate *priv; KzEmbed *kzembed = KZ_EMBED(KZ_WINDOW_CURRENT_PAGE(KZ_WINDOW(widget))); + if (!kzembed) + return FALSE; + kz = KZ_WINDOW(widget); priv = KZ_WINDOW_GET_PRIVATE(kz); - /*gdk_window_get_pointer (GTK_WIDGET(kzembed)->window, &x, &y, &state);*/ gtk_widget_get_pointer(GTK_WIDGET(kzembed), &x, &y); if (abs(x - priv->start_x) > 2 ||