How do I catch right-click on a TreeView header?

2008-05-29 Thread John M Collins
Is there any way I can detect a right-click on a TreeView header?

I have a sorted tree view and left click is sorting the rows according
to the header just fine. clicked only applies to left clicks and I
don't want to invoke what I want to be the right-click function every
time I change the sort criterion.

button-press-event only seems to happen for the main body of the
TreeView not the header.

Any advice would be appreciated.

John Collins Xi Software Ltd www.xisl.com


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


The core of GTK++

2008-05-29 Thread jaafar EL GONNOUNI
Good morning;

What are the source files that formed the *core *of GTK++ ?

*According to my research I found the following files :

*  gtkobject.c / gtkobject.h
  gtkwidget.c / gtkwidget.h
  gtkcontainer.c / gtkcontainer.h
  gtkmain.c / gtkmain.h
  gtksignal.c / gtksignal.h
  gtktypeutils.c / gtktypeutils.h
  gtkdata.c / gtkdata.h

Can you confirm this ?


Best regards.

-- 
EL Gonnouni Jaâfar.
GSM : +21266682150.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: The core of GTK++

2008-05-29 Thread Tomas Carnecky
jaafar EL GONNOUNI wrote:
 Good morning;
 
 What are the source files that formed the *core *of GTK++ ?

How do you define the core? What belongs to your 'core'?

 
 *According to my research I found the following files :
 
 *  gtkobject.c / gtkobject.h
   gtkwidget.c / gtkwidget.h
   gtkcontainer.c / gtkcontainer.h
   gtkmain.c / gtkmain.h
   gtksignal.c / gtksignal.h
   gtktypeutils.c / gtktypeutils.h
   gtkdata.c / gtkdata.h
 
 Can you confirm this ?

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


Re: How do I catch right-click on a TreeView header?

2008-05-29 Thread Micah Carrick
You may be able to use gtk_tree_view_column_get_widget() since *I think* 
it's a GtkLabel (if not, you can make it so using set_widget()) and then 
connect to the button-press-event of that widget.

- Micah Carrick

  Developer - http://www.micahcarrick.com
  GTK+ Forums - http://www.gtkforums.com



John M Collins wrote:
 Is there any way I can detect a right-click on a TreeView header?

 I have a sorted tree view and left click is sorting the rows according
 to the header just fine. clicked only applies to left clicks and I
 don't want to invoke what I want to be the right-click function every
 time I change the sort criterion.

 button-press-event only seems to happen for the main body of the
 TreeView not the header.

 Any advice would be appreciated.

 John Collins Xi Software Ltd www.xisl.com


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

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


Re: Draw in a GdkPixbuf

2008-05-29 Thread Luis Menina
Thanks for your advice.

Unfortunately, this doesn't help here, since all the examples you cite 
use GTK, so they don't have the same problem, as they draw on existing 
drawables. What I want is drawing on an image that will not be rendered 
on screen. So I have no graphical context, just a GdkPixbuf as an input, 
and I want to modify that image to save it in a file. There's no problem 
for me if I don't work directly on the GdkPixbuf: something that will 
convert the GdkPixbuf into somethins else that I can draw on is an 
acceptable solution.

Cheers,

Luis

