File: | cdk/x11/cdkdisplaymanager-x11.c |
Warning: | line 52, column 3 This statement is never executed |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* CDK - The GIMP Drawing Kit |
2 | * cdkdisplaymanager-x11.c |
3 | * |
4 | * Copyright 2010 Red Hat, Inc. |
5 | * |
6 | * Author: Matthias clasen |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Library General Public |
10 | * License as published by the Free Software Foundation; either |
11 | * version 2 of the License, or (at your option) any later version. |
12 | * |
13 | * This library is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Library General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Library General Public |
19 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | #include "config.h" |
23 | |
24 | #include "cdkx11displaymanager.h" |
25 | #include "cdkdisplaymanagerprivate.h" |
26 | #include "cdkdisplay-x11.h" |
27 | #include "cdkprivate-x11.h" |
28 | |
29 | #include "cdkinternals.h" |
30 | |
31 | struct _CdkX11DisplayManager |
32 | { |
33 | CdkDisplayManager parent; |
34 | }; |
35 | |
36 | struct _CdkX11DisplayManagerClass |
37 | { |
38 | CdkDisplayManagerClass parent_class; |
39 | }; |
40 | |
41 | G_DEFINE_TYPE (CdkX11DisplayManager, cdk_x11_display_manager, CDK_TYPE_DISPLAY_MANAGER)static void cdk_x11_display_manager_init (CdkX11DisplayManager *self); static void cdk_x11_display_manager_class_init (CdkX11DisplayManagerClass *klass); static GType cdk_x11_display_manager_get_type_once ( void); static gpointer cdk_x11_display_manager_parent_class = ((void*)0); static gint CdkX11DisplayManager_private_offset; static void cdk_x11_display_manager_class_intern_init (gpointer klass) { cdk_x11_display_manager_parent_class = g_type_class_peek_parent (klass); if (CdkX11DisplayManager_private_offset != 0) g_type_class_adjust_private_offset (klass, &CdkX11DisplayManager_private_offset); cdk_x11_display_manager_class_init ((CdkX11DisplayManagerClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer cdk_x11_display_manager_get_instance_private (CdkX11DisplayManager *self) { return (((gpointer) ((guint8* ) (self) + (glong) (CdkX11DisplayManager_private_offset)))); } GType cdk_x11_display_manager_get_type (void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer) , "Expression evaluates to false"); (void) (0 ? (gpointer) * ( &static_g_define_type_id) : ((void*)0)); (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = cdk_x11_display_manager_get_type_once (); (__extension__ ( { _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void) (*( &static_g_define_type_id) = (g_define_type_id)) : (void) 0 ; g_once_init_leave_pointer ((&static_g_define_type_id), ( gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType cdk_x11_display_manager_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((cdk_display_manager_get_type ()), g_intern_static_string ( "CdkX11DisplayManager"), sizeof (CdkX11DisplayManagerClass), ( GClassInitFunc)(void (*)(void)) cdk_x11_display_manager_class_intern_init , sizeof (CdkX11DisplayManager), (GInstanceInitFunc)(void (*) (void)) cdk_x11_display_manager_init, (GTypeFlags) 0); { {{}; } } return g_define_type_id; } |
42 | |
43 | static void |
44 | cdk_x11_display_manager_init (CdkX11DisplayManager *manager G_GNUC_UNUSED__attribute__ ((__unused__))) |
45 | { |
46 | } |
47 | |
48 | static void |
49 | cdk_x11_display_manager_finalize (GObject *object) |
50 | { |
51 | g_error ("A CdkX11DisplayManager object was finalized. This should not happen"); |
52 | G_OBJECT_CLASS (cdk_x11_display_manager_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((cdk_x11_display_manager_parent_class)), (((GType) ((20) << (2))))))))->finalize (object); |
This statement is never executed | |
53 | } |
54 | |
55 | static void |
56 | cdk_x11_display_manager_class_init (CdkX11DisplayManagerClass *class) |
57 | { |
58 | GObjectClass *object_class = G_OBJECT_CLASS (class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((class)), (((GType) ((20) << (2)))))))); |
59 | |
60 | object_class->finalize = cdk_x11_display_manager_finalize; |
61 | } |