Re: Image library update?

2000-08-17 Thread Darin Fisher
Derek Simkowiak wrote: > > Hello, > I'm writing an app that needs to load different image file formats > (JPG, PNG, XPM, et. al.). > > It used to be (especially within Gnome) that the library to use > was the GTK+ version of Imlib. > > But I seem to remember that Gn

Re: Dynamic Context Popup menus(ARGHHHH!!!)

2000-08-19 Thread Darin Fisher
The problem is with your gtk_signal_connect() call. You pass the address of a _temporary_ variable as the user_data parameter. I think what you should really be doing is this: gtk_signal_connect (GTK_OBJECT (sort_ascending1), "activate", GTK_SIGNAL_FUNC (on_sort_ascendi

Re: GTK+ client server app

2000-10-01 Thread Darin Fisher
Meghal Harish Varia wrote: > > Hello, > > Does anyone know of a way I can implement a client app in a client-server > setting. For example, my app requires continuous monitoring for incoming > messages while providing the GUI to the user. Upon arrival of each > message, my app should be notifi

Re: Destroying widgets...

2000-10-01 Thread Darin Fisher
Dani Mezher wrote: > > Hello, > > A simple question I suppose. When I destroy a container widget do I > destroy all widgets contained in my container. In other words, I am > writing an application with lots of dialog windows (with plenty of entry > fields per window). When I destroy the wind

Re: GTKCombo and Multiple selections?

2000-10-03 Thread Darin Fisher
I recall seeing a more generic combo-box widget in the gnumeric source code. You might want to take a look at it. If I remember correctly, it's a pretty "light-weight" container... allowing the client code to specify the widget for the popdown as well as for the "entry" spot. I think they use i

Re: How to get a time interrupt?

2000-10-01 Thread Darin Fisher
> Zhang wrote: > > Dear Sir: > 1.When popup a message box, and hope it eliminate after several > seconds, How to do it? Try using gtk_timeout_add(). You'll have to store the window pointer someplace and then destroy the window in the timeout callback. > 2. I hope a window always at th

Re: glib bug

2000-10-17 Thread Darin Fisher
The problem is that %G is not a valid format sequence. If you change it to %g then the program works as expected. Darin Gustavo João Alves Marques Carneiro wrote: > This program, however strange it may be, crashes due to some bug in > GLib. I'm using GLib 1.2.8. > > > #include > > int m

Re: glib bug

2000-10-18 Thread Darin Fisher
Havoc Pennington wrote: > > Darin Fisher <[EMAIL PROTECTED]> writes: > > The problem is that %G is not a valid format sequence. If you > > change it to %g then the program works as expected. > > > > %G should be valid, I think it's a real glib bug. >

Re: radio button label

2000-10-19 Thread Darin Fisher
Dugas, Alan wrote: > It segfaulted when I tried that :-( Does anyone know if that approach works > (i.e. successfully used it)? It would help determine if it's my code or > not. I do the following; > > gchar **radio_button_label = (gchar **) NULL; > gtk_label_get(GTK_LABEL(label), radio_

Re: CList manipulation

2000-10-24 Thread Darin Fisher
Andreas Scherf wrote: > Carl Seleborg wrote: > >> Hi all, >> >> I am very new to GTK, so if my questions are too basic, please point me to a >> good FAQ. :-) >> >> I'm fooling around with the CList widget, and after having gone though the >> header file for the widget, there seems (to me) to

Re: cut & paste?

2000-10-25 Thread Darin Fisher
You should take a look at the example programs in the GTK+ source. There is one /examples/selection, which should help you out. Darin Donovan Artz wrote: > > > Can anyone point me to some info on how to cut and paste (ie. send and get > things from the global clipboard) -- I'm not using a Gt

Re: gdk_input_add

2000-10-31 Thread Darin Fisher
separate thread to read data off of > the socket, this seems to work. > > The problem with using a separate thread involves issues with > reading/writing globals, so I really need to get this gdk_input_add() > working. > > Thanks, > Meghal > > > On Tue, 31 O

Re: Label Alignment

2000-11-01 Thread Darin Fisher
Jay, GtkLabel derives from GtkMisc, which has an alignment method that you can use to left justify the text... gtk_misc_set_alignment(GTK_MISC(label), 0.0, GTK_MISC(label)->yalign); I think gtk_label_set_justify() only applies when you have

Re: Label Alignment

2000-11-07 Thread Darin Fisher
Jay LeBlanc wrote: > Thanks Darin Fisher and Caleb Land for your replies. That worked great > for that label but it doesn't seem to work well for a multi-line label. > The label is attached to a large section of a table and seems to want > to center each line again. Any

Re: Help CPU usage at 8.9% ?

2000-11-15 Thread Darin Fisher
My guess would be that the cpu usage results from the 100 millisecond timeout. I bet if you increased the timeout you would notice the cpu usage drop. You have to consider how much work the bar() method is doing... if it doing relatively a lot of work then that would explain the cpu usage.

Re: Problem when reparenting gtktrees

2000-11-27 Thread Darin Fisher
> CTree will be around a lot longer than GtkTree, it likely won't be > removed until no one is using it anymore. GtkTree will be removed more > agressively since it's not just suboptimal, it's flat-out broken. > > Havoc Just to satisfy my curiosity... when you say that GtkTree is broken, do yo

Re: GtkCombo Question

2000-11-29 Thread Darin Fisher
You can set the selected item on the combo->list widget. gtk_list_select_item(GTK_LIST(combo->list), n); Darin Chris Freeze wrote: > Is there a way to set a combo to a specified index? I have a set number of > strings, but given some display's I need to have it default to displaying a >

Re: Uninstall old GLIB

2000-12-14 Thread Darin Fisher
you mean glib-1.2.8 right? ftp://ftp.gtk.org/pub/gtk/v1.2/ to uninstall GLIB-1.2.7, it depends on how it was installed in the first place. did you install from sources? or, did it come with your system? and, if so what is your system? darin Alex Le Fevre wrote: > How would I uninstall GLIB 2

Re: Combo box extensions (proposal)

2000-12-15 Thread Darin Fisher
Diego Zuccato wrote: > Hello all. > > I think I've had some idas that can greatly improve GtkCombo usability. > 1) generate a signal when something gets selected in the list (now it > doesen't even generate a "modified" signal for the GtkEntry :-( ) or combo->list is a GtkList, which has sele

Re: MVC and GTK

2000-12-23 Thread Darin Fisher
Timothy M. Shead wrote: > Paul Barton-Davis wrote: > >> I'd like to once again mention that it would be nice to see a roadmap >> entry for GTK that includes making the toolkit much more >> Model-View-Controller friendly. I would be quite willing to help with >> the design and/or part of the im