GTK3 porting problem (clipboard)

2011-03-10 Thread Miroslav Rajcic
I resolved the majority of the the issues when porting my program from GTK 2.x to GTK 3.x. Unfortunately I still have one issue left: when compiling the program on Feodra 15 alpha (gcc 4.6, GTK3 v3.0.2) I get these errors: ./src/clipboard.cpp:442:38: error: invalid use of incomplete type

Re: GTK3 porting problem (clipboard)

2011-03-10 Thread Jaroslav Šmíd
I don't know the answer, but this is wrong: int nTargetCnt = g_list_length (list-list); g_list_length returns guint, not int. Although this is valid code (implicit typecast), it can cause bad things. On 03/10/2011 01:44 PM, Miroslav Rajcic wrote: I resolved the majority of the the issues

gtk+3 and the user's homedir .gtkrc-3.0

2011-03-10 Thread John Lumby
The gtk3 reference on resource files,   gtk+-3.0.2/docs/reference/gtk/html/gtk3-Resource-Files.html,states that,   although deprecated,      certain files will be read at the end of gtk_init().        Unless modified, the files looked for will be       SYSCONFDIR/gtk-2.0/gtkrc and .gtkrc-3.0 in

RE: gtk+3 and the user's homedir .gtkrc-3.0

2011-03-10 Thread John Lumby
Apologies for the awful formatting of that posting  -  let me try again  : The gtk3 reference on resource files,   gtk+-3.0.2/docs/reference/gtk/html/gtk3-Resource-Files.html, states that,  although deprecated, certain files will be read at the end of gtk_init().   Unless modified,

Re: Strange dead lock with g_threads_enter

2011-03-10 Thread Wei-Ning Huang
I attached a full trace off the the program running, can anyone check it out for me? 2011/3/5 Chris Vine ch...@cvine.freeserve.co.uk On Sat, 5 Mar 2011 11:58:23 +0800 Wei-Ning Huang aitjc...@gmail.com wrote: [snip] From what I can see, the program is stuck because the main thread locked a

How to avoid POINTER_MOTION events for not active windows?

2011-03-10 Thread Stefan Salewski
I am working on a simple linux/gnome/gtk/cairo/ruby application similar to http://www.ssalewski.de/PetEd-Demo.html.en I want to get POINTER_MOTION events when mouse pointer is in my GTK drawing area. When I call add_events() for my drawing area with flag Gdk::Event::POINTER_MOTION_MASK I get

Re: GTK3 porting problem (clipboard)

2011-03-10 Thread Allin Cottrell
On Fri, 11 Mar 2011, [windows-1252] Jaroslav ^Jm�d wrote: From GTK documentation: --- A GtkTargetList structure is a reference counted list of GtkTargetPair. It is used to represent the same information as a table of GtkTargetEntry, but in an efficient form. This structure should be

Re: GTK3 porting problem (clipboard)

2011-03-10 Thread Miroslav Rajcic
You're right, but this seems odd. In the GTK3 version of the documentation the basic structures GtkTargetEntry and GtkTargetPair are still exposed in the API, and although GtkTargetList is said to be opaque (a) it's unclear why this should be so (it seems to be a trivial composite) and (b) the