1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(gtk) #1105: "Statistics" window uses the same keyboard shortcut for "Clear" and "Close" buttons

This commit is contained in:
Charles Kerr 2008-07-22 21:01:28 +00:00
parent f8efe41e44
commit 30a81af036

View file

@ -114,8 +114,14 @@ stats_dialog_create( GtkWindow * parent, TrCore * core )
parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLEAR, TR_RESPONSE_CLEAR,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
GTK_STOCK_OK, GTK_RESPONSE_CLOSE,
NULL );
gtk_dialog_set_default_response( GTK_DIALOG( d ),
GTK_RESPONSE_CLOSE );
gtk_dialog_set_alternative_button_order( GTK_DIALOG( d ),
GTK_RESPONSE_CLOSE,
TR_RESPONSE_CLEAR,
-1 );
t = hig_workarea_create( );
gtk_box_pack_start_defaults( GTK_BOX(GTK_DIALOG(d)->vbox), t );
ui->core = core;