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);
    [...]
}


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to