Re: GDK + GLib main loop

2009-07-22 Thread Emmanuel Rodriguez
On Thu, Jul 23, 2009 at 7:34 AM, Mihai Draghicioiu < mihai.draghici...@gmail.com> wrote: > I'd rather avoid the overhead of GTK+. My other choices were SDL and glut > (and maybe others), but none of those offer the features of GDK (and > GLib!). > > I have thought about using GTK+, and it's just p

Re: GDK + GLib main loop

2009-07-22 Thread Mihai Draghicioiu
I'd rather avoid the overhead of GTK+. My other choices were SDL and glut (and maybe others), but none of those offer the features of GDK (and GLib!). I have thought about using GTK+, and it's just pointless overhead, because I'm going to use my own (OpenGL-based) UI library. Besides, it's more fu

Re: GDK + GLib main loop

2009-07-22 Thread Emmanuel Rodriguez
On Thu, Jul 23, 2009 at 5:33 AM, Mihai Draghicioiu < mihai.draghici...@gmail.com> wrote: > Hi all! I'm making an OpenGL application based on GDK + GtkGLArea. My code > so far works, but it has two issues: Do you really need to have your application based on GDK? Can't you use GTK instead? By usin

Re: GDK + GLib main loop

2009-07-22 Thread Dov Grobgeld
You don't manually loop for events, but instead set up your drawing in the expose handle of the drawing widget. You then connect to this handle through: g_signal_connect(drawing_area, "expose-event", G_CALLBACK(my_expose_handler), user_data); See the

GDK and GLib main loop

2009-07-22 Thread Mihai Draghicioiu
Hi all! I'm making an OpenGL application based on GDK and GtkGLArea. My code so far works, but it has two issues: 1. It does not handle events in a blocking fashion. 2. Somehow the window does not receive an Expose event. I was told that for blocking until an event arrives, I'd have to use GLib m

GDK + GLib main loop

2009-07-22 Thread Mihai Draghicioiu
Hi all! I'm making an OpenGL application based on GDK + GtkGLArea. My code so far works, but it has two issues: 1. It does not handle events in a blocking fashion. 2. Somehow the window does not receive an Expose event. I was told that for blocking until an event arrives, I'd have to use GLib mai

Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Mick
On Wed, 22 Jul 2009 15:08:04 +0200 Nicola Fontana wrote: > Il giorno Wed, 22 Jul 2009 17:20:06 +1000 > Mick ha scritto: > > > src/Makefile.am > > -- > > bin_PROGRAMS = nuchimp > > > > nuchimp_SOURCES = \ > > callback.c callback.h \ > >

Re: spinbutton example

2009-07-22 Thread le a
  I mean, I compiled and run the example, but the toggle "Snap to 0.5-ticks" doesn't seems to work.     Thanks for any help. Lee ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-deve

Re: flow control question

2009-07-22 Thread Allin Cottrell
On Wed, 22 Jul 2009, Chris Vine wrote: > On Tue, 21 Jul 2009 23:45:38 -0400 (EDT) > Allin Cottrell wrote: > > On Tue, 21 Jul 2009, Dov Grobgeld wrote: > > > > > Here are two programs that implement through the text viewer > > > widget what you are asking for: > > > > > >- The Python console i

Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Nicola Fontana
Il giorno Wed, 22 Jul 2009 17:20:06 +1000 Mick ha scritto: > src/Makefile.am > -- > bin_PROGRAMS = nuchimp > > nuchimp_SOURCES = \ > callback.c callback.h \ > main.c main.h > > AM_CPPFLAGS = $(GTK_CFLAGS) > AM_LDFLAGS = $(GTK_CFLA

spinbutton example

2009-07-22 Thread le a
Hi all,   I am trying to understand the spinbutton example from http://library.gnome.org/devel/gtk-tutorial/stable/x969.html   What is suppose the gtk_spin_button_set_snap_to_tick() function to do? Does it toggle between 0.5 and 0.1 (the min value where "digits" is 2)? Is the example given wrong

Re: flow control question

2009-07-22 Thread Chris Vine
On Tue, 21 Jul 2009 23:45:38 -0400 (EDT) Allin Cottrell wrote: > On Tue, 21 Jul 2009, Dov Grobgeld wrote: > > > Here are two programs that implement through the text viewer > > widget what you are asking for: > > > >- The Python console in gimp > >- GemTcl - a tcl interpreter > > > > The

Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Mick
On Wed, 22 Jul 2009 00:46:45 -0400 Braden McDaniel wrote: > On Wed, 2009-07-22 at 12:41 +1000, Mick wrote: > > [snip] > > > Now the source compiles but linking produces: > > gcc -Wall -g -O2 -export-dynamic -o nuchimp callback.o main.o > > callback.o: In function `on_panicbutton_clicked': >