1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-clipboard-monitor.h: lets you notice clipboard changes.
5 Copyright (C) 2004 Red Hat, Inc.
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public
18 License along with this program; if not, write to the
19 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Author: Alexander Larsson <alexl@redhat.com>
25 #ifndef NAUTILUS_CLIPBOARD_MONITOR_H
26 #define NAUTILUS_CLIPBOARD_MONITOR_H
28 #include <gtk/gtkobject.h>
30 #define NAUTILUS_TYPE_CLIPBOARD_MONITOR \
31 (nautilus_clipboard_monitor_get_type ())
32 #define NAUTILUS_CLIPBOARD_MONITOR(obj) \
33 (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_CLIPBOARD_MONITOR, NautilusClipboardMonitor))
34 #define NAUTILUS_CLIPBOARD_MONITOR_CLASS(klass) \
35 (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_CLIPBOARD_MONITOR, NautilusClipboardMonitor))
36 #define NAUTILUS_IS_CLIPBOARD_MONITOR(obj) \
37 (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_CLIPBOARD_MONITOR))
38 #define NAUTILUS_IS_CLIPBOARD_MONITOR_CLASS(klass) \
39 (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_CLIPBOARD_MONITOR))
41 typedef struct NautilusClipboardMonitorDetails NautilusClipboardMonitorDetails
;
45 } NautilusClipboardMonitor
;
48 GObjectClass parent_slot
;
50 void (* clipboard_changed
) (NautilusClipboardMonitor
*monitor
);
51 } NautilusClipboardMonitorClass
;
53 GType
nautilus_clipboard_monitor_get_type (void);
55 NautilusClipboardMonitor
* nautilus_clipboard_monitor_get (void);
56 void nautilus_clipboard_monitor_emit_changed (void);
58 #endif /* NAUTILUS_CLIPBOARD_MONITOR_H */