Lines Matching +refs:display +refs:object
54 static void gdk_app_launch_context_finalize (GObject *object);
74 gdk_app_launch_context_get_property (GObject *object, in G_DEFINE_TYPE()
79 GdkAppLaunchContext *context = GDK_APP_LAUNCH_CONTEXT (object); in G_DEFINE_TYPE()
84 g_value_set_object (value, context->display); in G_DEFINE_TYPE()
87 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); in G_DEFINE_TYPE()
92 gdk_app_launch_context_set_property (GObject *object, in gdk_app_launch_context_set_property() argument
97 GdkAppLaunchContext *context = GDK_APP_LAUNCH_CONTEXT (object); in gdk_app_launch_context_set_property()
102 context->display = g_value_dup_object (value); in gdk_app_launch_context_set_property()
105 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); in gdk_app_launch_context_set_property()
142 gdk_app_launch_context_finalize (GObject *object) in gdk_app_launch_context_finalize() argument
144 GdkAppLaunchContext *context = GDK_APP_LAUNCH_CONTEXT (object); in gdk_app_launch_context_finalize()
146 if (context->display) in gdk_app_launch_context_finalize()
147 g_object_unref (context->display); in gdk_app_launch_context_finalize()
154 G_OBJECT_CLASS (gdk_app_launch_context_parent_class)->finalize (object); in gdk_app_launch_context_finalize()
163 GdkDisplay *display; in gdk_app_launch_context_get_display_name() local
165 if (ctx->display) in gdk_app_launch_context_get_display_name()
166 display = ctx->display; in gdk_app_launch_context_get_display_name()
168 display = gdk_display_get_default (); in gdk_app_launch_context_get_display_name()
170 return g_strdup (gdk_display_get_name (display)); in gdk_app_launch_context_get_display_name()
186 return context->display; in gdk_app_launch_context_get_display()