View | Details | Raw Unified | Return to bug 203563 | Differences between
and this patch

Collapse All | Expand All

(-)vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx (-8 / +9 lines)
Lines 418-434 Link Here
418
static void
418
static void
419
dialog_remove_buttons(GtkWidget *pActionArea)
419
dialog_remove_buttons(GtkWidget *pActionArea)
420
{
420
{
421
    GList *pChildren =
421
    GtkContainer * container = GTK_CONTAINER( pActionArea );
422
        gtk_container_get_children( GTK_CONTAINER( pActionArea ) );
423
422
424
    for( GList *p = pChildren; p; p = p->next )
423
    if( container )
425
    {
424
    {
426
        GtkWidget *pWidget = GTK_WIDGET( p->data );
425
         GList *pChildren =
427
        if ( GTK_IS_BUTTON( pWidget ) )
426
             gtk_container_get_children( container );
428
            gtk_widget_destroy( pWidget );
427
429
    }
428
         for( GList *p = pChildren; p; p = p->next )
429
             gtk_widget_destroy( GTK_WIDGET( p->data ) );
430
430
431
    g_list_free( pChildren );
431
         g_list_free( pChildren );
432
    }
432
}
433
}
433
434
434
static void
435
static void

Return to bug 203563