Re: timers

2005-12-11 Thread Ben Johnson
On Sun, Dec 11, 2005 at 07:53:22PM -0500, Travis Miller wrote: I have another GLib question. Currently I am writing some code that needs to perform some calculations every second. SO I want the function called every second. So rather than using setitimer to create a SIGALRM event that

Re: Repeated timeouts period

2005-10-12 Thread Ben Johnson
On Wed, Oct 12, 2005 at 10:28:24PM +0200, Nicolas George wrote: ... So timeouts that try to catch up are not an absolute necessity, but they are quite useful in some programs. I think you already know it's very easy enough to make a timeouts that try to catch up. what's more difficult is

Re: gtk_marshal_BOOL__POINTER() question

2005-09-14 Thread Ben Johnson
On Wed, Sep 14, 2005 at 05:22:08PM -0500, John Gotts wrote: Hi, I'm working on solving an intermittent bug with our gtk+ 1.x/Glade 1.x application, although my problem should be general enough that people more accustomed to 2.x should be able to help. We're embedding the GtkSheet widget as a

Re: Periodic and cross platform timers or alarms

2005-08-10 Thread Ben Johnson
On Wed, Aug 10, 2005 at 01:16:10PM -0500, Douglas Vechinski wrote: ... Does GTK+ or GLIB provide any type of repeating timers or alarms? I'm looking for a portable way (Linux and XP). Unix has alarm and XP has other timers I believe but was looking for something that might be common to both.

Re: Periodic and cross platform timers or alarms

2005-08-10 Thread Ben Johnson
On Wed, Aug 10, 2005 at 02:34:22PM -0500, Douglas Vechinski wrote: Thanks for the info but you now made me think of another question. While in the callback, if I determine that I need to perform a task that could take a while, do I need to be worried that the alarm or signal could be

Re: Tree Store for layers

2005-07-28 Thread Ben Johnson
On Thu, Jul 28, 2005 at 11:41:59AM -0400, Paul Davis wrote: On Tue, 2005-07-26 at 14:43 +0100, David Conley (FRD) wrote: I'm hoping to use a tree store/view to create a layer typer system where the higher up the tree an object is, the closer to the front of the screen an object would be.

Re: Obtaining current value from a GtkHscale

2005-07-22 Thread Ben Johnson
On Fri, Jul 22, 2005 at 02:02:15PM -0500, Douglas Vechinski wrote: I've been searching the GTK API trying to figure out what is probably a simple question. How do I get the current value from a GtkHscale scale bar? When I'm having trouble finding a function I need for a given widget,

Re: Obtaining current value from a GtkHscale

2005-07-22 Thread Ben Johnson
On Fri, Jul 22, 2005 at 05:11:53PM -0500, Douglas Vechinski wrote: On Fri, 2005-07-22 at 13:31 -0700, Ben Johnson wrote: On Fri, Jul 22, 2005 at 02:02:15PM -0500, Douglas Vechinski wrote: I've been searching the GTK API trying to figure out what is probably a simple question. How do

Re: catch logout/SIGHUP

2005-07-21 Thread Ben Johnson
On Thu, Jul 21, 2005 at 03:39:46AM +0200, Jochen Baier wrote: hi, i wonder what is the right procedure to do some cleanup if the user logout from session and the program is still alive. (Save file before exit etc) I thought system (SIGHUP,...) is the right way, but i didnt find this

Re: GIOChannels

