Hi all,

i have a GtkEntry with a signal "activate" and this handle:

void translate(GtkEntry *widget, gpointer *data) {
        const gchar *text;
        text = gtk_entry_get_text(widget);
        gui_app_notify_new(text);
        g_free(text);
        gtk_editable_delete_text(GTK_EDITABLE(widget), 0, -1);
}

my doubt is g_free or not g_free the text?

-- 
"A fé remove montanas, mas eu prefiro a dinamite"
_______________________________________________
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