[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    gtk_combo_box_get_active_text fails ???
From:       Olivier <Olivier.Ramare () univ-lille1 ! fr>
Date:       2005-04-30 7:55:09
Message-ID: 427339DD.8080300 () univ-lille1 ! fr
[Download RAW message or body]

Dear all,

   here is part of my code:
-------------------------------
     my_combox_box = gtk_combo_box_new_text();
     g_signal_connect (my_combox_box, "changed",
                       G_CALLBACK (select), NULL);

and
void select(GtkComboBox *combo)
{
     char *name = NULL; /* or gchar, it is the same */

     name = PTALLOC(char);
     if (gtk_combo_box_get_active_text (combo) == NULL){
         printf("What are we doing in here ???");
     } else {
         name = gtk_combo_box_get_active_text (combo);
         ....;};
}
-------------------------------

Any call to "select" ends in Segmentation fault ...
One full day that I'm looking at that :-(
Any help appreciated :-)
Best,
Amities,
           Olivier

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic