Re: [gtk-list] Re: Force refresh/exposure
- From: Anders Melchiorsen <and kampsax dtu dk>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Force refresh/exposure
- Date: 20 Jul 1999 16:38:05 +0200
Havoc Pennington <hp@redhat.com> wrote:
> but, you shouldn't go around emitting random events manually; you have to
> use the API to emit them, in this case gtk_widget_event().
So, how do I get my callbacks called when a GtkText is updated? This
is what I do now:
gtk_signal_connect (GTK_OBJECT(message), "changed",
GTK_SIGNAL_FUNC(KeyPressCallback), this);
// ...
// gtk_text_insert(...); // For example
gtk_signal_emit_by_name(GTK_OBJECT(message), "changed");
--
Mvh. Anders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]