Re: [gtk-list] Re: Force refresh/exposure



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]