Changeset 5021


Ignore:
Timestamp:
Feb 13, 2008, 4:34:51 AM (14 years ago)
Author:
charles
Message:

(gtk) more open dialog tweaks based on feedback from Lacrocivious

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/open.c

    r5020 r5021  
    178178    g_signal_connect( w, "selection-changed", G_CALLBACK( sourceChanged ), data );
    179179    if( data->filename )
    180         gtk_file_chooser_set_uri( GTK_FILE_CHOOSER( w ), data->filename );
     180        if( !gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ), data->filename ) )
     181            g_warning( "couldn't select '%s'", data->filename );
    181182
    182183    ++row;
     
    187188    ++col;
    188189    w = gtk_file_chooser_button_new( _( "Destination" ), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER );
    189     gtk_file_chooser_set_uri( GTK_FILE_CHOOSER( w ), data->destination );
     190    if( !gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ), data->destination ) )
     191        g_warning( "couldn't select '%s'", data->destination );
    190192    gtk_table_attach( GTK_TABLE( t ), w, col, col+1, row, row+1, ~0, 0, 0, 0 );
    191193    gtk_label_set_mnemonic_widget( GTK_LABEL( l ), w );
Note: See TracChangeset for help on using the changeset viewer.