1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(gtk) one more open -> add

This commit is contained in:
Charles Kerr 2008-04-03 02:13:13 +00:00
parent 2158ef37cd
commit 918f8f4936

View file

@ -258,7 +258,7 @@ addSingleTorrentDialog( GtkWindow * parent,
****/
static void
onOpenDialogResponse( GtkDialog * dialog, int response, gpointer core )
onAddDialogResponse( GtkDialog * dialog, int response, gpointer core )
{
char * folder;
@ -288,7 +288,7 @@ addDialog( GtkWindow * parent,
GtkWidget * c;
char * folder;
w = gtk_file_chooser_dialog_new( _( "Open a Torrent" ), parent,
w = gtk_file_chooser_dialog_new( _( "Add a Torrent" ), parent,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_ADD, GTK_RESPONSE_ACCEPT,
@ -299,7 +299,7 @@ addDialog( GtkWindow * parent,
-1 );
gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( w ), TRUE );
addTorrentFilters( GTK_FILE_CHOOSER( w ) );
g_signal_connect( w, "response", G_CALLBACK(onOpenDialogResponse), core );
g_signal_connect( w, "response", G_CALLBACK(onAddDialogResponse), core );
if(( folder = pref_string_get( PREF_KEY_OPEN_DIALOG_FOLDER ))) {
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( w ), folder );