Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date time #167

Merged
merged 2 commits into from
Jul 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/com.github.gabutakut.gabutdm.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<binary>com.github.gabutakut.gabutdm</binary>
</provides>
​ <releases>
<release version="1.8.7" date="2022-7-28">
<release version="1.8.8" date="2022-7-30">
<description>
<p>New Style</p>
</description>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project ('com.github.gabutakut.gabutdm','vala', 'c', version: '1.8.7')
project ('com.github.gabutakut.gabutdm','vala', 'c', version: '1.8.8')

i18n = import ('i18n')

Expand Down
2 changes: 1 addition & 1 deletion src/Downloader.vala
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace Gabut {
case 1:
torrentmode.label = _("Mode: %s").printf (aria_tell_bittorent (ariagid, TellBittorrent.MODE));
var timesn = new GLib.DateTime.from_unix_local (int64.parse (aria_tell_bittorent (ariagid, TellBittorrent.CREATIONDATE)));
timecreation.label = _("Time Creation: %s").printf (timesn.format ("%I:%M %p %x"));
timecreation.label = _("Time Creation: %s").printf (timesn.format ("%a, %I:%M %p %x"));
infotorrent.buffer.text = aria_tell_bittorent (ariagid, TellBittorrent.ANNOUNCELIST).strip ();
var commenttorrent = aria_tell_bittorent (ariagid, TellBittorrent.COMMENT);
commenttext.buffer.text = commenttorrent.contains ("\\/")? GLib.Uri.unescape_string (commenttorrent.replace ("\\/", "/")) : commenttorrent;
Expand Down
6 changes: 3 additions & 3 deletions src/GabutWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,13 @@ namespace Gabut {
}
});
showdatetime.toggled.connect (()=> {
sort_popover.hide ();
if (showdatetime.active) {
list_box.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) header_dm);
} else {
list_box.set_header_func (null);
}
set_dbsetting (DBSettings.SHOWTIME, showdatetime.active.to_string ());
sort_popover.hide ();
});
if (showdatetime.active) {
list_box.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) header_dm);
Expand All @@ -417,25 +417,25 @@ namespace Gabut {
}
sort_flow.show ();
sort_flow.child_activated.connect ((shorty)=> {
sort_popover.hide ();
sorttype = shorty as SortBy;
list_box.set_sort_func ((Gtk.ListBoxSortFunc) sort_dm);
listrow.sort (sort_dm);
sort_popover.hide ();
});
sorttype = sort_flow.get_child_at_index (int.parse (get_dbsetting (DBSettings.SORTBY))) as SortBy;
foreach (var deas in DeAscend.get_all ()) {
deas_flow.append (new DeAscending (deas));
}
deas_flow.show ();
deas_flow.child_activated.connect ((deas)=> {
sort_popover.hide ();
deascend = deas as DeAscending;
for (int i = 0; i <= DeAscend.DESCENDING; i++) {
((DeAscending) deas_flow.get_child_at_index (i)).activebtn = false;
}
((DeAscending) deas_flow.get_child_at_index (deascend.get_index ())).activebtn = true;
list_box.set_sort_func ((Gtk.ListBoxSortFunc) sort_dm);
listrow.sort (sort_dm);
sort_popover.hide ();
});
deascend = deas_flow.get_child_at_index (int.parse (get_dbsetting (DBSettings.ASCEDESCEN))) as DeAscending;
((DeAscending) deas_flow.get_child_at_index (deascend.get_index ())).activebtn = true;
Expand Down