2005-07-10 Thread Ben Johnson
On Fri, Jul 08, 2005 at 03:40:15PM -0400, Jon Oberheide wrote: Greetings, I have a client and server architecture that communicates using GIOChannels. When the client is connected to the server and then suddenly killed (via a kill -9 or some other signal that does not hang up the

Re: Get rid of cursor in Label

2005-06-26 Thread Ben Johnson
On Sun, Jun 26, 2005 at 09:57:09AM +0200, David Necas (Yeti) wrote: it is annoying, but not so bad imho. It's the correct behaviour. well, you're wrong. you don't understand what I'm talking about, and it seems pretty clear that you don't care about trying to understand. Why are you

Re: Get rid of cursor in Label

2005-06-25 Thread Ben Johnson
On Sun, Jun 26, 2005 at 12:36:04AM +0200, David Necas (Yeti) wrote: On Sat, Jun 25, 2005 at 10:57:32PM +0200, Preben Randhol wrote: If one setup a Label so that one can select the text of the label, one get an annoying |-cursor at the beginning of the label. How can one get rid of this?

Re: idea: widget alert

2005-06-19 Thread Ben Johnson
On Mon, Jun 20, 2005 at 12:49:00AM +1000, Timothy Stebbing wrote: ... widgets for 'alerting' the user to the widget. This would make the widget blink/glow/throb/sparkle, depending on the gtk theme engine in use. The primary use for this would be to notify the user about some change in the

Re: lockups in win32

2005-06-19 Thread Ben Johnson
On Thu, Jun 16, 2005 at 05:01:16PM -0400, Greg Steffensen wrote: Hey, I'm developing an app in for windows using python and PyGTK, and it sometimes locks up, and the locks up the entire windows xp interfrace. I'm pretty certain that the main bug is in my code, not GTK, but I'm trying to

Re: idea: widget alert

2005-06-19 Thread Ben Johnson
On Mon, Jun 20, 2005 at 09:27:32AM +1000, Timothy Stebbing wrote: Ben Johnson wrote: On Mon, Jun 20, 2005 at 12:49:00AM +1000, Timothy Stebbing wrote: ... widgets for 'alerting' the user to the widget. This would make the widget blink/glow/throb/sparkle, depending on the gtk theme

Re: need help in communicating messages in a tooltip style

2005-06-01 Thread Ben Johnson
On Wed, Jun 01, 2005 at 04:37:42AM -0700, peter wrote: Hi, I am building an application with GTK+ and I want to communicate messages to the user in the form of tool tips which are independent of buttons ... I don't want my messages to be in a message box but I want the message to show in

Re: GnomeDateEdit

2005-05-30 Thread Ben Johnson
On Mon, May 30, 2005 at 10:42:49AM +0100, abhi rocks wrote: hi Could someone please tell me how to access the GtkEntry field in the GnomeDateEdit widget. Or it would be cooler if someone could tell me how to extract the date and time from time_t data type. look at the

[slightly OT] non-blocking rpc-like thing?

2005-05-27 Thread Ben Johnson
hey. I'm using an embedded perl interpreter in my app right now. This is source of some inconviniences, so I'm thinking about moving the perl piece into a seperate process. In order to make this worthwhile I'll need an interface that can work with the gtk main loop (i.e. something that uses

solution (good enough for now) - Re: how to get rid of mouse-over button color?

2005-05-08 Thread Ben Johnson
On Sun, May 01, 2005 at 04:48:20PM -0700, Ben Johnson wrote: Hi. I'm working with a touch screen, which I'm learning makes mouse-over types of events sort of meaningless. Yet, they still occur. I have a page full of toggle buttons and it can be difficult to determine when one is down

generalized wizard dialog?

2005-05-05 Thread Ben Johnson
Hey. I made my first little wizard dialog a little while ago, and learned a lot about the problems involved with making a wizard. In order to make this process easier and less error prone, I thinking about making a generalized wizard dialog. first, does something like this already exist that I

Re: how to get rid of mouse-over button color?

2005-05-04 Thread Ben Johnson
On Mon, May 02, 2005 at 03:34:49PM +0200, Richard Stellingwerff wrote: ... Which theme does this currently happen with? Because you should always be able to see whether a button is pressed or not, even on mouse-over. I've never messed with themes at all, so I have no idea what theme I'm using.

Re: how to get rid of mouse-over button color?

2005-05-04 Thread Ben Johnson
On Mon, May 02, 2005 at 04:00:30PM +0200, Richard Stellingwerff wrote: ... As the author of Clearlooks, I got complaints about exactly this issue from people using normal mouse input devices. The way I fixed it in the engine, is by simply ignoring the prelight color for toggled togglebuttons

Re: how to get rid of mouse-over button color?

2005-05-04 Thread Ben Johnson
On Mon, May 02, 2005 at 10:53:12AM -0400, Owen Taylor wrote: ... A custom theme could do whatever it wants ... both pieces of information are passed to it. state_type and shadow_type. can you give me some quick pointers about how to get started making a custom theme? I MUST allow my users to

Re: static linking

2005-05-04 Thread Ben Johnson
On Wed, May 04, 2005 at 04:16:42PM +0200, [EMAIL PROTECTED] wrote: ... so my question remains: is it possible? was it ever thought of in the gtk+ design to allow for this possibility? or is it such that because the resulting static application would be necessarily heavy (or for any number of

Re: Report generator

2005-05-04 Thread Ben Johnson
On Wed, May 04, 2005 at 10:01:43AM +0100, Francisco Santiago Capel Torres wrote: ... I have realized that in order to port it to GTK, I only need a very simple XML parser, a Date class and some classes to access databases. Here is where I need the suppor from this list. I'm starting to

how to get rid of mouse-over button color?

2005-05-01 Thread Ben Johnson
Hi. I'm working with a touch screen, which I'm learning makes mouse-over types of events sort of meaningless. Yet, they still occur. I have a page full of toggle buttons and it can be difficult to determine when one is down. The easiest way to tell is by looking at the button's color. The

Re: How to find your shell

2005-04-28 Thread Ben Johnson
On Thu, Apr 28, 2005 at 10:09:20AM +0200, [EMAIL PROTECTED] wrote: Don't make it any harder than needed :-p # ls -l /proc/self/exe That will show where the current shell executable file is located, and hence its name. [EMAIL PROTECTED]:~$ uname -s -r Linux 2.6.8 [EMAIL PROTECTED]:~$ ls -l

known bug? appropriate question?

2005-04-28 Thread Ben Johnson
Hi. I'm running into an annoying little bug surprisingly often. Asking here if it's known is a hell of a lot easier than searching a bug database for it, and will probably work better. Is that an acceptable use of this list though? the bug: I'm not sure of the exact circumstances of the bug,

Re: known bug? appropriate question?

2005-04-28 Thread Ben Johnson
On Thu, Apr 28, 2005 at 04:10:43PM -0400, Owen Taylor wrote: On Thu, 2005-04-28 at 12:19 -0700, Ben Johnson wrote: ... database for it, and will probably work better. Is that an acceptable use of this list though? No, it isn't. (http://bugzilla.gnome.org/show_bug.cgi?id=56070 is what

Re: Would love some feedback on my tutorial...

2005-04-21 Thread Ben Johnson
On Thu, Apr 21, 2005 at 11:11:23AM +0200, Murray Cumming wrote: ... Code generation with Glade is silly. People should use libglade. why do you think code generation is silly? why is libglade better? isn't it sort of like the difference between 6 and a half dozen? I'm just curious. Thanks, -

Re: listBoxes - clickable elements / lines - ueber newb question

2005-04-04 Thread Ben Johnson
On Mon, Apr 04, 2005 at 07:33:18PM -0400, Matt Crinklaw wrote: I want to create a box that will scroll lines of text, each line will be clickable and lead to a specific event. I want it to work pretty much exactly exactly like the channel list in mIRC: you get a list of channels, double click

Re: Using progress bar to show copying files

2005-03-29 Thread Ben Johnson
On Tue, Mar 29, 2005 at 04:32:52PM -0800, pan yawen wrote: Hi, I have to copy large files from a CD to the hard disk. I want to use a progress bar to display the status of copying the files. Any one has ideas about implementing this in gtk. I've never done this before, but here's an

gtk_events_pending() seems to spin sometimes?

2005-03-27 Thread Ben Johnson
Hi. I have a loop that looks like this... while( gtk_events_pending () ) { printf(%s: will do: gtk_main_iteration , __FUNCTION__); gtk_main_iteration (); } If I understand right, that should be pretty standard GTK+ code. Sometimes when my program hits this loop, gtk_events_pending()

Re: gtk_events_pending() seems to spin sometimes?

2005-03-27 Thread Ben Johnson
On Sun, Mar 27, 2005 at 07:04:47AM +, Claudio Polegato Jr. wrote: Hi, Maybe the line printf(%s: will do: gtk_main_iteration , __FUNCTION__); into the loop create a new event to iteration, then drop this line and test. my loop looks more like this: printf(%s: entering

Re: gtk_events_pending() seems to spin sometimes?

2005-03-27 Thread Ben Johnson
On Sun, Mar 27, 2005 at 01:26:26PM +0200, [EMAIL PROTECTED] wrote: I imagine select() doesn't block too long because my program is keeping the cpu so busy. Is it possible I'm screwing up my environment somehow that's causing this breakage? Am I using gtk_events_pending() incorrectly?

something's wiping out my SIGALRM handler...

2005-03-21 Thread Ben Johnson
I'm using setitimer() to run certain callbacks after a given interval. (you might suggest that I use g_timeout_add() instead and not worry about it... and I may end up doing that, but not now.) using setitimer has been working pretty well, until just recently. I'm not sure what happened, but it

never mind. was-- Re: something's wiping out my SIGALRM handler...

2005-03-21 Thread Ben Johnson
On Mon, Mar 21, 2005 at 01:53:00AM -0800, Ben Johnson wrote: ... so... as always, I could be wrong, but it kinda looks like glib is messing with the SIGALRM signal and spoiling my fun. surprises! I love I'm wrong. a perl module I'm calling into is mucking with signals. grr... Sorry

updating appearance of a dialog without gtk_dialog_run?

2005-03-19 Thread Ben Johnson
Hey. I'm using a dialog to initiate a network action that blocks for a long time. I want to update a label on the dialog immediately prior to getting started with the network crap. normally I just update a label with the gtk_label_set_markup() function and see it happen on the screen. But,

Re: updating appearance of a dialog without gtk_dialog_run?

2005-03-19 Thread Ben Johnson
On Sat, Mar 19, 2005 at 10:56:42AM +0100, Jean Br?fort wrote: ... call gtk_main_loop from your blocking operation. if I call gtk_main_loop() from within my blocking function, won't gtk_main_loop() block and stop my function from doing anything useful? I'll have to make gtk_main_loop() return

Re: updating appearance of a dialog without gtk_dialog_run?

2005-03-19 Thread Ben Johnson
On Sat, Mar 19, 2005 at 11:42:23AM +0100, Jean Br?fort wrote: ... gtk_main_loop returns. I occasionnaly use: while (gtk_events_pending ()) gtk_main_loop (); perfect. :) Thank you. ___ gtk-list mailing list gtk-list@gnome.org

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-08 Thread Ben Johnson
On Tue, Mar 08, 2005 at 12:12:53PM -0500, Owen Taylor wrote: ... - If I set expand on *any* widgets to FALSE, they end up too small. Then either add padding to them (or set a minimum size with gtk_widget_set_size_request()). If a widget is to small when not set to expand, then it will be

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-08 Thread Ben Johnson
btw. during our conversation, I've come to believe that the interaction between the GtkAlignment object and the EXPAND and FILL flags isn't working as the documentation implies it should. EXPAND and FILL, if set on all widgets should cause the available space to be consumed. If the size of one

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Ben Johnson
On Mon, Mar 07, 2005 at 09:40:45AM +0200, Karlsson, Erik wrote: Hi, Have you tried GtkWidget's gtk_widget_set_size_request function. It can be used to increase the default size of the widget. It is not perhaps good practice to use it because it defines minimum size of the widget that can't

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Ben Johnson
On Mon, Mar 07, 2005 at 08:19:17AM -0500, Owen Taylor wrote: ... GtkAlignment is all about the amount of space that a widget takes up *within the space that it was allocated*. To determine to which child of a container excess space gets allocated, look at the 'expand' parameter of

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Ben Johnson
On Mon, Mar 07, 2005 at 10:56:30PM -0500, Owen Taylor wrote: On Mon, 2005-03-07 at 18:32 -0800, Ben Johnson wrote: this is more or less what I'm doing... mydialog = gtk_dialog_new (); gtk_window_set_title(GTK_WINDOW (mydialog), Payment Amount); gtk_window_set_position

GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-06 Thread Ben Johnson
Hi. I have a hard time getting widgets to take up as much of the screen as I want them to. Is there a trick to getting widgets to take up more space? I set the expand and fill properties on everything because I want all available space to be consumed. Inevitably I wind up with some widgets

chaining OBJECT_new() functions?

2005-02-19 Thread Ben Johnson
Hi. I made a class that defines several _new() functions, which take various parameters. I now want to subclass from this and keep my various _new() functions with more or less the same parameters, and I want the behavior to stay the same too. I don't see anything in the documentation about how

Re: chaining OBJECT_new() functions?

2005-02-19 Thread Ben Johnson
On Sat, Feb 19, 2005 at 11:47:15PM +, Roger Leigh wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Johnson [EMAIL PROTECTED] writes: I made a class that defines several _new() functions, which take various parameters. I now want to subclass from this and keep my various

unorthidox use of GAllocator and GSList?

2005-02-16 Thread Ben Johnson
Hi I'm wondering if I should cease and desist. I'm using the GSList and the GAllocator in way that they may not be designed for. The reason I am doing it this way is I want to allocate space for my list nodes and my data in the same big chunk. In other words, I'm creating list nodes that

Re: GTK+ and (perl or python)?

2005-02-14 Thread Ben Johnson
On Sat, Feb 12, 2005 at 07:10:33AM +0100, Xavier Ordoquy wrote: On Fri, 2005-02-11 at 19:01 -0800, Ben Johnson wrote: Hey. I'm thinking about using python instead though because I hear adding callbacks in C to python handler code is relatively simple. (it's about time I learned python

GTK+ and (perl or python)?

2005-02-11 Thread Ben Johnson
Hey. I'm thinking about making some kind of thing that will allow me to handle callbacks in either python or perl. Can you help me pick a language? (to be clear: I'm planning to do something similar to Gimp: the main program is written in C but can handle some events in perl.) I was planning

Re: Are g_try_malloc() and g_free() thread-safe?

2005-02-07 Thread Ben Johnson
On Mon, Feb 07, 2005 at 09:45:44PM +0100, [EMAIL PROTECTED] wrote: Can anyone say with certainty whether g_try_malloc() and g_free() are thread-safe? I've spent considerable time searching mailing lists and googling and have found only sketchy opinions at best. glib itself is thread

Re: Plotting, text drawing, etc.

2005-02-07 Thread Ben Johnson
On Mon, Feb 07, 2005 at 07:28:12PM -0800, James Frye wrote: Ali, Thanks. I'll have a look for future reference, but I figured out a quick dirty hack that does what I need. I have the GTK menu program start gnuplot as a pipe, then re-parent gnuplot's plot window into a GTK widget. So I

Re: Are g_try_malloc() and g_free() thread-safe?

2005-02-07 Thread Ben Johnson
I was given and found some answers to my questions. thought I'd share for the good of the curious. On Mon, Feb 07, 2005 at 03:41:42PM -0800, Ben Johnson wrote: ... how do you remove the risk? you have to compile libc with _REENTRANT? g_malloc(), g_free(), and associated functions are wrappers

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 08:48:49AM +0100, Jean Br?fort wrote: ... use configure --enable-static --disable-dynamic doesn't work? no, that doesn't seem to do anything at all. I'm using the configure script that glade made for me to build my app. Should it work? [EMAIL

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 10:05:39AM +0100, Jean Br?fort wrote: ... Add: AC_ENABLE_STATIC AX_DISABLE_SHARED to configure.in (or configure.ac), run autoconf then configure. [EMAIL PROTECTED]:~/Projects/hpntpos$ vi configure.in [EMAIL PROTECTED]:~/Projects/hpntpos$ autoconf configure.in:14:

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 06:44:15PM +0100, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:~/Projects/hpntpos$ vi configure.in [EMAIL PROTECTED]:~/Projects/hpntpos$ autoconf configure.in:14: error: possibly undefined macro: AC_ENABLE_STATIC If this token and others are legitimate, please

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 09:17:59PM +0100, Jean Br?fort wrote: ... It seems that those flags are intended for libraries production. To have static linking of the libraries in the executable, you must probably list the libraires in the LDFLAGS, i.e. /usr/lib/libglib.a instead of -lglib, which

Re: How to static link a program?

2005-02-04 Thread Ben Johnson
On Fri, Feb 04, 2005 at 07:48:14PM -0800, James Frye wrote: ... So how can I statically link my program (or at least the GtkGl library part of it) so that the executable will run on any system? There doesn't seem to be a make or configure option to even make static libs... huh. as far as I

Re: is GtkRadioButton thread safe? how do I make sure my similar widget is also thread safe?

2005-02-03 Thread Ben Johnson
On Thu, Feb 03, 2005 at 06:54:04AM -0500, Paul Davis wrote: ... I'm wondering this because I see some operations being performed on a GSlist in the widget's code, and I don't see any locking taking place. Terrible idea. That should not happen. If it does, you need to redesign your program.

blinking widgets...

2005-02-03 Thread Ben Johnson
Hi. I can configure my Debian unstable gnome apps ring visibly when the system bell rings. I like that. Also, I noticed that Windows XP will do something similar when a modal dialogue is active and you try to click on some other piece of the application to get your attention. I like the

anonymous/generic GObjects? how to set/get custom properties without subclassing?

2005-02-02 Thread Ben Johnson
Hi. short version: I want to use a GObject as a thing that can hold simple types (like ints and pointers) that does reference counting. Is that possible? I want to use it like a hashtable that will garbage collect itself when all the references to it are gone. more explaining: I have a simple

is GtkRadioButton thread safe? how do I make sure my similar widget is also thread safe?

2005-02-02 Thread Ben Johnson
Hi. Looking at the code of GtkRadioButton, I have to question whether it's thread safe. I don't use threads (yet) in my application... and there's a good chance I won't at all, and I don't really even know how they work. (on Linux are they implemented with help from the clone() system call?)

Re: how are interfaces created? (talking about the Java-like interface)

2005-01-29 Thread Ben Johnson
On Sat, Jan 29, 2005 at 08:27:55AM +0100, Jean Br?fort wrote: Le vendredi 28 janvier 2005 ?? 15:22 -0800, Ben Johnson a ??crit : I want to understand how interfaces are defined and used/implemented. ... It's a GInterface object. When creating a new class of object, you derive it from

Re: how are interfaces created? (talking about the Java-like interface)

2005-01-29 Thread Ben Johnson
On Sat, Jan 29, 2005 at 07:47:08PM +0100, Jean Br?fort wrote: Le samedi 29 janvier 2005 ?? 10:10 -0800, Ben Johnson a ??crit : On Sat, Jan 29, 2005 at 08:27:55AM +0100, Jean Br?fort wrote: Le vendredi 28 janvier 2005 ?? 15:22 -0800, Ben Johnson a ??crit : I want to understand how

Re: how are interfaces created? (talking about the Java-like interface)

2005-01-29 Thread Ben Johnson
On Sat, Jan 29, 2005 at 12:03:59PM -0800, Ben Johnson wrote: ... gathered that an object of GnomeCanvasGroupExtClass is by definition also a G_TYPE_PRINTABLE. In the code you just posted... if (GNOME_IS_CANVAS_GROUP_EXT(item)) gnome_canvas_group_ext_print

to subclass, or not to subclass...

2005-01-29 Thread Ben Johnson
I need some advice. I'm used to working in C, so I'm not used to making decisions about when to create sub-classes and when I should just use callbacks. One feature of the app I'm making is a global inactivity timer. When the timer goes off the app does a locked screen saver kind of thing. The

how are interfaces created? (talking about the Java-like interface)

2005-01-28 Thread Ben Johnson
I want to understand how interfaces are defined and used/implemented. The docs say, for instance: GtkButton implements AtkImplementorIface Is AtkImplementorIface a real thing? How does the GtkButton implement it? I haven't been able to find docs about this. Can someone point me in the right

Re: how to make radio buttons without default selected? and, how to force all de-selected?

2005-01-27 Thread Ben Johnson
On Thu, Jan 27, 2005 at 08:25:05AM -0500, Diego Zuccato wrote: Ben Johnson wrote: Why not adding another (maybe hidden?) radiobutton? This way you haven't to worry: * The user can deselect simply by selecting the None selected buton * If you hide it, you have to programmatically select

looking for: logical/non-visual container object for coordinating events all over app

2005-01-26 Thread Ben Johnson
Hi. I'm working to create a system in which the user will define a large menu layout for fast, easy use on a touch screen. For me, that means using lots of large toggle buttons that can be grouped in various ways. Some of the toggle buttons will be in simple Radio Button like groups. Others will

Re: how to make radio buttons without default selected? and, how to force all de-selected?

2005-01-26 Thread Ben Johnson
On Wed, Jan 26, 2005 at 05:27:08PM -0400, [EMAIL PROTECTED] wrote: Hi Ben ... IMHO I think that it is not a good idea , because the radio button's definitions, in essence, do not allow that none button to be active. Maybe, to customize the radio button, and create a new widget based on it

Re: how to make radio buttons without default selected? and, how to force all de-selected?

2005-01-25 Thread Ben Johnson
On Tue, Jan 25, 2005 at 01:27:14PM -0500, Owen Taylor wrote: On Mon, 2005-01-24 at 13:24 -0800, Ben Johnson wrote: ... like a set of related toggle buttons. Now I want them to behave *more* like toggle buttons. The problem is, there is always at least one of the buttons selected. I want

how to make radio buttons without default selected? and, how to force all de-selected?

2005-01-24 Thread Ben Johnson
Hi. My name is Ben Johnson. This is my first time posting, and I'm pretty much a Gtk newbie. I've successfully created a set of radio buttons that look and act a lot like a set of related toggle buttons. Now I want them to behave *more* like toggle buttons. The problem is, there is always