(trunk gtk) grr, I accidentally committed the Novell patch related to #2222. That's supposed to be a downstream patch for SuSE only.

This commit is contained in:
Charles Kerr 2009-08-11 19:52:52 +00:00
parent 2a7fe76098
commit 3de46ad019
3 changed files with 0 additions and 22 deletions

View File

@ -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 );

View File

@ -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

View File

@ -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"