Hi,
Here's a patch that suppresses warnings coming from the murrine theme.
Murrine should be fixed to not emit this warnings, since NULL for the
widget parameter is a valid value for gtk_paint_shadow, but meanwhile,
I'd like to apply the patch.
Does it look fine ?
Emmanuel.
pac...@lappc-p087:/home/gnome/stable/gmathml$ gnumeric
(gnumeric:24446): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
`GTK_IS_WIDGET (widget)' failed
(gnumeric:24446): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
`GDK_IS_SCREEN (screen)' failed
(gnumeric:24446): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
`GTK_IS_WIDGET (widget)' failed
...
--
Emmanuel PACAUD
Groupe Virgo
LAPP - Laboratoire d'Annecy-le-Vieux de physique des particules
9, chemin de Bellevue - BP 110
74941 Annecy-le-Vieux CEDEX
France
Tél: (+33)4 50 09 55 92 ou 17 89 - Fax: (+33)4 50 27 94 95
diff --git a/src/item-bar.c b/src/item-bar.c
index de91873..7d23dcd 100644
--- a/src/item-bar.c
+++ b/src/item-bar.c
@@ -299,7 +299,7 @@ ib_draw_cell (ItemBar const * const ib, GdkDrawable *drawable,
gdk_draw_rectangle (drawable, gc, TRUE,
rect->x + 1, rect->y + 1, rect->width - 1, rect->height - 1);
gtk_paint_shadow (canvas->style, drawable, GTK_STATE_NORMAL, shadow,
- NULL, NULL, "GnmItemBarCell",
+ NULL, canvas, "GnmItemBarCell",
rect->x, rect->y, rect->width + 1, rect->height + 1);
g_return_if_fail (font != NULL);
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index 7e61530..6bf5347 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -601,7 +601,7 @@ cb_select_all_btn_expose (GtkWidget *widget, GdkEventExpose *event, SheetControl
TRUE,
offset + 1, 1, widget->allocation.width - 1, widget->allocation.height - 1);
gtk_paint_shadow (widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_OUT,
- NULL, NULL, "GnmItemBarCell",
+ NULL, widget, "GnmItemBarCell",
offset, 0, widget->allocation.width + 1, widget->allocation.height + 1);
}
_______________________________________________
gnumeric-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnumeric-list