Skip to content

Commit

Permalink
Merge pull request #167 from torikulhabib/master
Browse files Browse the repository at this point in the history
Date time
  • Loading branch information
torikulhabib authored Jul 30, 2022
2 parents 7cabc45 + 10bf212 commit 9a9729b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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

0 comments on commit 9a9729b

Please sign in to comment.