Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Rena
Hi, just joined the mailing list, been using GTK and related projects for a while now. Recently I've been developing a Game Boy emulator that uses GtkDrawingArea and GdkPixbuf to display the game screen. In addition to the game output I want to also be able to draw text and shapes on the display

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Colomban Wendling
Hi, Le 18/02/2013 11:10, Rena a écrit : Hi, just joined the mailing list, been using GTK and related projects for a while now. Recently I've been developing a Game Boy emulator that uses GtkDrawingArea and GdkPixbuf to display the game screen. In addition to the game output I want to also

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Colomban Wendling
Le 18/02/2013 14:50, Rena a écrit : On Mon, Feb 18, 2013 at 8:35 AM, Colomban Wendling lists@herbesfolles.org wrote: Hi, Le 18/02/2013 11:10, Rena a écrit : Hi, just joined the mailing list, been using GTK and related projects for a while now. Recently I've been developing a Game Boy

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-18 Thread Olivier Guillion - Myriad
Hi, I made some more tests about the solutions that seem to be useable. It appears that they are not. Reminder: the problem is to let the application manage window stacking (z- order), instead of letting the Window manager do most of the job by itself. - The gtk_windows_set_transient_for()

parsing bibtex using gscanner

2013-02-18 Thread Rudra Banerjee
Dear Friends, I am trying to parse a bibtex file using gscanner. The problem is that, due to many formats accepted by bibtex, it seems bit hard to parse it. What I mean is as long as the bibtex is of the form key=some value, then g_scanner_get_next_token can get the string. But it fails if it is

Re: parsing bibtex using gscanner

2013-02-18 Thread Rudra Banerjee
Below is a minimal example. One can check the problem with key={some value} by changing, say, author = \Chowdhury, D.\,\n to author = {Chowdhury, D.},\n This can be compiled as gcc -Wall `pkg-config --cflags --libs gtk+-3.0` glex.c /*glex.c*/ #include glib.h #include string.h /* Test data */

Re: parsing bibtex using gscanner

2013-02-18 Thread David Nečas
On Mon, Feb 18, 2013 at 05:15:56PM +, Rudra Banerjee wrote: I am trying to parse a bibtex file using gscanner. The problem is that, due to many formats accepted by bibtex, it seems bit hard to parse it. What I mean is as long as the bibtex is of the form key=some value, then

Re: parsing bibtex using gscanner

2013-02-18 Thread Rudra Banerjee
I forget the acknowledgment: http://www.gtkforums.com/viewtopic.php?f=3t=178159 On Mon, 2013-02-18 at 18:00 +, Rudra Banerjee wrote: Below is a minimal example. One can check the problem with key={some value} by changing, say, author = \Chowdhury, D.\,\n to author = {Chowdhury, D.},\n

Re: parsing bibtex using gscanner

2013-02-18 Thread Rudra Banerjee
On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote: The best approach to parse a grammar is, you know, using a parser. So anything better then bison? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: parsing bibtex using gscanner

2013-02-18 Thread Rudra Banerjee
On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote: The best approach to parse a grammar is, you know, using a parser. So is there any better option then bison? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-18 Thread Sam Spilsbury
Hi, On Thu, Feb 14, 2013 at 12:17 AM, Olivier Guillion - Myriad oliv...@myriad-online.com wrote: Hi, I'm struggling with this problem for several days now, and can't find any solution. I'm writing an application for Ubuntu using GTK in C language. This application manages various windows