RE: [gtk-list] Main Window References Dialog Window(or vica vers
- From: Trog <trog gtk org>
- To: gtk-list redhat com
- Subject: RE: [gtk-list] Main Window References Dialog Window(or vica vers
- Date: Wed, 08 Mar 2000 08:57:27 -0000 (GMT)
The "standard" way of doing this sort of thing is to pass a struct
containing the relevant data/pointers to the callback.
--------------
Return TRUE in the delete_event handler.
--------------
-tony
On 06-Mar-2000 George Deprez wrote:
>
> Hello All,
>
> I have a window which creates and pops up a dialog with an entry.
> When the OK button is pressed the callback obtains the entry
> data and MUST update data in the main window.
>
> What is the best way to exchange information between windows.
>
> Is there a way to get any top_level window by name?
>
> I want to minimize the use of globals.
>
> How about using object_set_data( Window1, "window2", window2);
> Am I wasting alot of memory doing this?
> Will I lose the data when a window is destroyed?
>
> Also, a side question -------------------------------
> How can I disable the destroy button on a dialog window?
> I want to force the users to use the OK and CANCEL buttons.
> //----------------------------------------------
>
>
> Any help appreciated.
>
> Thanks,
> George.
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
> /dev/null
---
E-Mail: trog@gtk.org
A computer without COBOL and Fortran is like a piece of chocolate cake
without ketchup and mustard.
Go Bezerk! http://www.gtk.org/~trog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]