Changeset 6118


Ignore:
Timestamp:
Jun 10, 2008, 4:23:11 AM (13 years ago)
Author:
charles
Message:

(gtk) #1012: don't show the tray by default

Location:
trunk/gtk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r6065 r6118  
    118118    N_("Create a torrent"),
    119119    G_CALLBACK(action_cb) },
    120   { "close", GTK_STOCK_CLOSE, N_("Close _Window"), "<control>W",
    121     N_("Close main window"),
    122     G_CALLBACK(action_cb) },
    123120  { "quit", GTK_STOCK_QUIT, N_("_Quit"), NULL, NULL, G_CALLBACK(action_cb) },
    124121  { "select-all", GTK_STOCK_SELECT_ALL,
  • trunk/gtk/main.c

    r6065 r6118  
    895895    {
    896896        const int show = pref_flag_get( key );
    897         action_sensitize ( "close", show );
    898897        if( show && !cbdata->icon )
    899898            cbdata->icon = tr_icon_new( cbdata->core );
     
    12411240        removeSelected( data, TRUE );
    12421241    }
    1243     else if (!strcmp (action_name, "close"))
    1244     {
    1245         if( data->wind != NULL )
    1246             winclose( NULL, NULL, data );
    1247     }
    12481242    else if (!strcmp (action_name, "quit"))
    12491243    {
  • trunk/gtk/tr-prefs.c

    r6073 r6118  
    6464    pref_flag_set_default   ( PREF_KEY_FILTERBAR, TRUE );
    6565    pref_flag_set_default   ( PREF_KEY_STATUSBAR, TRUE );
    66     pref_flag_set_default   ( PREF_KEY_SHOW_TRAY_ICON, TRUE );
     66    pref_flag_set_default   ( PREF_KEY_SHOW_TRAY_ICON, FALSE );
    6767    pref_string_set_default ( PREF_KEY_STATUSBAR_STATS, "total-ratio" );
    6868
  • trunk/gtk/ui.h

    r6065 r6118  
    1616"      <menuitem action='delete-torrent'/>\n"
    1717"      <separator/>\n"
    18 "      <menuitem action='close'/>\n"
    1918"      <menuitem action='quit'/>\n"
    2019"    </menu>\n"
Note: See TracChangeset for help on using the changeset viewer.