After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631828 - Drop GdkPixmap usage
Drop GdkPixmap usage
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks: 636726
 
 
Reported: 2010-10-10 18:39 UTC by Kjartan Maraas
Modified: 2011-01-12 17:32 UTC
See Also:
GNOME target: 3.0
GNOME version: ---



Description Kjartan Maraas 2010-10-10 18:39:45 UTC
glade3 needs to be ported away from the old drawing api that was removed from Gtk+

./gladeui/glade-placeholder.h:	GdkPixmap *placeholder_pixmap;
./plugins/gtk+/glade-gtk.c:glade_gtk_fixed_layout_finalize(GdkPixmap *backing)
./plugins/gtk+/glade-gtk.c:	GdkPixmap *backing;

./gladeui/glade-placeholder.c:	gdk_drawable_get_size (event->window, &w, &h);
./gladeui/glade-utils.c:	gdk_drawable_get_size (expose_win,
Comment 1 Tristan Van Berkom 2010-10-11 11:29:23 UTC
Yes I ran into that yesterday.

FYI, this cleanup needs to be done in the "offscreen" branch.

When we get offscreen rendering (of project widgets in the 
workspace) working in that branch, and get everything compiling at 
least for 3.0, the plan is to merge that back to master and
drop the --with-gtk=2.0 option completely.
Comment 2 Johannes Schmid 2010-11-15 23:16:38 UTC
Fixed in offscreen-gtk3 branch!
Comment 3 Javier Jardón (IRC: jjardon) 2010-12-30 16:13:38 UTC
Still missing:

plugins/gtk+/glade-gtk.c:glade_gtk_fixed_layout_finalize(GdkPixmap *backing)
plugins/gtk+/glade-gtk.c:       GdkPixmap *backing;
Comment 4 Tristan Van Berkom 2011-01-12 17:32:08 UTC
Now we are drawing the good 'ol pattern on GtkFixed/GtkLayout, as well
as restored the softer-on-the-eye placeholder style from glade-3-8 using
new cairo apis.

Closing.