James Scott Jr a écrit :
 Take a look at the executable 'gtk-demo'.  It should have been installed
 with gtk's development tools; i.e. already loaded on you machine.  Hint:
 double click the sample for a live preview, then look at the source
 code.
 
 Additionally, here is a link to glinegraph, a simple line graph widget
 written twice, once in gdk and again in cairo.
 
 http://sourceforge.net/project/showfiles.php?group_id=157888package_id=191712
 
 James,
 
 
 
 
 On Thu, 2008-05-29 at 03:18 +0200, Luis Menina wrote:
 Hi list!

 I'm trying to find a way to draw in a GdkPixbuf (for example draw a 
 rectangle on the pixbuf) and save the result to a file afterwards.

 I found in devhelp the gdk_draw_* functions, but to use them I need a 
 GdkPixmap. gdk_pixmap_new requires a GdkDrawable. The problem is that 
 I'm developping a command line application, so I don't use GTK, only 
 glib, gdk, and gdk-pixbuf. Even creating the GdkPixmap with a NULL 
 GdkDrawable, I can't workaround the problem, because the documentation 
 of gdk_draw_pixbuf tells me that All windows have a colormap, however, 
 pixmaps only have colormap by default if they were created with a 
 non-NULL window argument. Otherwise a colormap must be set on them with 
 gdk_drawable_set_colormap(). Trying to get a colormap requires other 
 stuff, which requires other stuff, and so on...

 As this seems to be quite old-fashioned way of doing things, I tried to 
 see if cairo could do the trick. But it seems there's no way to draw to 
 a GdkPixbuf with cairo (I'm unfamiliar with cairo).

 So, does anyone have an hint on how to draw and save an image from a 
 GdkPixbuf, with gdk or cairo ?

 Thanks for you help,

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


Re: Draw in a GdkPixbuf

2008-05-29 Thread James Scott Jr
Ok,

http://cairographics.org/examples/
http://live.gnome.org/GtkCairoIntegration

These links have some examples of using everything from a raw image to a
pdf as the backend in cairo from the command line -- without the use of
gtk.

Hope this fits your need better than my last response.

James,


On Thu, 2008-05-29 at 03:18 +0200, Luis Menina wrote:
 Hi list!
 
 I'm trying to find a way to draw in a GdkPixbuf (for example draw a 
 rectangle on the pixbuf) and save the result to a file afterwards.
 
 I found in devhelp the gdk_draw_* functions, but to use them I need a 
 GdkPixmap. gdk_pixmap_new requires a GdkDrawable. The problem is that 
 I'm developping a command line application, so I don't use GTK, only 
 glib, gdk, and gdk-pixbuf. Even creating the GdkPixmap with a NULL 
 GdkDrawable, I can't workaround the problem, because the documentation 
 of gdk_draw_pixbuf tells me that All windows have a colormap, however, 
 pixmaps only have colormap by default if they were created with a 
 non-NULL window argument. Otherwise a colormap must be set on them with 
 gdk_drawable_set_colormap(). Trying to get a colormap requires other 
 stuff, which requires other stuff, and so on...
 
 As this seems to be quite old-fashioned way of doing things, I tried to 
 see if cairo could do the trick. But it seems there's no way to draw to 
 a GdkPixbuf with cairo (I'm unfamiliar with cairo).
 
 So, does anyone have an hint on how to draw and save an image from a 
 GdkPixbuf, with gdk or cairo ?
 
 Thanks for you help,
 
 Luis
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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


Question about gthread library on Windows

2008-05-29 Thread Atsushi SAKAI
Hi,

I have a question about gthred library on windows.
Which function is called from g_thread_create_full in binary?

From libglib-2.0-0.dll
 which is taken from http://www.gtk.org/download-windows.html
 It seems not using _beginthreadex. from objdump -d libglib-2.0-0.dll
 _beginthreadex is called from create_thread() only.

From glib source code 
 gthread/gthread-win32.c have function uses _beginthreadex.

Any suggestions are welcome.

By the way,
The search on left window does not work.
http://mail.gnome.org/archives/gtk-app-devel-list/2008-May/date.html
It appears following messages after pushing search button.

==
Not Found

The requested URL /mailman/search was not found on this server.
Apache/2.2.3 (Red Hat) Server at mail.gnome.org Port 80
==

Thanks
Atsushi SAKAI


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


GTK+ 2.13.1 released

2008-05-29 Thread Matthias Clasen
GTK+ 2.13.1 is now available for download at:

 http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.13/

gtk+-2.13.1.tar.bz2   md5sum: 16f57400a352aadda4b19f95aed14d0c
gtk+-2.13.1.tar.gzmd5sum: 19875a16e2b1db06ac4d0e9744f0c3a4

This is the second development release leading up to GTK+ 2.14.

Notes:

 * This is unstable development release. While it has had
   a bit of testing, there are certainly plenty of bugs
   remaining to be found. This release should not be used
   in production.

 * Installing this version will overwrite your existing
   copy of GTK+. If you have problems, you'll need
   to reinstall GTK+ 2.12.

 * GTK+ 2.14 will be source and binary compatible with
   the GTK+ 2.12 series; however, the new API additions
   are not yet finalized, so there may be incompatibilities 
   between this release and the final 2.14 release. 

 * Bugs should be reported to http://bugzilla.gnome.org.


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. 


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.8 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


Overview of Changes from GTK+ 2.13.0 to 2.13.1
==

 * Add GtkMountOperation, a subclass of GMountOperation that
   can show password dialogs when mounting volumes

 * Add GDI+-based pixbuf loaders for bmp, emf, gif, ico, jpeg, tiff, wmf

 * Add support for pixmap redirection, new api includes the 
   gtk_widget_get_snapshot() function and the GtkWidget::damage-event 
   signal and the lower-level gdk_window_redirect_to_drawable() and
   gdk_window_remove_redirection() functions

 * Add gtk_show_uri(), a replacement for gnome_vfs_url_show() and
   gnome_url_show()

 * Add a changed signal to GtkCellRendererCombo
 
 * Sync keysyms and compose sequences with recent X.org 

 * GtkBuilder
   - supports custom stock icons 
   - supports Pango attributes in labels
 
 * GtkRecentManager
   - uses GIO to monitor .recently-used.xbel
   - limits the growth of .recently-used.xbel with a 
 gtk-recent-files-max-age setting

 * Filechooser autocompletion has been reworked

 * The cups print backend displays printer status information
 
 * On OS X, accelerators are displayed using Unicode characters,
   matching the native behaviour

 * GtkIconTheme and GtkImage support GIcon

 * Bugs fixed: too many to list here. For the complete list, go to
 
http://bugzilla.gnome.org/buglist.cgi?bug_id=505085,446068,531865,531864,527612,137717,479197,519317,466000,530255,532262,523751,514396,529535,532787,526422,137503,434991,533920,533733,530801,532048,530156,530963,530153,437493,527466,467698,526021,346058,521178,488833,467051,518846,523932,523787,353088,522245,521739,461805,521442,522279,521934,522211,522191,522067,474302,469210,488820,521548,521442,461805,520979,517066,410517,513826,469210,353196,490892,518166,517954,347125,518624,517295,517908,519199,518642,496032,490787,314873,417389,321896,505857,520286,469868,51,99192,523225,314084,523782,524151,492134,330743,506062,487375,488507,529841,529386,532059,532558,496958,322298,318807,387972,520989,532497,534694,479384,523930,501730,534463,522269,524110,525461,526635,523562,507389,513811,511163,534869,530353,531008,533891,106574,477278,351910,485218,511217,404571,509788,485218,324282,498010,504087,449625,522084,56355,535526,532558,535453,524862,533761,465144,531887,535250

 * New and updated translations:
 Arabic (ar)
 Valencian-Catalan (ca)
 German (de)
 Canadian English (en_CA)
 British English (en_GB)
 Spanish (es)
 Estonian (et)
 Galician (gl)
 Hebrew (he)
 Hungarian (hu)
 Kannada (kn)
 Norwegian bokmål (nb)
 Dutch (nl)
 Norwegian Nynorsk (nn)
 

Re: The core of GTK++

2008-05-29 Thread Tomas Carnecky
jaafar EL GONNOUNI wrote:
 Good morning;
 
 What are the source files that formed the *core *of GTK++ ?

How do you define the core? What belongs to your 'core'?

 
 *According to my research I found the following files :
 
 *  gtkobject.c / gtkobject.h
   gtkwidget.c / gtkwidget.h
   gtkcontainer.c / gtkcontainer.h
   gtkmain.c / gtkmain.h
   gtksignal.c / gtksignal.h
   gtktypeutils.c / gtktypeutils.h
   gtkdata.c / gtkdata.h
 
 Can you confirm this ?

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


GTK+ 2.13.1 released

2008-05-29 Thread Matthias Clasen
GTK+ 2.13.1 is now available for download at:

 http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.13/

gtk+-2.13.1.tar.bz2   md5sum: 16f57400a352aadda4b19f95aed14d0c
gtk+-2.13.1.tar.gzmd5sum: 19875a16e2b1db06ac4d0e9744f0c3a4

This is the second development release leading up to GTK+ 2.14.

Notes:

 * This is unstable development release. While it has had
   a bit of testing, there are certainly plenty of bugs
   remaining to be found. This release should not be used
   in production.

 * Installing this version will overwrite your existing
   copy of GTK+. If you have problems, you'll need
   to reinstall GTK+ 2.12.

 * GTK+ 2.14 will be source and binary compatible with
   the GTK+ 2.12 series; however, the new API additions
   are not yet finalized, so there may be incompatibilities 
   between this release and the final 2.14 release. 

 * Bugs should be reported to http://bugzilla.gnome.org.


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. 


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.8 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


Overview of Changes from GTK+ 2.13.0 to 2.13.1
==

 * Add GtkMountOperation, a subclass of GMountOperation that
   can show password dialogs when mounting volumes

 * Add GDI+-based pixbuf loaders for bmp, emf, gif, ico, jpeg, tiff, wmf

 * Add support for pixmap redirection, new api includes the 
   gtk_widget_get_snapshot() function and the GtkWidget::damage-event 
   signal and the lower-level gdk_window_redirect_to_drawable() and
   gdk_window_remove_redirection() functions

 * Add gtk_show_uri(), a replacement for gnome_vfs_url_show() and
   gnome_url_show()

 * Add a changed signal to GtkCellRendererCombo
 
 * Sync keysyms and compose sequences with recent X.org 

 * GtkBuilder
   - supports custom stock icons 
   - supports Pango attributes in labels
 
 * GtkRecentManager
   - uses GIO to monitor .recently-used.xbel
   - limits the growth of .recently-used.xbel with a 
 gtk-recent-files-max-age setting

 * Filechooser autocompletion has been reworked

 * The cups print backend displays printer status information
 
 * On OS X, accelerators are displayed using Unicode characters,
   matching the native behaviour

 * GtkIconTheme and GtkImage support GIcon

 * Bugs fixed: too many to list here. For the complete list, go to
 
http://bugzilla.gnome.org/buglist.cgi?bug_id=505085,446068,531865,531864,527612,137717,479197,519317,466000,530255,532262,523751,514396,529535,532787,526422,137503,434991,533920,533733,530801,532048,530156,530963,530153,437493,527466,467698,526021,346058,521178,488833,467051,518846,523932,523787,353088,522245,521739,461805,521442,522279,521934,522211,522191,522067,474302,469210,488820,521548,521442,461805,520979,517066,410517,513826,469210,353196,490892,518166,517954,347125,518624,517295,517908,519199,518642,496032,490787,314873,417389,321896,505857,520286,469868,51,99192,523225,314084,523782,524151,492134,330743,506062,487375,488507,529841,529386,532059,532558,496958,322298,318807,387972,520989,532497,534694,479384,523930,501730,534463,522269,524110,525461,526635,523562,507389,513811,511163,534869,530353,531008,533891,106574,477278,351910,485218,511217,404571,509788,485218,324282,498010,504087,449625,522084,56355,535526,532558,535453,524862,533761,465144,531887,535250

 * New and updated translations:
 Arabic (ar)
 Valencian-Catalan (ca)
 German (de)
 Canadian English (en_CA)
 British English (en_GB)
 Spanish (es)
 Estonian (et)
 Galician (gl)
 Hebrew (he)
 Hungarian (hu)
 Kannada (kn)
 Norwegian bokmål (nb)
 Dutch (nl)
 Norwegian Nynorsk (nn)