~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to gio/glocalfilemonitor.c

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: Alexander Larsson <alexl@redhat.com>
21
21
 */
22
22
 
23
 
#include <config.h>
 
23
#include "config.h"
24
24
 
25
25
#include "glocalfilemonitor.h"
26
26
#include "giomodule-priv.h"
 
27
#include "gioerror.h"
27
28
#include "glibintl.h"
28
29
 
29
30
#include <string.h>
106
107
      local_monitor->filename = NULL;
107
108
    }
108
109
 
109
 
  if (G_OBJECT_CLASS (g_local_file_monitor_parent_class)->finalize)
110
 
    (*G_OBJECT_CLASS (g_local_file_monitor_parent_class)->finalize) (object);
 
110
  G_OBJECT_CLASS (g_local_file_monitor_parent_class)->finalize (object);
111
111
}
112
112
 
113
113
static void g_local_file_monitor_class_init (GLocalFileMonitorClass *klass)
194
194
  if (type != G_TYPE_INVALID)
195
195
    monitor = G_FILE_MONITOR (g_object_new (type, "filename", pathname, NULL));
196
196
  else
197
 
    g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, _("Unable to find default local file monitor type"));
 
197
    g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
 
198
                         _("Unable to find default local file monitor type"));
198
199
 
199
200
  /* This is non-null on first pass here. Unref the class now.
200
201
   * This is to avoid unloading the module and then loading it