mirror of
https://github.com/transmission/transmission
synced 2025-02-13 18:04:43 +00:00
(trunk gtk) #2706 "Statistics window Delete button label" -- rename the "Delete" button as "Reset"
This commit is contained in:
parent
be77238af4
commit
b7fc7bd955
1 changed files with 5 additions and 6 deletions
11
gtk/stats.c
11
gtk/stats.c
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
TR_RESPONSE_CLEAR = 1
|
TR_RESPONSE_RESET = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
struct stat_ui
|
struct stat_ui
|
||||||
|
@ -101,7 +101,7 @@ dialogResponse( GtkDialog * dialog,
|
||||||
{
|
{
|
||||||
struct stat_ui * ui = gdata;
|
struct stat_ui * ui = gdata;
|
||||||
|
|
||||||
if( response == TR_RESPONSE_CLEAR )
|
if( response == TR_RESPONSE_RESET )
|
||||||
{
|
{
|
||||||
tr_sessionClearStats( tr_core_session( ui->core ) );
|
tr_sessionClearStats( tr_core_session( ui->core ) );
|
||||||
updateStats( ui );
|
updateStats( ui );
|
||||||
|
@ -124,19 +124,18 @@ stats_dialog_create( GtkWindow * parent,
|
||||||
GtkWidget * l;
|
GtkWidget * l;
|
||||||
struct stat_ui * ui = g_new0( struct stat_ui, 1 );
|
struct stat_ui * ui = g_new0( struct stat_ui, 1 );
|
||||||
|
|
||||||
d = gtk_dialog_new_with_buttons( _(
|
d = gtk_dialog_new_with_buttons( _( "Statistics" ),
|
||||||
"Statistics" ),
|
|
||||||
parent,
|
parent,
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT |
|
GTK_DIALOG_DESTROY_WITH_PARENT |
|
||||||
GTK_DIALOG_NO_SEPARATOR,
|
GTK_DIALOG_NO_SEPARATOR,
|
||||||
GTK_STOCK_DELETE, TR_RESPONSE_CLEAR,
|
_( "_Reset" ), TR_RESPONSE_RESET,
|
||||||
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
||||||
NULL );
|
NULL );
|
||||||
gtk_dialog_set_default_response( GTK_DIALOG( d ),
|
gtk_dialog_set_default_response( GTK_DIALOG( d ),
|
||||||
GTK_RESPONSE_CLOSE );
|
GTK_RESPONSE_CLOSE );
|
||||||
gtk_dialog_set_alternative_button_order( GTK_DIALOG( d ),
|
gtk_dialog_set_alternative_button_order( GTK_DIALOG( d ),
|
||||||
GTK_RESPONSE_CLOSE,
|
GTK_RESPONSE_CLOSE,
|
||||||
TR_RESPONSE_CLEAR,
|
TR_RESPONSE_RESET,
|
||||||
-1 );
|
-1 );
|
||||||
t = hig_workarea_create( );
|
t = hig_workarea_create( );
|
||||||
gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), t, TRUE, TRUE, 0 );
|
gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), t, TRUE, TRUE, 0 );
|
||||||
|
|
Loading…
Reference in a new issue