Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-file-monitor.h File Reference
#include <glib-object.h>
+ Include dependency graph for ev-file-monitor.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvFileMonitor
 
struct  _EvFileMonitorClass
 

Macros

#define EV_TYPE_FILE_MONITOR   (ev_file_monitor_get_type())
 
#define EV_FILE_MONITOR(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FILE_MONITOR, EvFileMonitor))
 
#define EV_FILE_MONITOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FILE_MONITOR, EvFileMonitorClass))
 
#define EV_IS_FILE_MONITOR(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FILE_MONITOR))
 
#define EV_IS_FILE_MONITOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FILE_MONITOR))
 
#define EV_FILE_MONITOR_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FILE_MONITOR, EvFileMonitorClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvFileMonitor 
EvFileMonitor
 
typedef struct _EvFileMonitorClass EvFileMonitorClass
 
typedef struct
_EvFileMonitorPrivate 
EvFileMonitorPrivate
 

Functions

GType ev_file_monitor_get_type (void) G_GNUC_CONST
 
EvFileMonitorev_file_monitor_new (const gchar *uri)
 

Macro Definition Documentation

#define EV_FILE_MONITOR (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FILE_MONITOR, EvFileMonitor))

Definition at line 33 of file ev-file-monitor.h.

#define EV_FILE_MONITOR_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FILE_MONITOR, EvFileMonitorClass))

Definition at line 34 of file ev-file-monitor.h.

#define EV_FILE_MONITOR_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FILE_MONITOR, EvFileMonitorClass))

Definition at line 37 of file ev-file-monitor.h.

#define EV_IS_FILE_MONITOR (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FILE_MONITOR))

Definition at line 35 of file ev-file-monitor.h.

#define EV_IS_FILE_MONITOR_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FILE_MONITOR))

Definition at line 36 of file ev-file-monitor.h.

#define EV_TYPE_FILE_MONITOR   (ev_file_monitor_get_type())

Definition at line 32 of file ev-file-monitor.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvFileMonitor EvFileMonitor

Definition at line 28 of file ev-file-monitor.h.

Definition at line 29 of file ev-file-monitor.h.

Definition at line 30 of file ev-file-monitor.h.

Function Documentation

GType ev_file_monitor_get_type ( void  )
EvFileMonitor* ev_file_monitor_new ( const gchar *  uri)

Definition at line 147 of file ev-file-monitor.c.

148 {
149  EvFileMonitor *ev_monitor;
150  GFile *file;
151  GError *error = NULL;
152 
153  ev_monitor = EV_FILE_MONITOR (g_object_new (EV_TYPE_FILE_MONITOR, NULL));
154 
155  file = g_file_new_for_uri (uri);
156  ev_monitor->priv->monitor = g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, &error);
157  if (ev_monitor->priv->monitor) {
158  g_signal_connect (ev_monitor->priv->monitor, "changed",
159  G_CALLBACK (ev_file_monitor_changed_cb), ev_monitor);
160  } else if (error) {
161  g_warning ("%s", error->message);
162  g_error_free (error);
163  }
164 
165  g_object_unref (file);
166 
167  return ev_monitor;
168 }

+ Here is the caller graph for this function: