Changeset 5298


Ignore:
Timestamp:
Mar 19, 2008, 1:49:07 AM (14 years ago)
Author:
charles
Message:

fix "select all" wart for users w/gtk < 2.10

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r5226 r5298  
    3939#endif
    4040
    41 #if !GTK_CHECK_VERSION(2,10,0)
    42 #define GTK_STOCK_SELECT_ALL NULL
    43 #endif
    44 
    4541static GtkRadioActionEntry sort_radio_entries[] =
    4642{
    4743  { "sort-by-activity",   NULL, N_("Sort by _Activity"),   NULL, NULL, 0 },
    48   { "sort-by-date-added", NULL, N_("Sort by _Date Added"), NULL, NULL, 1 },
    49   { "sort-by-name",       NULL, N_("Sort by _Name"),       NULL, NULL, 2 },
    50   { "sort-by-progress",   NULL, N_("Sort by _Progress"),   NULL, NULL, 3 },
    51   { "sort-by-state",      NULL, N_("Sort by _State"),      NULL, NULL, 4 },
    52   { "sort-by-tracker",    NULL, N_("Sort by _Tracker"),    NULL, NULL, 5 }
     44  { "sort-by-name",       NULL, N_("Sort by _Name"),       NULL, NULL, 1 },
     45  { "sort-by-progress",   NULL, N_("Sort by _Progress"),   NULL, NULL, 2 },
     46  { "sort-by-state",      NULL, N_("Sort by _State"),      NULL, NULL, 3 },
     47  { "sort-by-tracker",    NULL, N_("Sort by _Tracker"),    NULL, NULL, 4 }
    5348};
    5449
     
    119114    G_CALLBACK(action_cb) },
    120115  { "quit", GTK_STOCK_QUIT, N_("_Quit"), NULL, NULL, G_CALLBACK(action_cb) },
    121   { "select-all", GTK_STOCK_SELECT_ALL, NULL, "<control>A", NULL, G_CALLBACK(action_cb) },
     116  { "select-all", NULL,
     117    N_( "Select _All" ), "<control>A", NULL, G_CALLBACK(action_cb) },
    122118  { "unselect-all", NULL,
    123119    N_("Dese_lect All"), "<shift><control>A", NULL, G_CALLBACK(action_cb) },
  • trunk/gtk/details.c

    r5237 r5298  
    720720    l = gtk_label_new (tr_torrentGetFolder (tor));
    721721    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
    722     hig_workarea_add_row (t, &row, _( "Destination folder" ), l, NULL);
     722    hig_workarea_add_row (t, &row, _( "Destination folder:" ), l, NULL);
    723723
    724724    l = gtk_label_new ( info->torrent );
    725725    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
    726     hig_workarea_add_row (t, &row, _( "Torrent file" ), l, NULL);
     726    hig_workarea_add_row (t, &row, _( "Torrent file:" ), l, NULL);
    727727
    728728  hig_workarea_finish (t, &row);
     
    10021002    w = gtk_spin_button_new_with_range( 1, 3000, 5 );
    10031003    gtk_spin_button_set_value( GTK_SPIN_BUTTON( w ), maxConnectedPeers );
    1004     hig_workarea_add_row( t, &row, _( "_Maximum number of peers:" ), w, w );
     1004    hig_workarea_add_row( t, &row, _( "_Maximum peers:" ), w, w );
    10051005    g_signal_connect( w, "value-changed", G_CALLBACK( max_peers_spun_cb ), gtor );
    10061006
  • trunk/gtk/open-dialog.c

    r5295 r5298  
    145145
    146146    /* make the dialog */
    147     d = gtk_dialog_new_with_buttons( _( "Open Torrent" ), parent,
     147    d = gtk_dialog_new_with_buttons( _( "Torrent Options" ), parent,
    148148            GTK_DIALOG_DESTROY_WITH_PARENT|GTK_DIALOG_NO_SEPARATOR,
    149149            GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
     
    273273    char * folder;
    274274
    275     w = gtk_file_chooser_dialog_new( _( "Select Torrents" ), parent,
     275    w = gtk_file_chooser_dialog_new( _( "Open a Torrent" ), parent,
    276276                                     GTK_FILE_CHOOSER_ACTION_OPEN,
    277277                                     GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
Note: See TracChangeset for help on using the changeset viewer.