Re: Application with XML parsing

2006-02-07 Thread Greg Breland
Depending on your specific needs, you might want to keep your eye on my project (http://www.weldae.org). I haven't posted the source yet, but I'm trying very hard to get the first release with source out soon. I'm building something very similar to what your asking for. Nothing is hard coded

Re: combo rant

2005-11-26 Thread Greg Breland
I am pretty negative about the combo as a control, not just the GTK combo. Widget sets don't have much of a choice but to include it since it's considered a core control, but as a developer, I try to avoid it if I can. As has been discussed previously, the problem with the combo as a control is

Re: combo rant

2005-11-23 Thread Greg Breland
My current project requires that I write wrappers around all common GTK and Win32 .NET controls to give them a common functionality set. Sort of like what wxWindows would do but much much more simple with much less functionality. I mention this because with the exception of the GtkComboBox

RE: Efficient use of GDK Graphic contexts

2005-09-26 Thread Greg Breland
A reasonable chunk, but then by the time a GtkWidget gets all its signal bindings, extra data, and other stuff, a GC probably isn't all that much extra. ;) Thanks for both of you that responded. Sounds like I don't need to worry much based on the fact that it sounds like I can't switch a GC

Re: Efficient use of GDK Graphic contexts

2005-09-26 Thread Greg Breland
Thanks Tor for the helpful response. This seems a lot more sane to me. More comments follow: The manpage for XCreateGC() says The GC can be used with any destination drawable having the same root and depth as the specified drawable. Just to clarify, root is root X window? So I could

Re: Displaying intermediate button images.

2005-09-26 Thread Greg Breland
This is just a guess since I'm not in front of my development workstation. You need to call the main GTK loop while you sleep. Invalidated regions of the screen get painted by the idle handler in the main loop. From the looks of it you sleep function doesn't call the main loop before it

Re: Displaying intermediate button images.

2005-09-26 Thread Greg Breland
Okay, I've read this web page and for the life of me, I can't see a way to write a simple/elegant routine that does this, within the context of my larger application. Setup a event timer to call a function every 0.5 seconds. Inside this function you toggle all the pieces that will be

Efficient use of GDK Graphic contexts

2005-09-25 Thread Greg Breland
I'm building a form designer application and need to draw a grab border around widgets when the user selects them. This part seems straight forward and I've already got the border drawing working from the expose event. My question is how do do this in an efficient manner since GCs seem to be

Re: gtk_key_snooper_install() example

2005-08-29 Thread Greg Breland
On Mon, 2005-08-29 at 01:42, Olexiy Avramchenko wrote: 1. Use typecast (GtkKeySnoopFunc) to get rid of compiler warning. This did the trick. I didn't think to try just type casting it. I was thinking too complex, along the lines that there was a magic GTK cast function like GTK_WIDGET(). 2.

gtk_key_snooper_install() example

2005-08-28 Thread Greg Breland
I've seen this asked before a while back with no response, so I thought I'd give it a try. Google hasn't been any help at all. I'm trying to install a snooper and it's working just fine, but I get a compiler type warning on the first arg of gtk_key_snooper_install() and I'm sure I don't have it

Re: Partially disable checkbox

2005-08-25 Thread Greg Breland
Disregard this question. Apparently a treeview without a model doesn't emit the button-press-event. I can live with that, just have to re-factor my code a bit. On Wed, 2005-08-24 at 09:13, Greg Breland wrote: I also have a problem detecting a mouse click on a treeview control. I'm currently

Re: Partially disable checkbox

2005-08-24 Thread Greg Breland
I also have a problem detecting a mouse click on a treeview control. I'm currently trying the widget event button-press-event, but that doesn't seem to fire. On Wed, 2005-08-24 at 00:51, Greg Breland wrote: I need to partially disable a checkbox control. I don't want the checkbox to toggle

Re: creating a entry mask

2005-08-24 Thread Greg Breland
Thanks for this link. I too have been looking for something like this. For some reason the configure script requires GTK 2.6.8. FC4 only ships with 2.6.7, so this is a pretty steep requirement. I hacked the configure script to only require 2.6.7 and it worked fine. I also was able to get it

Partially disable checkbox

2005-08-23 Thread Greg Breland
I need to partially disable a checkbox control. I don't want the checkbox to toggle when a user clicks on it but I want the click event or something similar to fire. Something similar to the editable property on a text control. I've thought about using the click event to just toggle the control

Re: Web Queries through GTK

2005-08-05 Thread Greg Breland
On Fri, 2005-08-05 at 02:30, Bhatnagar Achindra wrote: I need to make http: Get/Post queries through my GTK application, I'm using libcurl with great success. I use it on Win32 and Linux with no problems at all. libcurl is much faster than the normal .Net methods by a long shot. By faster

Re: I don't think I need a custom widget

2005-08-03 Thread Greg Breland
On Wed, 2005-08-03 at 13:24, Tristan Van Berkom wrote: Maybe you should write one custom GtkContainer for each type of container you need to put those widgets in. The problem is really about the container widget and the allocation it gives to its child, also what child properties are

Re: calling gtk_menu_popup from a button's clicked signal

2005-07-25 Thread Greg Breland
On Mon, 2005-07-25 at 11:53, Tristan Van Berkom wrote: I suppose generating the arguments for gtk_menu_popup() is no big deal but why would you want to use a GtkButton to create a context menu ? First, I'm 100% with you on this issue. The product I support does this and it confuses the users

Re: calling gtk_menu_popup from a button's clicked signal

2005-07-25 Thread Greg Breland
This is the best suggestion I've ever heard as a replacement for the horrible button menu hack. Maybe this will keep the parent poster from adding this hack to yet another piece of software. The only downside I could see is if the list is very long. I think for short lists, say 20 then the

Simple GtkRange Problem

2005-02-21 Thread Greg Breland
I must be missing something very obvious, but for the life of me I can't find it. I'm using a GtkVscale widget with FC2 GTK2.4 like so: control = gtk_vscale_new(NULL); gtk_scale_set_digits(GTK_SCALE(control), 0); gtk_range_set_range(GTK_RANGE(control), 0, 100);

Re: Window shape and back_pixmap

2005-02-18 Thread Greg Breland
The expose event wouldn't work for me either unless, as you did, I returned TRUE. I even tried calling _after all the other expose events with no luck. I ended up having to set the background pixmap on show of the window. I have no way of knowing if it will work on Windows though. On Fri,

Re: Window with background Image

2005-02-05 Thread Greg Breland
Thanks Brian, you've gotten me very close to solving this problem. When I use window-window instead of getting the root window, I now see my background image for short periods of time when portions of the window are newly exposed such as during resize and when other windows are moved over it just

Re: Window with background Image

2005-02-05 Thread Greg Breland
I got despirate and hooded up the expose-event to reset the BG image and this works. Seems a bit excessive, surely there's a better event to use? FWIW, I'm using the regular expose the gets called before the default handler. On Sun, 2005-02-06 at 01:12, Greg Breland wrote: I'm using FC2/Gnome