Callback Question



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]