Bug 38973 - tpl_log_manager_exists() doesn't have a GDate argument
Summary: tpl_log_manager_exists() doesn't have a GDate argument
Status: RESOLVED WONTFIX
Alias: None
Product: Telepathy
Classification: Unclassified
Component: logger (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 03:38 UTC by Emilio Pozuelo Monfort
Modified: 2011-10-31 11:14 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Emilio Pozuelo Monfort 2011-07-05 03:38:32 UTC
I want to make the 'What' (text, calls, ...) filters in the Empathy history window unsensitive when there are no events of that type, and tpl_log_manager_exists() comes handy here. The problem is that if the user selects 'Bob', and 'Yesterday' and you didn't have calls with Bob yesterday, but you have had today, then tpl_log_manager_exists() will return TRUE.

I think we should add a tpl_log_manager_exists_for_date() that takes an additional GDate* argument. This would also be faster as we don't need to (potentially) walk the whole folder, but only test one file.

FTR the Empathy bug is https://bugzilla.gnome.org/show_bug.cgi?id=653343
Comment 1 Emilio Pozuelo Monfort 2011-07-05 08:03:52 UTC
Actually we may not need this, see https://bugzilla.gnome.org/show_bug.cgi?id=653343#c6

I'll close this bug if we decide to keep the current behaviour in Empathy.
Comment 2 Nicolas Dufresne 2011-10-31 11:14:59 UTC
As it got merge in Empathy ...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.