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. Even With Re-Clocking, Nouveau Remains Behind NVIDIA's Proprietary Linux Driver
  2. The Power Consumption & Efficiency Of Open-Source GPU Drivers
  3. AMD R600g/RadeonSI Performance On Linux 3.16 With Mesa 10.3-devel
  4. Intel Pentium G3258 On Linux
Latest Linux Articles
  1. Updated Source Engine Benchmarks On The Latest AMD/NVIDIA Linux Drivers
  2. Nouveau vs. Radeon vs. Intel Tests On Linux 3.16, Mesa 10.3-devel
  3. KVM Benchmarks On Ubuntu 14.10
  4. X.Org Server 1.16 Officially Released With Terrific Features
Latest Linux News
  1. GStreamer VA-API Plug-In Update Adds New Features
  2. Qt 5.4 Going Into Feature Freeze Next Week With Exciting Changes
  3. OpenSUSE Factory Turns Into Rolling Release Distribution
  4. "The World's Most Highly-Assured OS" Kernel Open-Sourced
  5. NVIDIA Is Working Towards VDPAU H.265/HEVC Support
  6. Hawaii Bug-Fixes Start Hitting Mainline RadeonSI Gallium3D
  7. The FFmpeg vs. Libav War Continues In Debian Land
  8. Grand Theft Auto Running On Direct3D Natively On Linux Shows Gallium3D Potential
  9. GCC As A Just-In Time Compiler Is An Interesting Project
  10. Age Of Wonders III Is Still Being Ported To Linux
Latest Forum Discussions
  1. AMD Athlon 5350 APU On Linux
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Linus Torvalds On GCC 4.9: Pure & Utter Crap
  4. Debian + radeonsi
  5. Open-source drivers on ATI R7 260X
  6. List of Linux friendly Kickstarter projects
  7. Porting Mesa to the Playstation 2
  8. ASRock AM1H-ITX: One Of The Best AM1 Mini-ITX Motherboards