? engines/Makefile
? engines/Makefile.in
? engines/clearlooks/Makefile
? engines/clearlooks/Makefile.in
? engines/crux/pixmaps/Makefile
? engines/crux/pixmaps/Makefile.in
? engines/crux/src/config.h
? engines/crux/src/stamp-h1
? engines/hc/Makefile
? engines/hc/Makefile.in
? engines/industrial/Makefile
? engines/industrial/Makefile.in
? engines/lighthouseblue/Makefile
? engines/lighthouseblue/Makefile.in
? engines/metal/Makefile
? engines/metal/Makefile.in
? engines/mist/Makefile
? engines/mist/Makefile.in
? engines/redmond/Makefile
? engines/redmond/Makefile.in
? engines/smooth/Makefile
? engines/smooth/Makefile.in
? engines/smooth/src/config.h
? engines/smooth/src/stamp-h2
? engines/thinice/Makefile
? engines/thinice/Makefile.in
? themes/Makefile
? themes/Makefile.in
? themes/Clearlooks/Makefile
? themes/Clearlooks/Makefile.in
? themes/Clearlooks/gtk-2.0/Makefile
? themes/Clearlooks/gtk-2.0/Makefile.in
? themes/Crux/Makefile
? themes/Crux/Makefile.in
? themes/Crux/gtk-2.0/Makefile
? themes/Crux/gtk-2.0/Makefile.in
? themes/Industrial/Makefile
? themes/Industrial/Makefile.in
? themes/Industrial/gtk-2.0/Makefile
? themes/Industrial/gtk-2.0/Makefile.in
? themes/LighthouseBlue/Makefile
? themes/LighthouseBlue/Makefile.in
? themes/LighthouseBlue/gtk-2.0/Makefile
? themes/LighthouseBlue/gtk-2.0/Makefile.in
? themes/Metal/Makefile
? themes/Metal/Makefile.in
? themes/Metal/gtk-2.0/Makefile
? themes/Metal/gtk-2.0/Makefile.in
? themes/Mist/Makefile
? themes/Mist/Makefile.in
? themes/Mist/gtk-2.0/Makefile
? themes/Mist/gtk-2.0/Makefile.in
? themes/Redmond/Makefile
? themes/Redmond/Makefile.in
? themes/Redmond/gtk/Makefile
? themes/Redmond/gtk/Makefile.in
? themes/Redmond/gtk-2.0/Makefile
? themes/Redmond/gtk-2.0/Makefile.in
? themes/ThinIce/Makefile
? themes/ThinIce/Makefile.in
? themes/ThinIce/gtk-2.0/Makefile
? themes/ThinIce/gtk-2.0/Makefile.in
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk-engines/ChangeLog,v
retrieving revision 1.138
diff -u -r1.138 ChangeLog
--- ChangeLog	30 Dec 2005 17:49:08 -0000	1.138
+++ ChangeLog	31 Dec 2005 16:49:28 -0000
@@ -1,3 +1,8 @@
+2005-12-31  Benjamin Berg  <benjamin@sipsolutions.net>
+
+	* engines/clearlooks/src/clearlooks_style.c: (draw_box_gap),
+	(draw_box): Fix two possible NULL dereferenciations.
+
 2005-12-30  Richard Stellingwerff  <remenic@gmail.com>
 
 	* engines/clearlooks/src/clearlooks_style.c: (draw_shadow):
Index: engines/clearlooks/src/clearlooks_style.c
===================================================================
RCS file: /cvs/gnome/gtk-engines/engines/clearlooks/src/clearlooks_style.c,v
retrieving revision 1.39
diff -u -r1.39 clearlooks_style.c
--- engines/clearlooks/src/clearlooks_style.c	30 Dec 2005 17:49:08 -0000	1.39
+++ engines/clearlooks/src/clearlooks_style.c	31 Dec 2005 16:49:31 -0000
@@ -202,7 +202,8 @@
 	}
 	else
 	{
-		printf("box_gap: %s %s\n", detail, G_OBJECT_TYPE_NAME (widget));
+		if (widget)
+			printf("box_gap: %s %s\n", detail, G_OBJECT_TYPE_NAME (widget));
 		parent_class->draw_box_gap (style, window, state_type, shadow_type,
 									   area, widget, detail,
 									   x, y, width, height,
@@ -366,7 +367,7 @@
 	else if (height == -1)
 		gdk_window_get_size (window, NULL, &height);
 
-	if (DETAIL ("menubar") && !cl_is_gnome_panel (widget->parent))
+	if (DETAIL ("menubar") && !(widget && cl_is_gnome_panel (widget->parent)))
 	{
 		WidgetParameters params;
 		
@@ -375,7 +376,7 @@
 		clearlooks_draw_menubar (cr, colors, &params,
 		                         x, y, width, height);
 	}
-	else if (DETAIL ("button") && widget->parent &&
+	else if (DETAIL ("button") && widget && widget->parent &&
                  (GTK_IS_TREE_VIEW(widget->parent) ||
                   GTK_IS_CLIST (widget->parent)))
 	{
