mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(gtk) more open dialog tweaks based on feedback from Lacrocivious
This commit is contained in:
parent
31790f031c
commit
e9c8c20962
1 changed files with 4 additions and 2 deletions
|
@ -177,7 +177,8 @@ makeaddwind( GtkWindow * parent,
|
||||||
gtk_file_chooser_add_filter( GTK_FILE_CHOOSER( w ), filter );
|
gtk_file_chooser_add_filter( GTK_FILE_CHOOSER( w ), filter );
|
||||||
g_signal_connect( w, "selection-changed", G_CALLBACK( sourceChanged ), data );
|
g_signal_connect( w, "selection-changed", G_CALLBACK( sourceChanged ), data );
|
||||||
if( data->filename )
|
if( data->filename )
|
||||||
gtk_file_chooser_set_uri( GTK_FILE_CHOOSER( w ), data->filename );
|
if( !gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ), data->filename ) )
|
||||||
|
g_warning( "couldn't select '%s'", data->filename );
|
||||||
|
|
||||||
++row;
|
++row;
|
||||||
col = 0;
|
col = 0;
|
||||||
|
@ -186,7 +187,8 @@ makeaddwind( GtkWindow * parent,
|
||||||
gtk_table_attach( GTK_TABLE( t ), l, col, col+1, row, row+1, GTK_FILL, 0, 0, 0 );
|
gtk_table_attach( GTK_TABLE( t ), l, col, col+1, row, row+1, GTK_FILL, 0, 0, 0 );
|
||||||
++col;
|
++col;
|
||||||
w = gtk_file_chooser_button_new( _( "Destination" ), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER );
|
w = gtk_file_chooser_button_new( _( "Destination" ), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER );
|
||||||
gtk_file_chooser_set_uri( GTK_FILE_CHOOSER( w ), data->destination );
|
if( !gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ), data->destination ) )
|
||||||
|
g_warning( "couldn't select '%s'", data->destination );
|
||||||
gtk_table_attach( GTK_TABLE( t ), w, col, col+1, row, row+1, ~0, 0, 0, 0 );
|
gtk_table_attach( GTK_TABLE( t ), w, col, col+1, row, row+1, ~0, 0, 0, 0 );
|
||||||
gtk_label_set_mnemonic_widget( GTK_LABEL( l ), w );
|
gtk_label_set_mnemonic_widget( GTK_LABEL( l ), w );
|
||||||
g_signal_connect( w, "selection-changed", G_CALLBACK( destinationChanged ), data );
|
g_signal_connect( w, "selection-changed", G_CALLBACK( destinationChanged ), data );
|
||||||
|
|
Loading…
Reference in a new issue