Changeset 5217


Ignore:
Timestamp:
Mar 7, 2008, 6:57:32 PM (14 years ago)
Author:
charles
Message:

remove a couple of preferences:
(1) "delete original file" ... this can be turned on in the "add" dialog, but who would want this to always be unconditionally true?
(2) "show in systray" ... since not many people will toggle this, move it from the prefs dialog to the .ini file

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r5207 r5217  
    500500        tr_ctorSetPaused( ctor, TR_FORCE, !pref_flag_get( PREF_KEY_START ) );
    501501
    502     if( tr_ctorGetDeleteSource( ctor, NULL ) )
    503         tr_ctorSetDeleteSource( ctor,
    504                                 pref_flag_get( PREF_KEY_DELETE_ORIGINAL ) );
    505 
    506502    if( tr_ctorGetMaxConnectedPeers( ctor, TR_FORCE, NULL ) )
    507503        tr_ctorSetMaxConnectedPeers( ctor, TR_FORCE,
  • trunk/gtk/tr-prefs.c

    r5214 r5217  
    7272
    7373    pref_flag_set_default   ( PREF_KEY_START, TRUE );
    74     pref_flag_set_default   ( PREF_KEY_DELETE_ORIGINAL, FALSE );
    7574
    7675    pref_save( NULL );
     
    208207
    209208static GtkWidget*
    210 generalPage( GObject * core )
     209torrentPage( GObject * core )
    211210{
    212211    int row = 0;
     
    216215
    217216    t = hig_workarea_create( );
    218     hig_workarea_add_section_title( t, &row, _( "Windows" ) );
    219        
    220         s = _("Show an _icon in the system tray");
    221         w = new_check_button( s, PREF_KEY_SYSTRAY, core );
    222         hig_workarea_add_wide_control( t, &row, w );
    223        
    224         s = _("Confirm _quit");
    225         w = new_check_button( s, PREF_KEY_ASKQUIT, core );
    226         hig_workarea_add_wide_control( t, &row, w );
    227 
    228     hig_workarea_finish( t, &row );
    229     return t;
    230 }
    231 
    232 static GtkWidget*
    233 torrentPage( GObject * core )
    234 {
    235     int row = 0;
    236     const char * s;
    237     GtkWidget * t;
    238     GtkWidget * w;
    239 
    240     t = hig_workarea_create( );
    241217    hig_workarea_add_section_title( t, &row, _( "Adding" ) );
    242218
     
    250226        s = _( "_Start when added" );
    251227        w = new_check_button( s, PREF_KEY_START, core );
    252         hig_workarea_add_wide_control( t, &row, w );
    253 
    254         s = _( "_Delete original torrent file" );
    255         w = new_check_button( s, PREF_KEY_DELETE_ORIGINAL, core );
    256228        hig_workarea_add_wide_control( t, &row, w );
    257229
     
    383355                              networkPage( core, alive ),
    384356                              gtk_label_new (_("Network")) );
    385     gtk_notebook_append_page( GTK_NOTEBOOK( n ),
    386                               generalPage( core ),
    387                               gtk_label_new (_("General")) );
    388357
    389358    g_signal_connect( d, "response", G_CALLBACK(response_cb), core );
  • trunk/gtk/tr-prefs.h

    r5122 r5217  
    2828#define PREF_KEY_DIR_DEFAULT            "default-download-directory"
    2929#define PREF_KEY_START                  "start-added-torrents"
    30 #define PREF_KEY_DELETE_ORIGINAL        "delete-original-torrent-files"
    3130#define PREF_KEY_PORT                   "listening-port"
    3231#define PREF_KEY_NAT                    "nat-traversal-enabled"
Note: See TracChangeset for help on using the changeset viewer.