static void
gdk_app_launch_context_class_init (GdkAppLaunchContextClass *klass)
{
    GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
    GAppLaunchContextClass *context_class = G_APP_LAUNCH_CONTEXT_CLASS (klass);

    gobject_class->finalize = gdk_app_launch_context_finalize;

    context_class->get_display = gdk_app_launch_context_get_display;
    context_class->get_startup_notify_id = _gdk_windowing_get_startup_notify_id;
    context_class->launch_failed = _gdk_windowing_launch_failed;

    g_type_class_add_private (klass, sizeof (GdkAppLaunchContextPrivate));
}
예제 #2
0
static void
gdk_app_launch_context_class_init (GdkAppLaunchContextClass *klass)
{
  GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
  GAppLaunchContextClass *context_class = G_APP_LAUNCH_CONTEXT_CLASS (klass);

  gobject_class->set_property = gdk_app_launch_context_set_property,
  gobject_class->get_property = gdk_app_launch_context_get_property;

  gobject_class->finalize = gdk_app_launch_context_finalize;

  context_class->get_display = gdk_app_launch_context_get_display;
  context_class->get_startup_notify_id = gdk_app_launch_context_get_startup_notify_id;
  context_class->launch_failed = gdk_app_launch_context_launch_failed;

  g_object_class_install_property (gobject_class, PROP_DISPLAY,
    g_param_spec_object ("display", P_("Display"), P_("Display"),
                         GDK_TYPE_DISPLAY,
                         G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}