~indicator-applet-developers/indicator-appmenu/trunk.13.04

« back to all changes in this revision

Viewing changes to src/usage-tracker.c

* Upstream Merge
  * GMenuModel menu support

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
with this program.  If not, see <http://www.gnu.org/licenses/>.
21
21
*/
22
22
 
 
23
#define G_LOG_DOMAIN "usagetracker"
 
24
 
23
25
#ifdef HAVE_CONFIG_H
24
26
#include "config.h"
25
27
#endif
340
342
        g_return_if_fail(IS_USAGE_TRACKER(self));
341
343
        g_return_if_fail(self->priv->db != NULL);
342
344
 
 
345
        g_debug ("Marking %s %s", application, entry);
 
346
 
343
347
        check_app_init(self, application);
344
348
 
345
349
        sqlite3_reset(self->priv->insert_entry);
404
408
                g_warning("Unknown status from executing entry_count: %d", exec_status);
405
409
        }
406
410
 
 
411
        g_debug ("Usage of %s %s is %u", application, entry, count);
 
412
 
407
413
        return count;
408
414
}
409
415