~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-image-properties.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-10 01:16:00 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080810011600-bfb87m1rs6n0qx16
Tags: upstream-0.8.1
ImportĀ upstreamĀ versionĀ 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * brasero
4
4
 * Copyright (C) Philippe Rouquier 2007-2008 <bonfire-app@wanadoo.fr>
5
5
 * 
6
 
 * brasero is free software.
7
 
 * 
8
 
 * You may redistribute it and/or modify it under the terms of the
9
 
 * GNU General Public License, as published by the Free Software
10
 
 * Foundation; either version 2 of the License, or (at your option)
11
 
 * any later version.
 
6
 *  Brasero is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
12
10
 * 
13
11
 * brasero is distributed in the hope that it will be useful,
14
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
100
98
                return TRUE;
101
99
 
102
100
        chooser_path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self));
 
101
        if (!chooser_path && priv->original_path)
 
102
                return TRUE;
 
103
 
 
104
        if (!priv->original_path && chooser_path)
 
105
                return TRUE;
 
106
 
103
107
        if (!strcmp (chooser_path, priv->original_path))
104
108
                return FALSE;
105
109
 
129
133
 
130
134
                        /* check if the path was edited since the last time it was set */
131
135
                        chooser_path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self));
132
 
                        priv->edited = strcmp (priv->original_path, chooser_path) != 0;
 
136
                        priv->edited =  (!chooser_path && priv->original_path) ||
 
137
                                        (!priv->original_path && chooser_path) ||
 
138
                                         strcmp (priv->original_path, chooser_path) != 0;
 
139
 
 
140
                        if (chooser_path)
 
141
                                g_free (chooser_path);
133
142
                }
134
143
                g_free (priv->original_path);
135
144
        }