Toggle Button Groups

2008-06-15 Thread Lucas Levin
Hi, What is the best way to make a radio-like group of toggle buttons so when one button is activated, all the rest aren't? Thanks! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-lis

Re: Toggle Button Groups

2008-06-15 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lucas Levin wrote: | Hi, | What is the best way to make a radio-like group of toggle buttons so | when one button is activated, all the rest aren't? Take a look at GtkRadioButton in devhelp All the best, - -G | Thanks! | | __

Drawing with alias

2008-06-15 Thread Lucas Levin
*feels guilty about posting twice in one day* Hi, Is there any way to draw shapes and lines on a drawable or through cairo without antialiasing? Or does anyone know a way to do this with an external library that can link with gtk? I'm trying to create a raster drawing application and I'm having tro

Windows verses Dialogs

2008-06-15 Thread dhk
When should a dialog be used instead of a window? Can't a window always be used? Do you give anything up when using a dialog? What's the difference? Thanks, Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Windows over Windows

2008-06-15 Thread dhk
How can a modal window or dialog from a secondary event always and completely cover the main window? The main window should look like it was replaced until the second window or dialog is closed. Thanks, Dave ___ gtk-app-devel-list mailing list gtk-ap

Re: Windows over Windows

2008-06-15 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 dhk wrote: | How can a modal window or dialog from a secondary event always and | completely cover the main window? The main window should look like it | was replaced until the second window or dialog is closed. Depending upon the sizes of the two w

Re: Windows verses Dialogs

2008-06-15 Thread Carlos Pereira
dhk wrote: When should a dialog be used instead of a window? Can't a window always be used? Do you give anything up when using a dialog? What's the difference? I have more than 100 task dialogs in my app. I NEVER use dialogs... always windows! you have much more flexibility, your code is

g_signal_connect

2008-06-15 Thread Carlos Pereira
For the sake of elegance, which version people like more? 1) g_signal_connect (widget, "signal", G_CALLBACK (callback), data); 2) g_signal_connect (G_OBJECT (widget), "signal", G_CALLBACK (callback), data); 3) g_signal_connect (GTK_OBJECT (widget), "signal", G_CALLBACK (callback), data); Carlo

Re: Windows over Windows

2008-06-15 Thread dhk
Gregory Hosler wrote: dhk wrote: | How can a modal window or dialog from a secondary event always and | completely cover the main window? The main window should look like it | was replaced until the second window or dialog is closed. Depending upon the sizes of the two windows... The modal wind

Re: Windows over Windows

2008-06-15 Thread Brian J. Tarricone
On Sun, 15 Jun 2008 18:50:30 + dhk wrote: > I like the hide idea, but when I try to hide the main window nothing > happens. The basic logic I'm using to try to hide the main window > when a new window pops up after selecting from the menu in the main > window is: GtkWidget > *tlwin=gtk_widg

Re: g_signal_connect

2008-06-15 Thread Brian J. Tarricone
On Sun, 15 Jun 2008 19:40:22 +0100 Carlos Pereira wrote: > For the sake of elegance, which version people like more? > > 1) g_signal_connect (widget, "signal", > G_CALLBACK (callback), data); I think this was the "intended" use -- the first param is of type gpointer so you don't have to use a ca

Re: Windows over Windows

2008-06-15 Thread Carlos Pereira
dhk wrote: Gregory Hosler wrote: dhk wrote: | How can a modal window or dialog from a secondary event always and | completely cover the main window? The main window should look like it | was replaced until the second window or dialog is closed. Depending upon the sizes of the two windows... Th

Re: g_signal_connect

2008-06-15 Thread Carlos Pereira
Brian J. Tarricone wrote: On Sun, 15 Jun 2008 19:40:22 +0100 Carlos Pereira wrote: For the sake of elegance, which version people like more? 1) g_signal_connect (widget, "signal", G_CALLBACK (callback), data); I think this was the "intended" use -- the first param is of type gpointer