Gtk Assistant check entries

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Gtk Assistant check entries

Rúben Rodrigues
Hi guys,

I ahve a assistant page, and i want to check all entrie in first page to
mark as complete. You can see assistant here:

I used GtkEditable -> changed signal, but after i changed entrie there
is no call to the function callback:

static void on_entry_changed (GtkWidget *widget, gpointer data)
   GtkAssistant *assistant = GTK_ASSISTANT (data);
   GtkWidget *current_page;
   gint page_number;
   const gchar *text;

   page_number = gtk_assistant_get_current_page (assistant);
   current_page = gtk_assistant_get_nth_page (assistant, page_number);
   text = gtk_entry_get_text (GTK_ENTRY (widget));

   if (text && *text)
     gtk_assistant_set_page_complete (assistant, current_page, TRUE);
     gtk_assistant_set_page_complete (assistant, current_page, FALSE);

The code don't check all entries, just one, and don´t works the
callback. How can i check all entries in this page? And which signal can
i use?



Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.

gtk-app-devel-list mailing list
[hidden email]