diff --git a/gtk/conf.c b/gtk/conf.c index 99ae9e516..cf1cb6e49 100644 --- a/gtk/conf.c +++ b/gtk/conf.c @@ -166,7 +166,6 @@ tr_prefs_init_defaults( tr_benc * d ) tr_bencDictAddBool( d, PREF_KEY_DIR_WATCH_ENABLED, FALSE ); #endif - tr_bencDictAddBool( d, PREF_KEY_LEGAL_DIALOG_ON_STARTUP, TRUE ); tr_bencDictAddBool( d, PREF_KEY_INHIBIT_HIBERNATION, FALSE ); tr_bencDictAddBool( d, PREF_KEY_BLOCKLIST_UPDATES_ENABLED, TRUE ); diff --git a/gtk/main.c b/gtk/main.c index e878a0b2c..ecbcddfd8 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -542,26 +542,6 @@ appsetup( TrWindow * wind, gtk_window_set_skip_taskbar_hint( cbdata->wind, cbdata->icon != NULL ); } - - if( pref_flag_get( PREF_KEY_LEGAL_DIALOG_ON_STARTUP ) ) - { - /* show the legal dialog */ - GtkWidget * w = gtk_message_dialog_new( GTK_WINDOW( wind ), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_INFO, - GTK_BUTTONS_OK, - "%s", - _( "Notice for first-time users" ) ); - gtk_message_dialog_format_secondary_text( GTK_MESSAGE_DIALOG( w ), - "%s", - _( "Transmission should only be used for legal file transfers. " - "Please respect other peoples' property." ) ); - g_signal_connect_swapped( w, "response", G_CALLBACK( gtk_widget_destroy ), w ); - gtk_widget_show( w ); - - /* only show it once */ - pref_flag_set( PREF_KEY_LEGAL_DIALOG_ON_STARTUP, FALSE ); - } } static void diff --git a/gtk/tr-prefs.h b/gtk/tr-prefs.h index 3e90baf1a..75e81e869 100644 --- a/gtk/tr-prefs.h +++ b/gtk/tr-prefs.h @@ -21,7 +21,6 @@ GtkWidget * tr_prefs_dialog_new( GObject * core, /* if you add a key here, you /must/ add its * default in tr_prefs_init_defaults( void ) */ -#define PREF_KEY_LEGAL_DIALOG_ON_STARTUP "show-legal-dialog-on-startup" #define PREF_KEY_OPTIONS_PROMPT "show-options-window" #define PREF_KEY_OPEN_DIALOG_FOLDER "open-dialog-dir" #define PREF_KEY_INHIBIT_HIBERNATION "inhibit-desktop-hibernation"