Commit 78d51b3a authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

class-group: add WnckScreen to private struct

parent fcb5eefb
......@@ -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 : "");
......
......@@ -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);
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment