Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gdm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
411
Issues
411
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gdm
Commits
daafe5c5
Commit
daafe5c5
authored
Dec 23, 2018
by
Niels De Graef
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display: use G_DECLARE_DERIVABLE_TYPE
parent
107d81e8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
355 additions
and
230 deletions
+355
-230
gdm-display.c
daemon/gdm-display.c
+351
-213
gdm-display.h
daemon/gdm-display.h
+4
-17
No files found.
daemon/gdm-display.c
View file @
daafe5c5
This diff is collapsed.
Click to expand it.
daemon/gdm-display.h
View file @
daafe5c5
...
...
@@ -27,14 +27,8 @@
G_BEGIN_DECLS
#define GDM_TYPE_DISPLAY (gdm_display_get_type ())
#define GDM_DISPLAY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_DISPLAY, GdmDisplay))
#define GDM_DISPLAY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_DISPLAY, GdmDisplayClass))
#define GDM_IS_DISPLAY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_DISPLAY))
#define GDM_IS_DISPLAY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_DISPLAY))
#define GDM_DISPLAY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_DISPLAY, GdmDisplayClass))
typedef
struct
GdmDisplayPrivate
GdmDisplayPrivate
;
#define GDM_TYPE_DISPLAY (gdm_display_get_type ())
G_DECLARE_DERIVABLE_TYPE
(
GdmDisplay
,
gdm_display
,
GDM
,
DISPLAY
,
GObject
)
typedef
enum
{
GDM_DISPLAY_UNMANAGED
=
0
,
...
...
@@ -45,20 +39,14 @@ typedef enum {
GDM_DISPLAY_FAILED
,
}
GdmDisplayStatus
;
typedef
struct
{
GObject
parent
;
GdmDisplayPrivate
*
priv
;
}
GdmDisplay
;
typedef
struct
struct
_GdmDisplayClass
{
GObjectClass
parent_class
;
/* methods */
gboolean
(
*
prepare
)
(
GdmDisplay
*
display
);
void
(
*
manage
)
(
GdmDisplay
*
self
);
}
GdmDisplayClass
;
};
typedef
enum
{
...
...
@@ -70,7 +58,6 @@ typedef enum
#define GDM_DISPLAY_ERROR gdm_display_error_quark ()
GQuark
gdm_display_error_quark
(
void
);
GType
gdm_display_get_type
(
void
);
int
gdm_display_get_status
(
GdmDisplay
*
display
);
time_t
gdm_display_get_creation_time
(
GdmDisplay
*
display
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment