Re: [patch] Remove pangocairo from Gtk+ 2.8.20



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:
> Xan L� schreef:
>> Hi,
> 
>> I've upgraded your patch against GTK+ 2.10.6, and we are getting great
>> performance figures compared to GTK+ 2.10.6 with pangocairo too
>> (basically at the level of GTK+ 2.6.10 again). Right now I'm working on
>> a python/cairo script to get some nice graphics from a torture test
>> session with several GTK+s, hope to get it ready soon.
> 
> The patch speeds up gtk+ a lot, but it seems to break the calendar widget[1] :(
> 
> That's with gtk+ 2.10.6, glibc 2.5, gcc 4.1.1 on armv5te/EABI

Matthew Reimer came up with this to fix it:

- --- gtkcalendar.c.orig  2006-11-14 14:39:34.000000000 -0800
+++ gtkcalendar.c       2006-11-14 14:37:34.000000000 -0800
 -1495,6 +1495,10 @@ gtk_calendar_realize (GtkWidget *widget)
                             BACKGROUND_COLOR ( GTK_WIDGET ( calendar)));
   gdk_window_show (priv->main_win);
   gdk_window_set_user_data (priv->main_win, widget);
+
+  /* Set widgets gc */
+  calendar->gc = gdk_gc_new (widget->window);
+
   gdk_window_set_background (widget->window, BACKGROUND_COLOR (widget));
   gdk_window_show (widget->window);
   gdk_window_set_user_data (widget->window, widget);


regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFWkkuMkyGM64RGpERAvKFAKCnK5eRUcwaEp3m/qsqmQC+6w03PQCeK73W
FgZDJoef6pwZl8z7MZQ0zRY=
=ypYp
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]