Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
libwnck
Commits
78d51b3a
Commit
78d51b3a
authored
Aug 20, 2019
by
Alberts Muktupāvels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
class-group: add WnckScreen to private struct
parent
fcb5eefb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
libwnck/class-group.c
libwnck/class-group.c
+6
-1
libwnck/private.h
libwnck/private.h
+2
-1
libwnck/screen.c
libwnck/screen.c
+1
-1
No files found.
libwnck/class-group.c
View file @
78d51b3a
...
...
@@ -50,6 +50,8 @@
/* Private part of the WnckClassGroup structure */
struct
_WnckClassGroupPrivate
{
WnckScreen
*
screen
;
char
*
res_class
;
char
*
name
;
GList
*
windows
;
...
...
@@ -220,6 +222,7 @@ wnck_class_group_get (const char *id)
/**
* _wnck_class_group_create:
* @screen: a #WnckScreen.
* @res_class: name of the resource class for the group.
*
* Creates a new WnckClassGroup with the specified resource class name. If
...
...
@@ -230,7 +233,8 @@ wnck_class_group_get (const char *id)
* matches the @res_class.
**/
WnckClassGroup
*
_wnck_class_group_create
(
const
char
*
res_class
)
_wnck_class_group_create
(
WnckScreen
*
screen
,
const
char
*
res_class
)
{
WnckClassGroup
*
class_group
;
...
...
@@ -242,6 +246,7 @@ _wnck_class_group_create (const char *res_class)
NULL
);
class_group
=
g_object_new
(
WNCK_TYPE_CLASS_GROUP
,
NULL
);
class_group
->
priv
->
screen
=
screen
;
class_group
->
priv
->
res_class
=
g_strdup
(
res_class
?
res_class
:
""
);
...
...
libwnck/private.h
View file @
78d51b3a
...
...
@@ -95,8 +95,9 @@ void _wnck_application_destroy (WnckApplication *app);
void
_wnck_application_load_icons
(
WnckApplication
*
app
);
void
_wnck_application_shutdown_all
(
void
);
WnckClassGroup
*
_wnck_class_group_create
(
WnckScreen
*
screen
,
const
char
*
res_class
);
WnckClassGroup
*
_wnck_class_group_create
(
const
char
*
res_class
);
void
_wnck_class_group_destroy
(
WnckClassGroup
*
class_group
);
void
_wnck_class_group_add_window
(
WnckClassGroup
*
class_group
,
WnckWindow
*
window
);
...
...
libwnck/screen.c
View file @
78d51b3a
...
...
@@ -1493,7 +1493,7 @@ update_client_list (WnckScreen *screen)
class_group
=
wnck_class_group_get
(
res_class
);
if
(
class_group
==
NULL
)
{
class_group
=
_wnck_class_group_create
(
res_class
);
class_group
=
_wnck_class_group_create
(
screen
,
res_class
);
created_class_groups
=
g_list_prepend
(
created_class_groups
,
class_group
);
}
...
...
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