]> Pileus Git - ~andy/gtk/blob - gdk/gdkapplaunchcontext.h
define __GDK_H_INSIDE__ around including all other headers.
[~andy/gtk] / gdk / gdkapplaunchcontext.h
1 /* gdkapplaunchcontext.h - Gtk+ implementation for GAppLaunchContext
2
3    Copyright (C) 2007 Red Hat, Inc.
4
5    The Gnome Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Library General Public License as
7    published by the Free Software Foundation; either version 2 of the
8    License, or (at your option) any later version.
9
10    The Gnome Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14
15    You should have received a copy of the GNU Library General Public
16    License along with the Gnome Library; see the file COPYING.LIB.  If not,
17    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18    Boston, MA 02111-1307, USA.
19
20    Author: Alexander Larsson <alexl@redhat.com>
21 */
22
23 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
24 #error "Only <gdk/gdk.h> can be included directly."
25 #endif
26
27 #ifndef __GDK_APP_LAUNCH_CONTEXT_H__
28 #define __GDK_APP_LAUNCH_CONTEXT_H__
29
30 #include <glib.h>
31 #include <gio/gio.h>
32 #include <gdk/gdkdisplay.h>
33
34 G_BEGIN_DECLS
35
36 #define GDK_TYPE_APP_LAUNCH_CONTEXT         (gdk_app_launch_context_get_type ())
37 #define GDK_APP_LAUNCH_CONTEXT(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContext))
38 #define GDK_APP_LAUNCH_CONTEXT_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContextClass))
39 #define GDK_IS_APP_LAUNCH_CONTEXT(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDGDK_TYPE_APP_LAUNCH_CONTEXT))
40 #define GDK_IS_APP_LAUNCH_CONTEXT_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GDK_TYPE_APP_LAUNCH_CONTEXT))
41 #define GDK_APP_LAUNCH_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContextClass))
42
43 typedef struct GdkAppLaunchContext            GdkAppLaunchContext;
44 typedef struct GdkAppLaunchContextClass       GdkAppLaunchContextClass;
45 typedef struct GdkAppLaunchContextPrivate     GdkAppLaunchContextPrivate;
46
47 struct GdkAppLaunchContext
48 {
49         GAppLaunchContext parent_instance;
50         
51         GdkAppLaunchContextPrivate *priv;
52 };
53
54 struct GdkAppLaunchContextClass 
55 {
56         GAppLaunchContextClass parent_class;
57 };
58
59 GType gdk_app_launch_context_get_type (void);
60
61 GdkAppLaunchContext *gdk_app_launch_context_new           (void);
62 void                 gdk_app_launch_context_set_display   (GdkAppLaunchContext *context,
63                                                            GdkDisplay          *display);
64 void                 gdk_app_launch_context_set_screen    (GdkAppLaunchContext *context,
65                                                            GdkScreen           *screen);
66 void                 gdk_app_launch_context_set_desktop   (GdkAppLaunchContext *context,
67                                                            gint                 desktop);
68 void                 gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
69                                                            guint32              timestamp);
70 void                 gdk_app_launch_context_set_icon      (GdkAppLaunchContext *context,
71                                                            GIcon               *icon);
72 void                 gdk_app_launch_context_set_icon_name (GdkAppLaunchContext *context,
73                                                            const char          *icon_name);
74
75 G_END_DECLS
76
77 #endif /* __GDK_APP_LAUNCH_CONTEXT_H__ */
78
79