mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(gtk) #1105: "Statistics" window uses the same keyboard shortcut for "Clear" and "Close" buttons
This commit is contained in:
parent
f8efe41e44
commit
30a81af036
1 changed files with 7 additions and 1 deletions
|
@ -114,8 +114,14 @@ stats_dialog_create( GtkWindow * parent, TrCore * core )
|
||||||
parent,
|
parent,
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||||
GTK_STOCK_CLEAR, TR_RESPONSE_CLEAR,
|
GTK_STOCK_CLEAR, TR_RESPONSE_CLEAR,
|
||||||
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
GTK_STOCK_OK, GTK_RESPONSE_CLOSE,
|
||||||
NULL );
|
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( );
|
t = hig_workarea_create( );
|
||||||
gtk_box_pack_start_defaults( GTK_BOX(GTK_DIALOG(d)->vbox), t );
|
gtk_box_pack_start_defaults( GTK_BOX(GTK_DIALOG(d)->vbox), t );
|
||||||
ui->core = core;
|
ui->core = core;
|
||||||
|
|
Loading…
Reference in a new issue