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. NVIDIA GeForce GTX 980: The Best GPU For Linux Gamers
  2. ROCCAT LUA: A Linux-Friendly Gaming Mouse
  3. Cheetah Mounts: The Affordable Way To Put Your TV On The Wall
  4. Scythe Mugen MAX
Latest Linux Articles
  1. Preview: Radeon Gallium3D Performance For CS:GO On Linux
  2. XWayland Linux Gaming Performance With GNOME Wayland On Fedora 21
  3. EXT4/Btrfs/XFS/F2FS Benchmarks On Linux 3.17
  4. Fedora 21 Alpha First Impressions: It's Great
Latest Linux News
  1. KDE Plasma 5.1 Now In Beta
  2. Systemd & Debian Were Most Popular In September
  3. Microsoft Announces... Windows 10 With A Start Menu
  4. Borderlands 2 Launches On Steam For Linux
  5. Debian Jessie Might Get Rid Of The kFreeBSD Port
  6. Fedora Might Try A New Scheduling Strategy For Its Releases
  7. AMD's Catalyst Working On A GLSL Shader Cache
  8. OpenMP 4.0 Offloading Is Closer For GCC 5
  9. Wayland Presentation Extension Added To Weston
  10. Intel Skylake Support Rolls Out To Mesa's DRM
Latest Forum Discussions
  1. Updated and Optimized Ubuntu Free Graphics Drivers
  2. Nero CD/DVD Burning Software On Linux Is Dead
  3. New Group Calls For Boycotting Systemd
  4. FSF Issues Statement On Shellshock Bash Vulnerability
  5. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  6. X.Org Is Looking For Some Female Help
  7. Advertisements On Phoronix
  8. NVIDIA Alerts Nouveau: They're Starting To Sign/Validate GPU Firmware Images