Re: cairo functions too use instead of gdk ones

2010-09-23 Thread Christopher Roy Bratusek
Am Thu, 23 Sep 2010 21:11:57 +0200
schrieb Tadej Borovšak :

> Hi.
> 
> Replacements would probably look like this:
> 
> > gdk_gc_new
> 
> cairo_create() or gdk_cairo_create() if you're using GTK+
> 
> > gdk_gc_set_foreground
> 
> cairo_set_source_rgb() or gdk_cairo_set_source_color()
> 
> > gdk_pixmap_create_from_xpm
> 
> This last one is a bit tricky, since you should not use GdkPixmaps
> anymore. For equivalent result, you'll need to
>  - create new cairo surface that will serve as a replacement for GdkPixmap
>  - load XPM into GdkPixbuf
>  - paint that pixbuf onto your new surface

Well it's an pretty old app. From devhelp I saw that PNGs should be easier.

Thanks for your help.

> Tadej

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: cairo functions too use instead of gdk ones

2010-09-23 Thread Tadej Borovšak
Hi.

Replacements would probably look like this:

> gdk_gc_new

cairo_create() or gdk_cairo_create() if you're using GTK+

> gdk_gc_set_foreground

cairo_set_source_rgb() or gdk_cairo_set_source_color()

> gdk_pixmap_create_from_xpm

This last one is a bit tricky, since you should not use GdkPixmaps
anymore. For equivalent result, you'll need to
 - create new cairo surface that will serve as a replacement for GdkPixmap
 - load XPM into GdkPixbuf
 - paint that pixbuf onto your new surface

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


cairo functions too use instead of gdk ones

2010-09-23 Thread Christopher Roy Bratusek
Hi all,

I'm wondering which cairo functions replace

gdk_gc_new
gdk_gc_set_foreground
gdk_pixmap_create_from_xpm

Any hint is appreciated.

Chris
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK+ 2.22.0 released

2010-09-23 Thread Matthias Clasen
GTK+ 2.22.0 is now available for download at:

 http://download.gnome.org/sources/gtk+/2.22/
 ftp://ftp.gtk.org/pub/gtk/2.22/

sha256 sums:
d9522c80d4b8a954f7474e32bd5a99ba3051996f1c4681426db5f79a1c1b4602  gtk
+-2.22.0.tar.bz2
d0247ca6619a0ec2fa3f2f042a7d3a72fbacec4f5ad72f67aafb0f5f03be3c0b  gtk
+-2.22.0.tar.gz


What is GTK+


GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is
suitable for projects ranging from small one-off tools to
complete application suites.

GTK+ has been designed from the ground up to support a range
of languages, not only C/C++. Using GTK+ from languages such
as Perl and Python (especially in combination with the Glade
GUI builder) provides an effective method of rapid application
development.

GTK+ is free software and part of the GNU Project. However,
the licensing terms for GTK+, the GNU LGPL, allow it to be
used by all developers, including those developing proprietary
software, without any license fees or royalties. GTK+ is the
only 100% free-of-cost open source industrial-strength GUI
toolkit available today.

Since its origins as the toolkit for the GNU Image
Manipulation Program (GIMP), GTK+ has been used in a wide
range of software. Notably, GTK+ is the foundation of the
GNOME desktop; GTK+ 2.22 will be incorporated into version
2.32 of the GNOME desktop.


What's new in GTK+ 2.22
===

GTK+ 2.22 adds new functionality while maintaining source and binary
compatibility with earlier GTK+ 2.x releases.
Highlights of new features and improvements in GTK+ 2.22 are:

 - gdk-pixbuf has been separated into its own module again.
   Find it here: http://download.gnome.org/sources/gdk-pixbuf/2.22/

 - GTK+ and GDK have gained a considerable number of accessors,
   and more APIs that are slated for removal in GTK+ 3 have been
   marked as deprecated.
   These allow to prepare applications for a port to GTK+ 3, using
   the G_SEAL_ENABLE and GTK_DISABLE_DEPRECATED defines.

 - A few new cairo-related functions have been introduced, such as
   gdk_window_create_similar_surface() and
gdk_window_get_background_pattern(),
   to facilitate the move to entirely cairo-based drawing in GTK+ 3.
   Most drawing done by GTK+ itself has already been ported from
   GDK drawing APIs to cairo.

For more details and lists of fixed bugs, see the
announcements for the 2.21.x development releases:

http://mail.gnome.org/archives/gtk-devel-list/2010-May/msg00026.html
http://mail.gnome.org/archives/gtk-devel-list/2010-May/msg00157.html
http://mail.gnome.org/archives/gtk-devel-list/2010-June/msg00067.html
http://mail.gnome.org/archives/gtk-devel-list/2010-June/msg00183.html
http://mail.gnome.org/archives/gtk-devel-list/2010-July/msg00022.html
http://mail.gnome.org/archives/gtk-devel-list/2010-August/msg00127.html
http://mail.gnome.org/archives/gtk-devel-list/2010-August/msg00291.html
http://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00204.html


Where to get more information about GTK+


Information about GTK+ including links to documentation can be
found at:
 
 http://www.gtk.org/

An installation guide for GTK+ 2.x is found at:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html

Common questions:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html
 http://www.gtk.org/faq/


Contributing


GTK+ is a large project and relies on voluntary contributions.
We are actively searching for new contributors in various areas
and invite everyone to help project development.
If you are willing to participate, please subscribe to the project
mailing lists to offer your help and read over our list of vacant
project tasks:
http://live.gnome.org/GtkTasks


The GTK+ Team:

 Jonathan Blandford, Hans Breuer, Kristian Rietveld,
 Matthias Clasen, Tim Janik, Tor Lillqvist, Federico Mena Quintero,
 Søren Sandmann, Manish Singh, and Owen Taylor

Thanks to everybody else who has contributed to this release:
Adel Gadllah, Benjamin Otte, Carl-Anton Ingmarsson,
Carlos Garcia Campos, Chris Kühl, Christian Dywan,
Christian Persch, Claude Paroz, Claudio Saavedra,
Cody Russell, Colin Walters, Cosimo Cecchi,
Didier Roche, Emmanuele Bassi, Florian Scandella,
Fridrich Štrba, Garret Regier, Garrett Regier,
Hans van Hintum, Hib Eris, Hiroyuki Ikezoe,
Ignacio Casal Quinteiro, Jan Arne Petersen,
Javier Jardón, Johan Bilien, John Palmieri,
John Stowers, Lionel Landwerlin, Marek Kasik,
Martin Schlemmer, Martyn Russell, Matthew Barnes,
Michael Meeks, Michael Natterer, Mike Gorse,
Milan Bouchet-Valat, Mirsal Ennaime, Neil Roberts,
Paolo Borelli, Patrick Bernaud, Paul Davis,
Philip Withnall, Sam Thursfield, Sebastian Dröge,
Sergey Orlov, Stanislas Marquis, Stanislav Brabec,
Stefan Kost, Steve Frécinaux, Steven Harms,
Sven Herzberg, Szilárd Pfeiffer, Tadej Borovšak,
Thomas Wood, Tomas Bzatek, Tomeu Vizoso,
Torsten Schönfeld, Tristan Van Berkom,
Vincent Untz, 

changing the way checkbutton looks

2010-09-23 Thread Sergei Steshenko
Hello,

by default checkbutton has kind of 'v' on it when active and no special
sign when not active.

Is there a simple way to change what's shown on it inside the application ?
I.e. I do not want to change this in theme.

Thanks,
  Sergei.


  
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list