-
Notifications
You must be signed in to change notification settings - Fork 0
/
appwindow.h
71 lines (56 loc) · 2.18 KB
/
appwindow.h
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
/*-
* Copyright(c) 2005-2006 Benedikt Meurer <[email protected]>
*
* 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 __APPWINDOW_H__
#define __APPWINDOW_H__
#include <launcher.h>
#include <th_file.h>
#include <libxfce4ui/libxfce4ui.h>
G_BEGIN_DECLS
typedef enum
{
WINDOW_ACTION_BACK,
WINDOW_ACTION_KEY_BACK,
WINDOW_ACTION_FORWARD,
WINDOW_ACTION_OPEN_PARENT,
WINDOW_ACTION_OPEN_HOME,
WINDOW_ACTION_KEY_RELOAD,
WINDOW_ACTION_KEY_RENAME,
WINDOW_ACTION_KEY_TRASH,
WINDOW_ACTION_KEY_SHOW_HIDDEN,
WINDOW_ACTION_DEBUG,
} WindowAction;
// AppWindow ------------------------------------------------------------------
typedef struct _AppWindowClass AppWindowClass;
typedef struct _AppWindow AppWindow;
#define TYPE_APPWINDOW (window_get_type())
#define APPWINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), TYPE_APPWINDOW, AppWindow))
#define APPWINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), TYPE_APPWINDOW, AppWindowClass))
#define IS_APPWINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj), TYPE_APPWINDOW))
#define IS_APPWINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass), TYPE_APPWINDOW))
#define APPWINDOW_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS((obj), TYPE_APPWINDOW, AppWindowClass))
GType window_get_type() G_GNUC_CONST;
ThunarLauncher* window_get_launcher(AppWindow *window);
void window_set_current_directory(AppWindow *window, ThunarFile *current_directory);
void window_redirect_tooltips(AppWindow *window, GtkMenu *menu);
G_END_DECLS
#endif // __APPWINDOW_H__