Callback Question
- From: Matías Alejandro Torres <torresmat gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Callback Question
- Date: Sun, 13 Apr 2008 15:46:46 -0300
Hi,
Can I call GTK Functions that modifies the GUI inside a callback?
Just an example:
/*CALLBACK*/
void text_to_upper_callback (GtkEntry *entry, gpointer data) {
/* I modify the GUI by setting the text of an entry */
gtk_entry_set_text (entry,
g_utf8_strup (gtk_entry_get_text
(entry), -1)));
}
void* init () {
[...]
g_signal_connect (entry, "activate", (GCallback)
text_to_upper_callback, NULL);
[...]
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]