1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

GTK+2, GTK+3 Plays More With Cairo For Drawing

GNOME

Published on 17 August 2010 10:29 AM EDT
Written by Michael Larabel in GNOME
8 Comments

With GNOME 3.0 not being released now until March of 2011, GNOME 2.32 is being released next month and will continue to focus on dependable and trusted GNOME 2.x technologies, such as the GTK+2 library rather than GTK+3 that's been in development for quite a number of months and is already supported by most GNOME modules.

While most development work on this primary tool-kit of GNOME is still focused towards GTK+ 3.0, GTK+2 continues to receive a bit of love with GTK+ 2.22 being the last planned stable release. Making way towards GTK+ 2.22 there was the release of GTK+ 2.21.6 last night as one of the final development snapshots towards this release that bids farewell to GTK+2. GTK+ 2.21.6 is being checked-in with the many other official GNOME modules that are providing updates for the GNOME 2.32 Beta release that's expected later in the week.

GTK+ 2.22 doesn't offer up the features of GTK+ 3.0 nor does this 2.21.6 snapshot carry many changes since the earlier 2.21.5 milestone, but it does carry one noteworthy change. Besides a few bug-fixes and changes to the tool-kit API, most of the GTK+ drawing has been ported from GDK to using Cairo.

The GIMP Drawing Kit (GDK) has traditionally resided between GTK+ and the X Server to handle most of the low-level rendering and then back in 2005 with the GTK+ 2.8 there was Cairo integration with GDK for handling the rendering of vector graphics. With GTK+ 2.22, now most of the GTK+ drawing has switched from using the GDK drawing APIs to directly tapping the Cairo API to handle the drawing.

While Cairo was developed by Keith Packard and other X.Org developers, this library is cross-platform and supports drawing back-ends to the Win32 GDI, Mac OS X Quartz, and OpenGL directly, besides the X Windows support. There is also the experimental Cairo-DRM back-end that allows Cairo to talk directly with the graphics processor using the Linux Direct Rendering Manager and via these code-paths the rendering is even faster than Cairo running on the CPU and many times faster than X-based rendering. The Cairo-DRM work is also good news for projects like the Wayland Display Server.

Switching from the GDK to Cairo APIs and dropping lots of old GDK code (such as GdkGC and GdkImage) was done to improve GTK+ semantics and making it easier to port GTK applications to other platforms like Windows and Mac OS X, to tap into new features of the Cairo API rather than the outdated GDK drawing API, and to improve the drawing performance especially in cases where the GPU is utilized. By tapping into the Cairo API there are features that were not exposed previously by the GDK API such as for drawing bezier curves, anti-aliasing, translucent drawables, anti-aliased clipping and masking, and resolution independence. This greater dependence on Cairo is also found within GTK+ 3.0.

More details on this GTK+ rendering clean-up work can be found this blog post by Ben Otte, who was the developer that did much of this work. There is also the GTK+ 2.21.6 release announcement that provides an overview of the tool-kit changes.

Ben is also working on catering the GTK+3 API to be more integrated with Cairo for rendering by implementing a gtk_widget_draw() function for drawing a given GtkWidget to a Cairo surface. This and other GTK+3 work would allow for better creation of snapshots, smoother resolution independence, better and greater rendering back-end capabilities, easier integration with Clutter and OpenGL applications, faster rendering performance, and the ability to apply any Cairo features to GTK+ widgets (like cleanly fading widgets in and out). Details on this recently proposed work can be found on the gtk-devel-list.

The first beta release of GNOME 2.32 is expected tomorrow while a second beta release is to come on the first of September, a release candidate on the 15th, and then the final release of GNOME 2.32 on the 29th of September. GNOME 3.0 with GTK+ 3.0 will officially arrive in March.

Through getting our latest pass4sure 70-284 dumps and 70-450 tutorials, you will pass your 199-01 exam without any difficulty.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. AMD's New Athlon/Semprons Give Old Phenom CPUs A Big Run For The Money
  2. 13-Way Low-End GPU Comparison With AMD's AM1 Athlon
  3. ASUS AM1I-A: A Mini-ITX Board For Socketed Kabini APUs
  4. Mini-Box M350: A Simple, Affordable Mini-ITX Case
Latest Linux Articles
  1. How Much Video RAM Is Needed For Catalyst R3 Graphics?
  2. Ubuntu 12.04 LTS vs. 14.04 LTS Cloud Benchmarks
  3. Ubuntu 12.04.4 vs. 13.10 vs. 14.04 LTS Desktop Benchmarks
  4. AMD OpenCL Performance With AM1 Kabini APUs
Latest Linux News
  1. OpenELEC 4.0 Beta 6 Works On 4K Graphics, RPi ALSA
  2. Linux 3.15 Lands Some DRM Graphics Driver Fixes
  3. AMD Is Disabling DPM Support For RV770 GPUs
  4. ReactOS Working On A Community Windows OS
  5. Borderlands Is Being Considered For Linux
  6. Mesa 10.0 & 10.1 Stable Get Updated
  7. Getting Hit By The Variable Performance Of The Public Cloud
  8. Git 2.0 Test Releases Begin With Many Changes
  9. Wine 1.7.17 Works On Its Task Scheduler, C Run-Time
  10. The Improv ARM Board Still Isn't Shipping; Riding A Dead Horse?
  11. Debian To Maintain 6.0 Squeeze As An LTS Release
  12. Wasteland 2 Is Finally Released For Linux Gamers
Latest Forum Discussions
  1. The GNOME Foundation Is Running Short On Money
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Catalyst 14.3 Beta
  4. Suggestions about how to make a Radeon HD 7790 work decently?
  5. Radeon 8000M problematic on Linux?
  6. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  7. After Jack Keane, RuseSoft will briing Ankh 3 to Linux through Desura
  8. Suspected PHP Proxy Issue