From d2ffdc9944af5c78d3e7236bd02844ec3fec02ff Mon Sep 17 00:00:00 2001 From: Micin Date: Sat, 30 Jul 2022 17:32:52 +0700 Subject: [PATCH 1/2] info --- src/Downloader.vala | 2 +- src/GabutWindow.vala | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Downloader.vala b/src/Downloader.vala index 88fc38d..c710ad4 100644 --- a/src/Downloader.vala +++ b/src/Downloader.vala @@ -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; diff --git a/src/GabutWindow.vala b/src/GabutWindow.vala index d4f02ab..66e6cb1 100644 --- a/src/GabutWindow.vala +++ b/src/GabutWindow.vala @@ -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); @@ -417,10 +417,10 @@ 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 ()) { @@ -428,6 +428,7 @@ namespace Gabut { } 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; @@ -435,7 +436,6 @@ namespace Gabut { ((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; From 10bf2120d433e10d41566348fbd16900fcc44dd2 Mon Sep 17 00:00:00 2001 From: Micin Date: Sat, 30 Jul 2022 17:35:58 +0700 Subject: [PATCH 2/2] Date time --- data/com.github.gabutakut.gabutdm.appdata.xml.in | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/com.github.gabutakut.gabutdm.appdata.xml.in b/data/com.github.gabutakut.gabutdm.appdata.xml.in index 3c6660f..c00b8a2 100644 --- a/data/com.github.gabutakut.gabutdm.appdata.xml.in +++ b/data/com.github.gabutakut.gabutdm.appdata.xml.in @@ -33,7 +33,7 @@ com.github.gabutakut.gabutdm - +

New Style

diff --git a/meson.build b/meson.build index 57c9484..cf547dc 100644 --- a/meson.build +++ b/meson.build @@ -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')