Changeset 8420


Ignore:
Timestamp:
May 16, 2009, 7:41:41 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #2090: Speed limit switch accessibility

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r8389 r8420  
    8888static GtkToggleActionEntry  pref_toggle_entries[] =
    8989{
    90     { "minimal-view",          NULL,
    91       N_( "_Minimal View" ), "<alt>M", NULL, G_CALLBACK( toggle_pref_cb ),
    92       FALSE },
    93     { "sort-reversed",         NULL,
    94       N_( "_Reverse Sort Order" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ),
    95       FALSE },
    96     { "show-filterbar",        NULL,
    97       N_( "_Filterbar" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
    98     { "show-statusbar",        NULL,
    99       N_( "_Statusbar" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
    100     { "show-toolbar",          NULL,
    101       N_( "_Toolbar" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE }
     90    { "alt-speed-enabled", NULL, N_( "Speed _Limit Mode" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
     91    { "minimal-view",      NULL, N_( "_Minimal View" ), "<alt>M", NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
     92    { "sort-reversed",     NULL, N_( "_Reverse Sort Order" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
     93    { "show-filterbar",    NULL, N_( "_Filterbar" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
     94    { "show-statusbar",    NULL, N_( "_Statusbar" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE },
     95    { "show-toolbar",      NULL, N_( "_Toolbar" ), NULL, NULL, G_CALLBACK( toggle_pref_cb ), FALSE }
    10296};
    10397
  • trunk/gtk/main.c

    r8410 r8420  
    10761076    else if( !strcmp( key, TR_PREFS_KEY_ALT_SPEED_ENABLED ) )
    10771077    {
    1078         tr_sessionUseAltSpeed( tr, pref_flag_get( key ) );
     1078        const gboolean b = pref_flag_get( key );
     1079        tr_sessionUseAltSpeed( tr, b );
     1080        action_toggle( key, b );
    10791081    }
    10801082    else if( !strcmp( key, TR_PREFS_KEY_ALT_SPEED_TIME_BEGIN ) )
  • trunk/gtk/ui.h

    r8397 r8420  
    8484    "    <menuitem action='toggle-main-window'/>\n"
    8585    "    <menuitem action='toggle-message-log'/>\n"
    86     "    <menuitem action='show-about-dialog'/>\n"
     86    "    <menuitem action='alt-speed-enabled'/>\n"
    8787    "    <separator/>\n"
    8888    "    <menuitem action='start-all-torrents'/>\n"
    8989    "    <menuitem action='pause-all-torrents'/>\n"
    9090    "    <separator/>\n"
     91    "    <menuitem action='show-about-dialog'/>\n"
    9192    "    <menuitem action='quit'/>\n"
    9293    "  </popup>\n"
Note: See TracChangeset for help on using the changeset viewer.