mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(gtk) #1012: don't show the tray by default
This commit is contained in:
parent
7eea3985e2
commit
a1c55c7444
4 changed files with 1 additions and 11 deletions
|
@ -117,9 +117,6 @@ static GtkActionEntry entries[] =
|
|||
{ "new-torrent", GTK_STOCK_NEW, N_("_New..."), NULL,
|
||||
N_("Create a torrent"),
|
||||
G_CALLBACK(action_cb) },
|
||||
{ "close", GTK_STOCK_CLOSE, N_("Close _Window"), "<control>W",
|
||||
N_("Close main window"),
|
||||
G_CALLBACK(action_cb) },
|
||||
{ "quit", GTK_STOCK_QUIT, N_("_Quit"), NULL, NULL, G_CALLBACK(action_cb) },
|
||||
{ "select-all", GTK_STOCK_SELECT_ALL,
|
||||
N_( "Select _All" ), "<control>A", NULL, G_CALLBACK(action_cb) },
|
||||
|
|
|
@ -894,7 +894,6 @@ prefschanged( TrCore * core UNUSED, const char * key, gpointer data )
|
|||
else if( !strcmp( key, PREF_KEY_SHOW_TRAY_ICON ) )
|
||||
{
|
||||
const int show = pref_flag_get( key );
|
||||
action_sensitize ( "close", show );
|
||||
if( show && !cbdata->icon )
|
||||
cbdata->icon = tr_icon_new( cbdata->core );
|
||||
else if( !show && cbdata->icon ) {
|
||||
|
@ -1240,11 +1239,6 @@ doAction ( const char * action_name, gpointer user_data )
|
|||
{
|
||||
removeSelected( data, TRUE );
|
||||
}
|
||||
else if (!strcmp (action_name, "close"))
|
||||
{
|
||||
if( data->wind != NULL )
|
||||
winclose( NULL, NULL, data );
|
||||
}
|
||||
else if (!strcmp (action_name, "quit"))
|
||||
{
|
||||
askquit( data->core, data->wind, wannaquit, data );
|
||||
|
|
|
@ -63,7 +63,7 @@ tr_prefs_init_global( void )
|
|||
pref_flag_set_default ( PREF_KEY_TOOLBAR, TRUE );
|
||||
pref_flag_set_default ( PREF_KEY_FILTERBAR, TRUE );
|
||||
pref_flag_set_default ( PREF_KEY_STATUSBAR, TRUE );
|
||||
pref_flag_set_default ( PREF_KEY_SHOW_TRAY_ICON, TRUE );
|
||||
pref_flag_set_default ( PREF_KEY_SHOW_TRAY_ICON, FALSE );
|
||||
pref_string_set_default ( PREF_KEY_STATUSBAR_STATS, "total-ratio" );
|
||||
|
||||
pref_flag_set_default ( PREF_KEY_DL_LIMIT_ENABLED, FALSE );
|
||||
|
|
1
gtk/ui.h
1
gtk/ui.h
|
@ -15,7 +15,6 @@ const char * fallback_ui_file =
|
|||
" <menuitem action='remove-torrent'/>\n"
|
||||
" <menuitem action='delete-torrent'/>\n"
|
||||
" <separator/>\n"
|
||||
" <menuitem action='close'/>\n"
|
||||
" <menuitem action='quit'/>\n"
|
||||
" </menu>\n"
|
||||
" <menu action='edit-menu'>\n"
|
||||
|
|
Loading…
Reference in a new issue