SHARE
TWEET

c

a guest Feb 14th, 2020 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     GList *list = gtk_container_get_children(GTK_CONTAINER(loginWindow));
  2.     GList *l;
  3.     for (l = list; l != NULL; l = l->next)
  4.     {
  5.         gpointer container = l->data;
  6.  
  7.         // On récupère les enfants du container
  8.         GList *containerList = gtk_container_get_children(GTK_CONTAINER(container));
  9.         GList *containerContent;
  10.         u_int8_t firstEntry = 1;
  11.         for (containerContent = containerList; containerContent != NULL; containerContent = containerContent->next)
  12.         {
  13.             gpointer element = containerContent->data;
  14.             // Si l'enfant est une entry, on va le noter, on cherche notre username et notre password en l'occurence
  15.             if (GTK_IS_ENTRY(element))
  16.             {
  17.                 if (firstEntry)
  18.                 {
  19.                     username = getEntryText(element);
  20.                     firstEntry = 0;
  21.                 }
  22.                 else
  23.                 {
  24.                     password = getEntryText(element);
  25.                 }
  26.             }
  27.         }
  28.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top