[Glade-devel] [Glade3] Problems with GtkTable
Cornet Mickael
mickael_cornet@yahoo.fr
Mon, 23 Aug 2004 11:35:06 +0200 (CEST)
I forgot to say that the crash does not really happen
in glade_gtk_table_set_n_common but inside the
gtk_container_remove call (I wrote child == 0x00 but
before the gtk_container_remove cal, it has a correct
value).
980 void
981 gtk_container_remove (GtkContainer *container,
982 GtkWidget *widget)
983{
984 g_return_if_fail (GTK_IS_CONTAINER (container));
985 g_return_if_fail (GTK_IS_WIDGET (widget));
986
987 /* When using the deprecated API of the toolbar,
it is possible
988 * to legitimately call this function with a
widget that is not
989 * a direct child of the container.
990 */
/////////////////////////CRASH HERE////////////////
991 g_return_if_fail (GTK_IS_TOOLBAR (container) ||
992 widget->parent == GTK_WIDGET (container));
//////////////////////////////////////////////////
993
994 g_signal_emit (container,
container_signals[REMOVE], 0, widget);
995 }
Sorry for lack of details of my first mail.
Mickael
--- Cornet Mickael <mickael_cornet@yahoo.fr> a écrit
:
> Hello,
>
> I have some problems with Glade3 when I use
> GtkTable.
> The default size is 3x3 (rows x columns) but if I
> set
> a 1x3 it draws a 3x3. if a set a number of row or
> column >= 3 there is not problems, but when I set
> rows
> <3, the table keep old size of 3x3 and when I set <3
> columns, Glade 3 crash.
>
> I begin to debug it, but I am not familiar with
> Glade
> code. When it crash for column < 3, I crash in this
> function:
>
> file: glade-gtk.c
>
> 405 void GLADEGTK_API
> 406 glade_gtk_table_set_n_common (GObject *object,
>
> GValue *value, gboolean for_rows)
>
> at the line 455
>
> 453 /* We need to completely remove it */
> 454 if (start >= new_size) {
> 455 gtk_container_remove (GTK_CONTAINER (table),
> 456 child->widget);
> 457 continue;
> 458 }
>
> child = 0x0;
>
> I'll try to solve it but if someboby can help me
> (I'm
> not a glade expert ;o) )
>
> Thanks.
>
> Mickael
>
>
>
>
>
>
>
>
> Vous manquez d’espace pour stocker vos mails ?
> Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
> Créez votre Yahoo! Mail sur
> http://fr.benefits.yahoo.com/
>
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez
> toutes les nouveautés pour dialoguer instantanément
> avec vos amis. A télécharger gratuitement sur
> http://fr.messenger.yahoo.com
> _______________________________________________
> Glade-devel maillist -
> Glade-devel@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-devel
>
Vous manquez d’espace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com