~ubuntu-branches/ubuntu/quantal/thunar/quantal-proposed

« back to all changes in this revision

Viewing changes to thunar/thunar-list-model.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2011-01-30 20:05:10 UTC
  • mto: (2.1.3 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 73.
  • Revision ID: james.westby@ubuntu.com-20110130200510-dk1j0ege02i7zgbe
Tags: upstream-1.2.1
ImportĀ upstreamĀ versionĀ 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* $Id$ */
2
2
/*-
3
3
 * Copyright (c) 2004-2007 Benedikt Meurer <benny@xfce.org>
4
 
 * Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
 
4
 * Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>
5
5
 *
6
6
 * This program is free software; you can redistribute it and/or modify it
7
7
 * under the terms of the GNU General Public License as published by the Free
1643
1643
      description_b = g_content_type_get_description (content_type_b);
1644
1644
    }
1645
1645
 
 
1646
  /* avoid calling strcasecmp with NULL parameters */
 
1647
  if (description_a == NULL || description_b == NULL)
 
1648
    {
 
1649
      g_free (description_a);
 
1650
      g_free (description_b);
 
1651
 
 
1652
      return 0;
 
1653
    }
 
1654
 
1646
1655
  if (!case_sensitive)
1647
1656
    result = strcasecmp (description_a, description_b);
1648
1657
  else