RE: Emitting signals
- From: Maher Awamy <muhri muhri net>
- To: "Tim Betts" <tbetts nortelnetworks com>, "Dugas, Alan" <alan dugas analog com>, "'Havoc Pennington'" <hp redhat com>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org, "'tml iki fi'" <tml iki fi>
- Subject: RE: Emitting signals
- Date: 02 Oct 2000 14:28:45 CDT
But this afaik sendsd only gdk_atom stuff ... Havoc can tell you more perhaps.
Maybe you can regsiter something else...
Maher
On Mon, 2 Oct 2000 08:06:50 -0400, Tim Betts said:
Hi Alan,
I found this snippet of code inside a GTK Theme Switcher written by
"muhri muhri net".
It doesn't specifically send the event you want, but maybe its relevant
enough to help you synthesize one that does.
Maybe Havoc, Muhri, and Tor could comment on whether this could be modified
to help or not, since I really don't know. Looks like there is UNIX GDK code
to do something in gdk_send_clientmessage_toall(), but none in the Win32
port as yet though.
void
send_refresh_signal(void)
{
GdkEventClient event;
event.type = GDK_CLIENT_EVENT;
event.send_event = TRUE;
event.window = NULL;
event.message_type = gdk_atom_intern("_GTK_READ_RCFILES", FALSE);
event.data_format = 8;
gdk_event_send_clientmessage_toall((GdkEvent *)&event);
}
Just trying to help,
Tim.
> ----------
> From: Havoc Pennington[SMTP:hp redhat com]
> Sent: Saturday, September 30, 2000 11:43 PM
> To: Dugas, Alan
> Cc: gtk-app-devel-list gnome org; gtk-list gnome org
> Subject: Re: Emitting signals
>
>
> "Dugas, Alan" <alan dugas analog com> writes:
> > Is there a way to emit a signal globally to all windows or all
> > widgets regardless of what window they are in? What I have are
> > several graphics windows that need to be updated every time a new
> > piece of data is gathered. I would like to be able to send a
> > signal, say "expose", to all of the graphics windows without having
> > to individually store each of them in an array somewhere.
>
> The answer is pretty much no; you have to keep a list.
>
> Then sythesize an expose and send it with gtk_widget_event(), the
> default implementaiton of the draw method on GtkWidget (in
> gtk/gtkwidget.c) has an example.
>
> Havoc
>
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
--
muhri muhri net -- http://www.muhri.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]