1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

Tighte up the "are you sure you want to exit?" dialog a bit for HIG

This commit is contained in:
Charles Kerr 2007-07-27 01:40:46 +00:00
parent 8f4fb4efbe
commit 815c6bfe1f

View file

@ -408,18 +408,21 @@ askquit( TrCore * core,
stuff->cbdata = cbdata; stuff->cbdata = cbdata;
stuff->core = core; stuff->core = core;
wind = gtk_message_dialog_new( parent, wind = gtk_message_dialog_new_with_markup( parent,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION, GTK_MESSAGE_QUESTION,
GTK_BUTTONS_NONE, GTK_BUTTONS_NONE,
_("Really exit %s?"), _("<b>Really Quit %s?</b>"),
g_get_application_name() ); g_get_application_name() );
gtk_message_dialog_format_secondary_text( GTK_MESSAGE_DIALOG(wind),
_("This will close all active torrents."));
gtk_dialog_add_buttons( GTK_DIALOG(wind), gtk_dialog_add_buttons( GTK_DIALOG(wind),
GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
GTK_STOCK_QUIT, GTK_RESPONSE_ACCEPT, GTK_STOCK_QUIT, GTK_RESPONSE_ACCEPT,
NULL ); NULL );
gtk_dialog_set_default_response( GTK_DIALOG( wind ),
gtk_dialog_set_default_response( GTK_DIALOG( wind ), GTK_RESPONSE_ACCEPT ); GTK_RESPONSE_ACCEPT );
dontask = gtk_check_button_new_with_mnemonic( _("_Don't Ask Me This Again") ); dontask = gtk_check_button_new_with_mnemonic( _("_Don't Ask Me This Again") );
stuff->dontask = dontask; stuff->dontask = dontask;