Re: GDK + GLib main loop

2009-08-11 Thread Emmanuel Rodriguez
On Wed, Aug 12, 2009 at 5:09 AM, Mihai Draghicioiu < mihai.draghici...@gmail.com> wrote: > I have found the way. Here is my code. Any idea where I can post it as a > tutorial? > > You can submit your code to be included with the examples of gtkglarea or use the GNOME wiki (http://live.gnome.org/).

Re: GDK + GLib main loop

2009-08-11 Thread Mihai Draghicioiu
I have found the way. Here is my code. Any idea where I can post it as a tutorial? #include #include #include #include #include GdkGLWindow *glwin = NULL; GdkGLContext *glcontext = NULL; GMainLoop *mainloop; static void event_func(GdkEvent *ev, gpointer data) { printf("event func\n");

GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-11 Thread Grumpy Buffalo
Hi, I am working on a C++ GTK project. I have a GtkTreeView containing several columns. In the first column, I have packed in 3 cell renderers - the first, a GtkCellRendererToggle; the second, a GtkCellRendererPixbuf; the third, a GtkCellRendererText. Everything works fine, except that clicking on

Dashboard layout

2009-08-11 Thread iamfirecracker
Hi all, i'm developing a dashboard and i need some advices about its implementation. The dashboard is composed by 5 widgets, each one is a drawing area used to display stuff such as icons or text. Everything seems to be ok apart from a couple of things: 1 - What if i want to set a dashboard-backgro

RE: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Boggess Rod
Someone was nice enough to point out that outlook/exchange has caused me to thread-jack. I'll come up with an example and post under a new thread. > -Original Message- > From: David Nečas [mailto:y...@physics.muni.cz] > Sent: Tuesday, August 11, 2009 4:00 PM > To: Boggess Rod > Cc: GTK

Re: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread David King
On 2009-08-11 15:32, Boggess Rod wrote: -Original Message- From: Michael Cronenworth [mailto:m...@cchtml.com] Sent: Tuesday, August 11, 2009 3:22 PM To: Boggess Rod Cc: GTK Devel Subject: Re: Why is ChangeValue reentrant on a gtk_dialog_run? Boggess Rod on 08/11/2009 08:08 AM wrote: >

Re: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread David Nečas
On Tue, Aug 11, 2009 at 03:53:29PM -0400, Boggess Rod wrote: > I think this is a bug. I'm running Gtk 2.6 on HPUX. When I create a > callback for an HScale's "change-value", and within the callback I > create a dialog using gtk_message_dialog_new, whether I invoke the > dialog via gtk_dialog_run

RE: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Boggess Rod
I think this is a bug. I'm running Gtk 2.6 on HPUX. When I create a callback for an HScale's "change-value", and within the callback I create a dialog using gtk_message_dialog_new, whether I invoke the dialog via gtk_dialog_run or via gtk_widget_show_all, the dialog causes the HScale's "change-va

RE: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Boggess Rod
Not sure what you mean, so I don't know how to stop. "Why is ChangeValue reentrant on a gtk_dialog_run?" is the thread I started, and my responses have all pertained to this same issue. Am I missing something? > -Original Message- > From: Michael Cronenworth [mailto:m...@cchtml.com] >

Re: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Michael Cronenworth
Boggess Rod on 08/11/2009 08:08 AM wrote: > At the risk of beating a dead horse, I've figured out what the problem > is, I just don't understand why it's occurring or how to fix it. > You're thread jacking. Please stop. ___ gtk-app-devel-list mailing l

Re: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Chris Vine
On Tue, 11 Aug 2009 09:08:52 -0400 "Boggess Rod" wrote: > > At the risk of beating a dead horse, I've figured out what the problem > is, I just don't understand why it's occurring or how to fix it. > > If I call hscale's value-changed signal callback, I can return TRUE or > FALSE, and it behave

Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Boggess Rod
At the risk of beating a dead horse, I've figured out what the problem is, I just don't understand why it's occurring or how to fix it. If I call hscale's value-changed signal callback, I can return TRUE or FALSE, and it behaves as expected. If I create a static variable, increment it, do a modul

Re: gdk_draw_rgb[_32]_image alternative?

2009-08-11 Thread fka...@googlemail.com
Tadej Borovšak: > Why don't you use cairo to do the drawing? Because I was not aware of gdk_cairo_create(). :-) Thank You! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gdk_draw_rgb[_32]_image alternative?

2009-08-11 Thread Tadej Borovšak
Hello. > I am looking for an alternative to the gdk_draw_rgb[_32]_image() > functions for copying data into a drawable. Why don't you use cairo to do the drawing? The procedure would be as simple as: CODE cairo_t *cr; cairo_surface_t *surface; cr = gdk_cairo_create( drawable ); surfac

gdk_draw_rgb[_32]_image alternative?

2009-08-11 Thread fka...@googlemail.com
Hi all, I am looking for an alternative to the gdk_draw_rgb[_32]_image() functions for copying data into a drawable. I have a cairo suitable image buffer (32 bits per pixel) to copy from. The problem: I can neither use gdk_draw_rgb_image() nor gdk_draw_rgb_32_image(). The first needs a pure 24 bi

Re: scalable icons Windows

2009-08-11 Thread Matthew Talbert
On Tue, Aug 11, 2009 at 3:08 AM, Tor Lillqvist wrote: > Sigh, it was stupid of me to reply telling you to do what you already > told you had done. /me blushes and tries to be more careful in the > future. no problem. > Anyway, good that you got it working. Could you come up with some > short but

Re: scalable icons Windows

2009-08-11 Thread Tor Lillqvist
Sigh, it was stupid of me to reply telling you to do what you already told you had done. /me blushes and tries to be more careful in the future. Anyway, good that you got it working. Could you come up with some short but to-the-point Windows-specific instructions that could be included in some REA

Re: scalable icons Windows

2009-08-11 Thread Matthew Talbert
It's working now. I had previously hand-edited the gdk-pixbuf.loaders file, and evidently I made a small mistake (there are a couple of places where there are a number of spaces in a row. Perhaps I got the wrong number?). Anyway, thanks again for the help. I might suggest that instructions for thi