gdkapplaunchcontext.h 2.92 KB
Newer Older
1
/* gdkapplaunchcontext.h - Gtk+ implementation for GAppLaunchContext
2 3 4 5 6 7 8 9 10 11 12 13 14 15
 *
 * Copyright (C) 2007 Red Hat, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
Javier Jardon's avatar
Javier Jardon committed
16
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 18 19
 *
 * Author: Alexander Larsson <alexl@redhat.com>
 */
20

21 22 23
#ifndef __GDK_APP_LAUNCH_CONTEXT_H__
#define __GDK_APP_LAUNCH_CONTEXT_H__

24
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
25 26 27
#error "Only <gdk/gdk.h> can be included directly."
#endif

28
#include <gio/gio.h>
29
#include <gdk/gdkversionmacros.h>
30
#include <gdk/gdktypes.h>
31
#include <gdk/gdkscreen.h>
32 33 34 35 36

G_BEGIN_DECLS

#define GDK_TYPE_APP_LAUNCH_CONTEXT         (gdk_app_launch_context_get_type ())
#define GDK_APP_LAUNCH_CONTEXT(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContext))
37
        #define GDK_IS_APP_LAUNCH_CONTEXT(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_APP_LAUNCH_CONTEXT))
38 39


40
GDK_AVAILABLE_IN_ALL
41
GType                gdk_app_launch_context_get_type      (void);
42

43
GDK_DEPRECATED_IN_3_0_FOR(gdk_display_get_app_launch_context)
44
GdkAppLaunchContext *gdk_app_launch_context_new           (void);
45
GDK_DEPRECATED_IN_3_0_FOR(gdk_display_get_app_launch_context)
46
void                 gdk_app_launch_context_set_display   (GdkAppLaunchContext *context,
47
                                                           GdkDisplay          *display);
48
GDK_AVAILABLE_IN_ALL
49
void                 gdk_app_launch_context_set_screen    (GdkAppLaunchContext *context,
50
                                                           GdkScreen           *screen);
51
GDK_AVAILABLE_IN_ALL
52
void                 gdk_app_launch_context_set_desktop   (GdkAppLaunchContext *context,
53
                                                           gint                 desktop);
54
GDK_AVAILABLE_IN_ALL
55
void                 gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
56
                                                           guint32              timestamp);
57
GDK_AVAILABLE_IN_ALL
58
void                 gdk_app_launch_context_set_icon      (GdkAppLaunchContext *context,
59
                                                           GIcon               *icon);
60
GDK_AVAILABLE_IN_ALL
61
void                 gdk_app_launch_context_set_icon_name (GdkAppLaunchContext *context,
62
                                                           const char          *icon_name);
63 64 65 66

G_END_DECLS

#endif /* __GDK_APP_LAUNCH_CONTEXT_H__ */