1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
* xfdesktop - xfce4's desktop manager
*
* Copyright (c) 2004 Brian Tarricone, <bjt23@cornell.edu>
* Copyright (c) 2010 Jannis Pohlmann, <jannis@xfce.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* Random portions taken from or inspired by the original xfdesktop for xfce4:
* Copyright (C) 2002-2003 Jasper Huijsmans (huysmans@users.sourceforge.net)
* Copyright (C) 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
*/
#ifndef _XFDESKTOP_COMMON_H_
#define _XFDESKTOP_COMMON_H_
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <X11/Xlib.h>
#define XFDESKTOP_CHANNEL "xfce4-desktop"
#define DEFAULT_BACKDROP DATADIR "/backgrounds/xfce/xfce-blue.jpg"
#define DEFAULT_ICON_FONT_SIZE 12
#define DEFAULT_ICON_SIZE 32
#define ITHEME_FLAGS (GTK_ICON_LOOKUP_USE_BUILTIN \
| GTK_ICON_LOOKUP_GENERIC_FALLBACK)
#define LIST_TEXT "# xfce backdrop list"
#define XFDESKTOP_SELECTION_FMT "XFDESKTOP_SELECTION_%d"
#define XFDESKTOP_IMAGE_FILE_FMT "XFDESKTOP_IMAGE_FILE_%d"
#define XFDESKTOP_RC_VERSION_STAMP "xfdesktop-version-4.10.3+-rcfile_format"
#define RELOAD_MESSAGE "reload"
#define MENU_MESSAGE "menu"
#define WINDOWLIST_MESSAGE "windowlist"
#define ARRANGE_MESSAGE "arrange"
#define QUIT_MESSAGE "quit"
#define SINGLE_WORKSPACE_MODE "/backdrop/single-workspace-mode"
#define SINGLE_WORKSPACE_NUMBER "/backdrop/single-workspace-number"
/**
* File information namespaces queried for #GFileInfo objects.
*/
#define XFDESKTOP_FILE_INFO_NAMESPACE \
"access::*," \
"id::*," \
"mountable::*," \
"preview::*," \
"standard::*," \
"time::*," \
"thumbnail::*," \
"trash::*," \
"unix::*," \
"metadata::*"
/**
* Filesystem information namespaces queried for #GFileInfo * objects.
*/
#define XFDESKTOP_FILESYSTEM_INFO_NAMESPACE \
"filesystem::*"
G_BEGIN_DECLS
gchar *xfdesktop_backdrop_choose_next(const gchar *filename);
gchar *xfdesktop_backdrop_choose_random(const gchar *filename);
gboolean xfdesktop_image_file_is_valid(const gchar *filename);
gchar *xfdesktop_get_file_mimetype(const gchar *file);
gboolean xfdesktop_check_is_running(Window *xid);
void xfdesktop_send_client_message(Window xid, const gchar *msg);
guint xfce_grab_cursor(GtkWidget *w, GdkEventButton *evt);
gboolean xfdesktop_popup_grab_available(GdkWindow *win, guint32 timestamp);
G_END_DECLS
#endif
|