3
* Copyright (C) 2002 Jasper Huijsmans (huysmans@users.sourceforge.net)
4
* startup notification added by Olivier fourdan based on gnome-desktop
5
* developed by Elliot Lee <sopwith@redhat.com> and Sid Vicious
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (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
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
#ifndef __XFCE_SUPPORT_H__
23
#define __XFCE_SUPPORT_H__
25
/* files and directories */
26
char *get_save_dir (void);
27
char *get_save_file (const char *name);
28
char **get_read_dirs (void);
29
char *get_read_file (const char *name);
30
char **get_plugin_dirs (void);
31
char **get_theme_dirs (void);
32
void write_backup_file (const char *path);
35
void add_tooltip (GtkWidget * widget, const char *tip);
37
/* x atoms and properties */
38
void set_window_type_dock (GtkWidget * win, gboolean set);
39
void set_window_layer (GtkWidget * win, int layer);
40
gboolean check_net_wm_support (void);
41
void set_window_skip (GtkWidget * win);
44
void dnd_set_drag_dest (GtkWidget * widget);
46
typedef void (*DropCallback) (GtkWidget * widget, GList * drop_data,
49
#define DROP_CALLBACK(f) (DropCallback)f
51
void dnd_set_callback (GtkWidget * widget, DropCallback function,
54
void gnome_uri_list_free_strings (GList * list);
55
GList *gnome_uri_list_extract_uris (const gchar * uri_list);
56
GList *gnome_uri_list_extract_filenames (const gchar * uri_list);
58
/* file open dialog */
59
char *select_file_name (const char *title, const char *path,
61
char *select_file_with_preview (const char *title, const char *path,
64
#ifdef HAVE_LIBSTARTUP_NOTIFICATION
65
void free_startup_timeout (void);
68
/* executing programs */
69
void exec_cmd (const char *cmd, gboolean in_terminal, gboolean use_sn);
70
void exec_cmd_silent (const char *cmd, gboolean in_terminal, gboolean use_sn);
72
#endif /* __XFCE_SUPPORT_H__ */