~ubuntu-branches/debian/squeeze/tasks/squeeze

« back to all changes in this revision

Viewing changes to libkoto/koto-category-group.c

  • Committer: Bazaar Package Importer
  • Author(s): Ross Burton, Ross Burton, Loïc Minier, Emilio Pozuelo Monfort
  • Date: 2009-08-10 10:08:52 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810100852-6gp4pydhwflg4vnb
Tags: 0.16-1
[ Ross Burton ]
* New upstream release (Closes: #539510)
* Fix debug package section and depends
* Bump Standards

[ Loïc Minier ]
* Set LDFLAGS directly; bump cdbs bdep to >= 0.4.41.
* Create tasks.pot during build: Add a common-build-arch:: snippet to call
  langpack.mk's langpack-mk-update-pot target with
  DEB_BUILDDIR=$(DEB_SRCDIR); intltool-update can't be called in builddir as
  it needs POTFILES.in and even with it wont lookup files listed there in
  srcdir; add a clean:: snippet to remove the pot file; LP: #188690.

[ Emilio Pozuelo Monfort ]
* Wrap build-deps and deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
get_name (KotoGroup *group)
35
35
{
36
36
  g_return_val_if_fail (KOTO_IS_CATEGORY_GROUP (group), NULL);
37
 
  
 
37
 
38
38
  return GET_PRIVATE (group)->name;
39
39
}
40
40
 
55
55
  g_return_val_if_fail (task, FALSE);
56
56
 
57
57
  priv = GET_PRIVATE (group);
58
 
  
 
58
 
59
59
  /* Handle no categories */
60
60
  if (task->categories == NULL)
61
61
    return FALSE;
62
 
  
 
62
 
63
63
  for (l = task->categories; *l ; l++) {
64
64
    /* TODO: strmp? or funky decomposition compare? */
65
65
    if (strcmp (priv->name, *l) == 0) {
67
67
      break;
68
68
    }
69
69
  }
70
 
  
 
70
 
71
71
  return visible;
72
72
}
73
73
 
77
77
  KotoGroupClass *group_class = KOTO_GROUP_CLASS (klass);
78
78
 
79
79
  g_type_class_add_private (klass, sizeof (KotoCategoryGroupPrivate));
80
 
  
 
80
 
81
81
  group_class->get_name = get_name;
82
82
  group_class->get_weight = get_weight;
83
83
  group_class->includes_task = includes_task;