diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-06-07 19:41:12 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-06-07 19:41:12 +0200 |
commit | 1d6bec72e636899ff2d71e5a9dad6e06cc9908a6 (patch) | |
tree | a4f96ca6bb188bfc1885b7fbd844681ad7ab8f8e /lib/gtk-experiment-widgets/gtk-experiment-transcript.c | |
parent | 50c9ef3ffc739bdb6d0b437a495928ea57728550 (diff) | |
download | experiment-player-1d6bec72e636899ff2d71e5a9dad6e06cc9908a6.tar.gz |
cleaned up success/failure return value confusion
TRUE means successful, FALSE unsuccessful
Diffstat (limited to 'lib/gtk-experiment-widgets/gtk-experiment-transcript.c')
-rw-r--r-- | lib/gtk-experiment-widgets/gtk-experiment-transcript.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gtk-experiment-widgets/gtk-experiment-transcript.c b/lib/gtk-experiment-widgets/gtk-experiment-transcript.c index b014dec..05a627e 100644 --- a/lib/gtk-experiment-widgets/gtk-experiment-transcript.c +++ b/lib/gtk-experiment-widgets/gtk-experiment-transcript.c @@ -692,7 +692,7 @@ gtk_experiment_transcript_new(const gchar *speaker) * * @param trans Widget instance * @param exp \e ExperimentReader instance - * @return \c TRUE on error, else \c FALSE + * @return \c TRUE on success, else \c FALSE */ gboolean gtk_experiment_transcript_load(GtkExperimentTranscript *trans, @@ -704,7 +704,7 @@ gtk_experiment_transcript_load(GtkExperimentTranscript *trans, gtk_experiment_transcript_text_layer_redraw(trans); - return trans->priv->contribs == NULL; + return trans->priv->contribs != NULL; } /** @@ -718,13 +718,13 @@ gtk_experiment_transcript_load(GtkExperimentTranscript *trans, * * @param trans Widget instance * @param filename \e ExperimentReader instance - * @return \c TRUE on error, else \c FALSE + * @return \c TRUE on success, else \c FALSE */ gboolean gtk_experiment_transcript_load_filename(GtkExperimentTranscript *trans, const gchar *filename) { - gboolean res = TRUE; + gboolean res = FALSE; ExperimentReader *exp = experiment_reader_new(filename); if (exp != NULL) { |