~charlesk/indicator-datetime/fix-833337

« back to all changes in this revision

Viewing changes to src/datetime-service.c

  • Committer: Charles Kerr
  • Date: 2012-03-02 20:13:18 UTC
  • Revision ID: charles.kerr@canonical.com-20120302201318-0nf4c4z1xizrg6fw
use g_return_if_fail() instead of g_assert() in the new code

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        if (get_greeter_mode ())
170
170
                return;
171
171
 
172
 
        g_assert (locations_separator != NULL);
173
 
        g_assert (geo_location != NULL);
174
 
        g_assert (current_location != NULL);
 
172
        g_return_if_fail (locations_separator != NULL);
 
173
        g_return_if_fail (geo_location != NULL);
 
174
        g_return_if_fail (current_location != NULL);
175
175
 
176
176
        GSList * visible_locations = NULL;
177
177
        gchar ** locations = g_settings_get_strv(conf, SETTINGS_LOCATIONS_S);