Make sure that tabs are getting used instead of spaces

parent 0ff0cb20
Pipeline #184646 passed with stage
in 4 minutes and 26 seconds
......@@ -99,7 +99,7 @@ public class Fragments.App : Gtk.Application {
string[] artists = {
"Tobias Bernard",
"Jakub Steiner",
"Jakub Steiner",
"Sam Hewitt",
};
......@@ -121,7 +121,7 @@ public class Fragments.App : Gtk.Application {
Intl.bindtextdomain(Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR);
Intl.setlocale(LocaleCategory.ALL, "");
Intl.textdomain(Config.GETTEXT_PACKAGE);
Intl.bind_textdomain_codeset(Config.GETTEXT_PACKAGE, "utf-8");
Intl.bind_textdomain_codeset(Config.GETTEXT_PACKAGE, "utf-8");
Gtk.init(ref args);
......
......@@ -39,7 +39,7 @@ public class Fragments.SettingsWindow : Hdy.PreferencesWindow {
// Translators: Button of the file chooser to select a torrent
chooser.add_button (_("Open"), Gtk.ResponseType.ACCEPT);
chooser.set_default_response (Gtk.ResponseType.ACCEPT);
chooser.set_current_folder(App.settings.download_folder);
chooser.set_current_folder(App.settings.download_folder);
if (chooser.run () == Gtk.ResponseType.ACCEPT) {
App.settings.download_folder = chooser.get_current_folder();
......
......@@ -26,8 +26,8 @@ public class Fragments.TorrentModel : Object, ListModel{
}
public Type get_item_type () {
return typeof(Torrent);
}
return typeof(Torrent);
}
public Object? get_item(uint position){
var torrent = torrents.peek_nth(position);
......
......@@ -76,10 +76,10 @@ public class Fragments.TorrentRow : Hdy.PreferencesRow {
set_size_mode(a.width);
open_button.clicked.connect(() => {
var path = torrent.download_dir;
File file = File.new_for_path(path);
var path = torrent.download_dir;
File file = File.new_for_path(path);
Utils.show_file_in_filemanager.begin((file));
Utils.show_file_in_filemanager.begin((file));
});
}
......
......@@ -117,7 +117,7 @@ public class Fragments.Torrent : Object{
download_speed = Transmission.String.Units.speed_KBps (buf, torrent.stat_cached.pieceDownloadSpeed_KBps); notify_property("download-speed");
upload_speed = Transmission.String.Units.speed_KBps (buf, torrent.stat_cached.pieceUploadSpeed_KBps); notify_property("upload-speed");
download_dir = torrent.download_dir + "/" + name;
download_dir = torrent.download_dir + "/" + name;
reset_information_timeout();
}
......
......@@ -27,10 +27,10 @@ public class Fragments.Window : Gtk.ApplicationWindow {
TorrentGroup seeding_group = new TorrentGroup(C_("Title of a list of torrents in the main window","Seeding"));
TorrentGroup queued_group = new TorrentGroup(C_("Title of a list of torrents in the main window","Queued"));
Box groups = new Box(Orientation.VERTICAL, 0);
groups.spacing = 22;
groups.margin_bottom = 22;
groups.margin_top = 22;
Box groups = new Box(Orientation.VERTICAL, 0);
groups.spacing = 22;
groups.margin_bottom = 22;
groups.margin_top = 22;
groups.add(downloading_group);
groups.add(queued_group);
groups.add(seeding_group);
......
[CCode (cprefix = "", lower_case_cprefix = "")]
namespace Config {
public const string VERSION;
public const string GETTEXT_PACKAGE;
public const string GNOMELOCALEDIR;
public const string VERSION;
public const string GETTEXT_PACKAGE;
public const string GNOMELOCALEDIR;
}
......@@ -75,385 +75,385 @@ namespace Transmission {
public const string PEER_LIMIT_TORRENT_STR;
}
[CCode (cname = "tr_quark", cprefix = "TR_KEY_", has_type_id = false)]
[CCode (cname = "tr_quark", cprefix = "TR_KEY_", has_type_id = false)]
public enum Prefs {
NONE, /* represented as an empty string */
activeTorrentCount, /* rpc */
activity_date, /* resume file */
activityDate, /* rpc */
added, /* pex */
added_date, /* rpc */
added_f, /* pex */
added6, /* pex */
added6_f, /* pex */
addedDate, /* rpc */
address, /* rpc */
alt_speed_down, /* rpc, settings */
alt_speed_enabled, /* rpc, settings */
alt_speed_time_begin, /* rpc, settings */
alt_speed_time_day, /* rpc, settings */
alt_speed_time_enabled, /* rpc, settings */
alt_speed_time_end, /* rpc, settings */
alt_speed_up, /* rpc, settings */
announce, /* metainfo */
announce_list, /* metainfo */
announceState, /* rpc */
arguments, /* rpc */
bandwidth_priority,
bandwidthPriority,
bind_address_ipv4,
bind_address_ipv6,
bitfield,
blocklist_date,
blocklist_enabled,
blocklist_size,
blocklist_updates_enabled,
blocklist_url,
blocks,
bytesCompleted,
cache_size_mb,
clientIsChoked,
clientIsInterested,
clientName,
comment,
comment_utf_8,
compact_view,
complete,
config_dir,
cookies,
corrupt,
corruptEver,
created_by,
created_by_utf_8,
creation_date,
creator,
cumulative_stats,
current_stats,
date,
dateCreated,
delete_local_data,
desiredAvailable,
destination,
dht_enabled,
display_name,
dnd,
done_date,
doneDate,
download_dir,
download_dir_free_space,
download_queue_enabled,
download_queue_size,
downloadCount,
downloadDir,
downloadLimit,
downloadLimited,
downloadSpeed,
downloaded,
downloaded_bytes,
downloadedBytes,
downloadedEver,
downloaders,
downloading_time_seconds,
dropped,
dropped6,
e,
encoding,
encryption,
error,
errorString,
eta,
etaIdle,
failure_reason,
fields,
fileStats,
filename,
files,
files_added,
files_unwanted,
files_wanted,
filesAdded,
filter_mode,
filter_text,
filter_trackers,
flagStr,
flags,
fromCache,
fromDht,
fromIncoming,
fromLpd,
fromLtep,
fromPex,
fromTracker,
hasAnnounced,
hasScraped,
hashString,
have,
haveUnchecked,
haveValid,
honorsSessionLimits,
host,
id,
idle_limit,
idle_mode,
idle_seeding_limit,
idle_seeding_limit_enabled,
ids,
incomplete,
incomplete_dir,
incomplete_dir_enabled,
info,
info_hash,
inhibit_desktop_hibernation,
interval,
ip,
ipv4,
ipv6,
isBackup,
isDownloadingFrom,
isEncrypted,
isFinished,
isIncoming,
isPrivate,
isStalled,
isUTP,
isUploadingTo,
lastAnnouncePeerCount,
lastAnnounceResult,
lastAnnounceStartTime,
lastAnnounceSucceeded,
lastAnnounceTime,
lastAnnounceTimedOut,
lastScrapeResult,
lastScrapeStartTime,
lastScrapeSucceeded,
lastScrapeTime,
lastScrapeTimedOut,
leecherCount,
leftUntilDone,
length,
location,
lpd_enabled,
m,
magnet_info,
magnetLink,
main_window_height,
main_window_is_maximized,
main_window_layout_order,
main_window_width,
main_window_x,
main_window_y,
manualAnnounceTime,
max_peers,
maxConnectedPeers,
memory_bytes,
memory_units,
message_level,
metadataPercentComplete,
metadata_size,
metainfo,
method,
min_interval,
min_request_interval,
move,
msg_type,
mtimes,
name,
name_utf_8,
nextAnnounceTime,
nextScrapeTime,
nodes,
nodes6,
open_dialog_dir,
p,
path,
path_utf_8,
paused,
pausedTorrentCount,
peer_congestion_algorithm,
peer_id_ttl_hours,
peer_limit,
peer_limit_global,
peer_limit_per_torrent,
peer_port,
peer_port_random_high,
peer_port_random_low,
peer_port_random_on_start,
peer_socket_tos,
peerIsChoked,
peerIsInterested,
peers,
peers2,
peers2_6,
peers6,
peersConnected,
peersFrom,
peersGettingFromUs,
peersSendingToUs,
percentDone,
pex_enabled,
piece,
piece_length,
pieceCount,
pieceSize,
pieces,
play_download_complete_sound,
port,
port_forwarding_enabled,
port_is_open,
preallocation,
prefetch_enabled,
priorities,
priority,
priority_high,
priority_low,
priority_normal,
private,
progress,
prompt_before_exit,
queue_move_bottom,
queue_move_down,
queue_move_top,
queue_move_up,
queue_stalled_enabled,
queue_stalled_minutes,
queuePosition,
rateDownload,
rateToClient,
rateToPeer,
rateUpload,
ratio_limit,
ratio_limit_enabled,
ratio_mode,
recent_download_dir_1,
recent_download_dir_2,
recent_download_dir_3,
recent_download_dir_4,
recheckProgress,
remote_session_enabled,
remote_session_host,
remote_session_password,
remote_session_port,
remote_session_requres_authentication,
remote_session_username,
removed,
rename_partial_files,
reqq,
result,
rpc_authentication_required,
rpc_bind_address,
rpc_enabled,
rpc_password,
rpc_port,
rpc_url,
rpc_username,
rpc_version,
rpc_version_minimum,
rpc_whitelist,
rpc_whitelist_enabled,
scrape,
scrape_paused_torrents_enabled,
scrapeState,
script_torrent_done_enabled,
script_torrent_done_filename,
seconds_active,
secondsActive,
secondsDownloading,
secondsSeeding,
seed_queue_enabled,
seed_queue_size,
seedIdleLimit,
seedIdleMode,
seedRatioLimit,
seedRatioLimited,
seedRatioMode,
seederCount,
seeding_time_seconds,
session_count,
session_id,
sessionCount,
show_backup_trackers,
show_extra_peer_details,
show_filterbar,
show_notification_area_icon,
show_options_window,
show_statusbar,
show_toolbar,
show_tracker_scrapes,
size_bytes,
size_units,
sizeWhenDone,
sort_mode,
sort_reversed,
speed,
speed_Bps,
speed_bytes,
speed_limit_down,
speed_limit_down_enabled,
speed_limit_up,
speed_limit_up_enabled,
speed_units,
start_added_torrents,
start_minimized,
startDate,
status,
statusbar_stats,
tag,
tier,
time_checked,
torrent_added,
torrent_added_notification_command,
torrent_added_notification_enabled,
torrent_complete_notification_command,
torrent_complete_notification_enabled,
torrent_complete_sound_command,
torrent_complete_sound_enabled,
torrent_duplicate,
torrent_get,
torrent_set,
torrent_set_location,
torrentCount,
torrentFile,
torrents,
totalSize,
total_size,
tracker_id,
trackerAdd,
trackerRemove,
trackerReplace,
trackerStats,
trackers,
trash_can_enabled,
trash_original_torrent_files,
umask,
units,
upload_slots_per_torrent,
uploadLimit,
uploadLimited,
uploadRatio,
uploadSpeed,
upload_only,
uploaded,
uploaded_bytes,
uploadedBytes,
uploadedEver,
url_list,
use_global_speed_limit,
use_speed_limit,
user_has_given_informed_consent,
ut_comment,
ut_holepunch,
ut_metadata,
ut_pex,
ut_recommend,
utp_enabled,
v,
version,
wanted,
warning_message,
watch_dir,
watch_dir_enabled,
webseeds,
webseedsSendingToUs
NONE, /* represented as an empty string */
activeTorrentCount, /* rpc */
activity_date, /* resume file */
activityDate, /* rpc */
added, /* pex */
added_date, /* rpc */
added_f, /* pex */
added6, /* pex */
added6_f, /* pex */
addedDate, /* rpc */
address, /* rpc */
alt_speed_down, /* rpc, settings */
alt_speed_enabled, /* rpc, settings */
alt_speed_time_begin, /* rpc, settings */
alt_speed_time_day, /* rpc, settings */
alt_speed_time_enabled, /* rpc, settings */
alt_speed_time_end, /* rpc, settings */
alt_speed_up, /* rpc, settings */
announce, /* metainfo */
announce_list, /* metainfo */
announceState, /* rpc */
arguments, /* rpc */
bandwidth_priority,
bandwidthPriority,
bind_address_ipv4,
bind_address_ipv6,
bitfield,
blocklist_date,
blocklist_enabled,
blocklist_size,
blocklist_updates_enabled,
blocklist_url,
blocks,
bytesCompleted,
cache_size_mb,
clientIsChoked,
clientIsInterested,
clientName,
comment,
comment_utf_8,
compact_view,
complete,
config_dir,
cookies,
corrupt,
corruptEver,
created_by,
created_by_utf_8,
creation_date,
creator,
cumulative_stats,
current_stats,
date,
dateCreated,
delete_local_data,
desiredAvailable,
destination,
dht_enabled,
display_name,
dnd,
done_date,
doneDate,
download_dir,
download_dir_free_space,
download_queue_enabled,
download_queue_size,
downloadCount,
downloadDir,
downloadLimit,
downloadLimited,
downloadSpeed,
downloaded,
downloaded_bytes,
downloadedBytes,
downloadedEver,
downloaders,
downloading_time_seconds,
dropped,
dropped6,
e,
encoding,
encryption,
error,
errorString,
eta,
etaIdle,
failure_reason,
fields,
fileStats,
filename,
files,
files_added,
files_unwanted,
files_wanted,
filesAdded,
filter_mode,
filter_text,
filter_trackers,
flagStr,
flags,
fromCache,
fromDht,
fromIncoming,
fromLpd,
fromLtep,
fromPex,
fromTracker,
hasAnnounced,
hasScraped,
hashString,
have,
haveUnchecked,
haveValid,
honorsSessionLimits,
host,
id,
idle_limit,
idle_mode,
idle_seeding_limit,
idle_seeding_limit_enabled,
ids,
incomplete,
incomplete_dir,
incomplete_dir_enabled,
info,
info_hash,
inhibit_desktop_hibernation,
interval,
ip,
ipv4,
ipv6,
isBackup,
isDownloadingFrom,
isEncrypted,
isFinished,
isIncoming,
isPrivate,
isStalled,
isUTP,
isUploadingTo,
lastAnnouncePeerCount,
lastAnnounceResult,
lastAnnounceStartTime,
lastAnnounceSucceeded,
lastAnnounceTime,
lastAnnounceTimedOut,
lastScrapeResult,
lastScrapeStartTime,
lastScrapeSucceeded,
lastScrapeTime,
lastScrapeTimedOut,
leecherCount,
leftUntilDone,
length,
location,
lpd_enabled,
m,
magnet_info,
magnetLink,
main_window_height,
main_window_is_maximized,
main_window_layout_order,
main_window_width,
main_window_x,
main_window_y,
manualAnnounceTime,
max_peers,
maxConnectedPeers,
memory_bytes,
memory_units,
message_level,
metadataPercentComplete,
metadata_size,
metainfo,
method,
min_interval,
min_request_interval,
move,
msg_type,
mtimes,
name,
name_utf_8,
nextAnnounceTime,
nextScrapeTime,