Changeset 31

Show
Ignore:
Timestamp:
11/02/07 18:15:34
Author:
pvanhoof
Message:

Bugfixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/tmut-shell-window.c

    r25 r31  
    7878        if (cnt > 1)  
    7979        { 
    80                 if (priv->current && priv->current->child) 
     80                if (priv->current && priv->current->child) { 
    8181                        gtk_container_remove (GTK_CONTAINER (priv->vbox), GTK_WIDGET (priv->current->child)); 
     82                        if (G_IS_OBJECT (priv->current->child)) 
     83                                g_object_unref (priv->current->child); /* A */ 
     84                } 
    8285                priv->childs = g_list_remove (priv->childs, priv->current); 
    8386 
    8487                first = g_list_first (priv->childs); 
    85                 g_object_unref (priv->current->child); /* A */ 
     88                 
    8689                g_slice_free (ChildSet, priv->current); 
    8790                priv->current = first->data; 
     
    149152 
    150153        gtk_box_pack_start (GTK_BOX (priv->vbox), GTK_WIDGET (hbox),  
    151                 FALSE, TRUE, 0); 
     154                FALSE, FALSE, 0); 
    152155        gtk_box_pack_start (GTK_BOX (hbox), GTK_WIDGET (vvbox),  
    153                 FALSE, TRUE, 0); 
     156                TRUE, TRUE, 0); 
    154157        gtk_box_pack_start (GTK_BOX (vvbox), GTK_WIDGET (priv->progress_bar),  
    155158                FALSE, TRUE, 0); 
    156159        gtk_box_pack_start (GTK_BOX (vvbox), GTK_WIDGET (priv->instruction_label),  
    157                 FALSE, TRUE, 0); 
     160                FALSE, FALSE, 0); 
    158161        gtk_box_pack_start (GTK_BOX (hbox), GTK_WIDGET (back_button),  
    159                 FALSE, TRUE, 0); 
     162                FALSE, FALSE, 0); 
    160163 
    161164        gtk_container_add (GTK_CONTAINER (instance), GTK_WIDGET (priv->vbox));