On Sun, 2007-07-29 at 13:50 +0200, Norbert Breun wrote: > Error message: (acroread:12892): Gtk-CRITICAL **: gtk_rc_get_style: > assertion `GTK_IS_WIDGET (widget)' failed > kernel: Linux nmb 2.6.22-1-k7 #1 SMP libc6 Version: 2.6-4 > Hi there, > > startup of acrobat reader fails with above noted error message after > having upgraded following two packages: > libgtk2.0-0-2.11.6-1 > libgtk2.0-common-2.11.6-1 > This seems even to be an issue in Mandriva and UBUNTU as I found > having googled about this. > Having downgraded to previous version 2.10.13-1 all works well again.
This was apparently fixed (or at least worked around) in Fedora and
Ubuntu;
* debian/patches/090_from_fedora_better_tooltip_compat.patch:
- patch from fedora, improve the tooltip compatibility,
make acroread start again
I'm attaching Ubuntu's patch.
--
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22
--- trunk/gtk/gtktooltips.c 2007/07/21 13:19:11 18520
+++ trunk/gtk/gtktooltips.c 2007/08/07 13:32:19 18587
@@ -103,6 +103,8 @@
private->tips_data_table =
g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) gtk_tooltips_destroy_data);
+
+ gtk_tooltips_force_window (tooltips);
}
static void
@@ -144,6 +146,12 @@
g_return_if_fail (tooltips != NULL);
+ if (tooltips->tip_window)
+ {
+ gtk_widget_destroy (tooltips->tip_window);
+ tooltips->tip_window = NULL;
+ }
+
g_hash_table_remove_all (private->tips_data_table);
GTK_OBJECT_CLASS (gtk_tooltips_parent_class)->destroy (object);
@@ -154,7 +162,18 @@
{
g_return_if_fail (GTK_IS_TOOLTIPS (tooltips));
- /* nop */
+ if (!tooltips->tip_window)
+ {
+ tooltips->tip_window = gtk_window_new (GTK_WINDOW_POPUP);
+ g_signal_connect (tooltips->tip_window,
+ "destroy",
+ G_CALLBACK (gtk_widget_destroyed),
+ &tooltips->tip_window);
+
+ tooltips->tip_label = gtk_label_new (NULL);
+ gtk_container_add (GTK_CONTAINER (tooltips->tip_window),
+ tooltips->tip_label);
+ }
}
void
signature.asc
Description: This is a digitally signed message part

