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
|
/* xfce_support.h
*
* Copyright (C) 2002 Jasper Huijsmans (huysmans@users.sourceforge.net)
* startup notification added by Olivier Fourdan based on gnome-desktop
* developed by Elliot Lee <sopwith@redhat.com> and Sid Vicious
*
* 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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __XFCE_SUPPORT_H__
#define __XFCE_SUPPORT_H__
/* files and directories */
char *get_save_dir (void);
char *get_save_file (const char *name);
char **get_read_dirs (void);
char *get_read_file (const char *name);
char **get_plugin_dirs (void);
char **get_theme_dirs (void);
void write_backup_file (const char *path);
/* tooltips */
void add_tooltip (GtkWidget * widget, const char *tip);
/* x atoms and properties */
void set_window_layer (GtkWidget * win, int layer);
gboolean check_net_wm_support (void);
void set_window_skip (GtkWidget * win);
/* dnd */
void dnd_set_drag_dest (GtkWidget * widget);
typedef void (*DropCallback) (GtkWidget * widget, GList * drop_data,
gpointer data);
#define DROP_CALLBACK(f) (DropCallback)f
void dnd_set_callback (GtkWidget * widget, DropCallback function,
gpointer data);
void gnome_uri_list_free_strings (GList * list);
GList *gnome_uri_list_extract_uris (const gchar * uri_list);
GList *gnome_uri_list_extract_filenames (const gchar * uri_list);
/* file open dialog */
char *select_file_name (const char *title, const char *path,
GtkWidget * parent);
char *select_file_with_preview (const char *title, const char *path,
GtkWidget * parent);
/* executing programs */
void exec_cmd (const char *cmd, gboolean in_terminal, gboolean use_sn);
void exec_cmd_silent (const char *cmd, gboolean in_terminal, gboolean use_sn);
#endif /* __XFCE_SUPPORT_H__ */
|