[Libreoffice] [PUSHED] GTK+ integration

Michael Meeks michael.meeks at novell.com
Tue May 24 07:00:37 PDT 2011


On Tue, 2011-05-24 at 14:14 +0100, Michael Meeks wrote:
> 	Sure, I've pushed it to the -3-4 branch as well.

	Ho hum; I've reverted it there. I'm getting some funky debug output on
the console:

Warning: -writer is deprecated.  Use --writer instead.

(soffice:14656): GLib-GObject-WARNING **: invalid cast from `GtkToggleToolButton' to `GtkButton'

(soffice:14656): Gtk-CRITICAL **: IA__gtk_button_set_relief: assertion `GTK_IS_BUTTON (button)' failed

(soffice:14656): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed

	Doesn't look ideal :-) Whacking a breakpoint in g_logv gives me some
nice traces:

#2  0xb2ac69c5 in g_type_check_instance_cast ()
from /lib/libgobject-2.0.so.0
#3  0xb33403e4 in NWEnsureGTKToolbar (nScreen=0)
at /data/opt/libreoffice/bootstrap/clone/libs-gui/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx:4007
#4  0xb333dc56 in NWGetToolbarRect (nScreen=0, nPart=100, aAreaRect=...)
at /data/opt/libreoffice/bootstrap/clone/libs-gui/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx:3300
#5  0xb3334f2c in GtkSalGraphics::getNativeControlRegion
(this=0x891a380, nType=100, nPart=100, rControlRegion=..., nState=9,
aValue=..., rCaption=..., 
    rNativeBoundingRegion=..., rNativeContentRegion=...)
at /data/opt/libreoffice/bootstrap/clone/libs-gui/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx:982

and

#2  0xb29dba8d in g_return_if_fail_warning () from /lib/libglib-2.0.so.0
#3  0xb2edc8f5 in gtk_button_set_relief ()
from /usr/lib/libgtk-x11-2.0.so.0
#4  0xb33403f0 in NWEnsureGTKToolbar (nScreen=0)
at /data/opt/libreoffice/bootstrap/clone/libs-gui/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx:4007

	eg. - apparently it is not a GtkButton :-)

	Any chance of some digging ?

	Thanks,

		Michael.

-- 
 michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot




More information about the LibreOffice mailing list