You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
3.1 KiB

  1. /* gdkapplaunchcontext.h - Gtk+ implementation for GAppLaunchContext
  2. *
  3. * Copyright (C) 2007 Red Hat, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This 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. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the
  17. * 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. #if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
  23. #error "Only <gdk/gdk.h> can be included directly."
  24. #endif
  25. #ifndef __GDK_APP_LAUNCH_CONTEXT_H__
  26. #define __GDK_APP_LAUNCH_CONTEXT_H__
  27. #include <gio/gio.h>
  28. #include <gdk/gdkscreen.h>
  29. G_BEGIN_DECLS
  30. #define GDK_TYPE_APP_LAUNCH_CONTEXT (gdk_app_launch_context_get_type ())
  31. #define GDK_APP_LAUNCH_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContext))
  32. #define GDK_APP_LAUNCH_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContextClass))
  33. #define GDK_IS_APP_LAUNCH_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_APP_LAUNCH_CONTEXT))
  34. #define GDK_IS_APP_LAUNCH_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDK_TYPE_APP_LAUNCH_CONTEXT))
  35. #define GDK_APP_LAUNCH_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_APP_LAUNCH_CONTEXT, GdkAppLaunchContextClass))
  36. typedef struct GdkAppLaunchContext GdkAppLaunchContext;
  37. typedef struct GdkAppLaunchContextClass GdkAppLaunchContextClass;
  38. typedef struct GdkAppLaunchContextPrivate GdkAppLaunchContextPrivate;
  39. struct GdkAppLaunchContext
  40. {
  41. GAppLaunchContext parent_instance;
  42. GdkAppLaunchContextPrivate *priv;
  43. };
  44. struct GdkAppLaunchContextClass
  45. {
  46. GAppLaunchContextClass parent_class;
  47. };
  48. GType gdk_app_launch_context_get_type (void);
  49. GdkAppLaunchContext *gdk_app_launch_context_new (void);
  50. void gdk_app_launch_context_set_display (GdkAppLaunchContext *context,
  51. GdkDisplay *display);
  52. void gdk_app_launch_context_set_screen (GdkAppLaunchContext *context,
  53. GdkScreen *screen);
  54. void gdk_app_launch_context_set_desktop (GdkAppLaunchContext *context,
  55. gint desktop);
  56. void gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
  57. guint32 timestamp);
  58. void gdk_app_launch_context_set_icon (GdkAppLaunchContext *context,
  59. GIcon *icon);
  60. void gdk_app_launch_context_set_icon_name (GdkAppLaunchContext *context,
  61. const char *icon_name);
  62. G_END_DECLS
  63. #endif /* __GDK_APP_LAUNCH_CONTEXT_H__ */