GtkFileChooser for an Entry



I have a general-purpose function that creates a
dialog with entries and labels that come from an array
of  structs that's passed to the function.  One of the
values in the struct is a flag that says whether the
entry expects a filename from the user, and if so the
function creates a button and g_signal_connects a
callback  function that creates a FileChooserDialog to
the button.  
My newby-ish issue is that I'm having trouble getting
the filename selected by the user in the
FileChooserDialog function to get populated into the
entry, since the callback function isn't associated
directly with the Entry.  I've considered creating a
signal and tying it to the "clicked" event on the
FileChooser, but that seems overly complicated for the
simple(??) thing I'm trying to do.

I'm considering trying to embed the
GtkFileChooserWidget into the GtkEntry, but I don't
see much instruction on how to do that.  Is a browse
button for a text entry really this hard?

Any ideas would be very welcome.

Thanks,
William



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]