Hi all,
--- BOC --- (Begin Of Code)
void send_update_event ( 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);
while (gtk_events_pending ()) gtk_main_iteration ();
return;
}
--- EOC --- (End Of Code)
That function works with gtk1.2.x ... when I run it (from my GTK2 program) my gtk1.2.x apps receive the event
correctly, but gtk2.x.x apps not.
If I run that code from a gtk1.2.x app my gtk2.x.x apps receive the event too!
My problem is only to send that client event from my gtk2 app ...
What I'm doing wrong ?
If you want to see the complete code, please download the alpha prerelease tarball of my app at
http://andre.mistermouse.com.br/download/gtk2tm.tar.bz2 (64kb)
[]'s
--
André Casteliano
Linux User: # 178853 UIN: # 47717593
E-mail: digitalcoder users sourceforge net
Home Page: http://andre.mistermouse.com.br
Attachment:
pgpk1ISfak9UJ.pgp
Description: PGP signature