Re: How to get info from one Windows to another?
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: rope-walker yandex ru
- Cc: gtkmm-list gnome org
- Subject: Re: How to get info from one Windows to another?
- Date: Thu, 2 Mar 2006 09:04:53 -0600
On 3/2/06, Volosatov Alexander <rope-walker yandex ru> wrote:
> I have 1 window, where users select information, and then after closing some info I must put to another window/ How to do this?
> I know that i must use Gtk::Socket Gtk::Plug, but there is no example
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
If I understand your situation correctly, I would try to do it one of
the the following ways:
a) have one window emit a signal when the information gets changed and
connect this signal to a handler in the other window. Or
b) make a global Application class that owns the data that's changed
and notifies the other window when it gets changed. Or
c) store the data in something like GConf. When the user makes
changes in the first window, the data is updated in GConf. The second
window listens for changes to the GConf keys that it cares about.
There may be better ways. I'm not sure that Gtk::Socket is really
what you want for something like this (although I've never personally
used Gtk::Socket so I don't really know much about it).
Jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]