mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
Move Session_label from os to base
Session_label constructor now takes a bare string rather than a serialized argument buffer. Replace all instances of previous constructor with 'label_from_args' function. Issue #1787
This commit is contained in:
committed by
Norman Feske
parent
88b358c5ef
commit
f8337b511b
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2006-2013 Genode Labs GmbH
|
||||
* Copyright (C) 2006-2016 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
@ -30,7 +30,7 @@ struct Background : private Texture_base, Session, View
|
||||
*/
|
||||
Background(Area size)
|
||||
:
|
||||
Texture_base(Area(0, 0)), Session(Genode::Session_label("label=\"\"")),
|
||||
Texture_base(Area(0, 0)), Session(Genode::Session_label()),
|
||||
View(*this, View::NOT_TRANSPARENT, View::BACKGROUND, 0),
|
||||
color(25, 37, 50)
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2006-2013 Genode Labs GmbH
|
||||
* Copyright (C) 2006-2016 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
@ -1037,11 +1037,11 @@ class Nitpicker::Root : public Genode::Root_component<Session_component>
|
||||
|
||||
size_t const unused_quota = ram_quota - required_quota;
|
||||
|
||||
Session_label const label(args);
|
||||
bool const provides_default_bg = (strcmp(label.string(), "backdrop") == 0);
|
||||
Genode::Session_label const label = Genode::label_from_args(args);
|
||||
bool const provides_default_bg = (label == "backdrop");
|
||||
|
||||
Session_component *session = new (md_alloc())
|
||||
Session_component(Session_label(args), _view_stack, _mode,
|
||||
Session_component(label, _view_stack, _mode,
|
||||
_pointer_origin, *ep(), _framebuffer,
|
||||
provides_default_bg, *md_alloc(), unused_quota,
|
||||
_focus_reporter);
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2014 Genode Labs GmbH
|
||||
* Copyright (C) 2014-2016 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
@ -21,7 +21,7 @@ struct Pointer_origin : Session, View
|
||||
{
|
||||
Pointer_origin()
|
||||
:
|
||||
Session(Genode::Session_label("")),
|
||||
Session(Genode::Session_label()),
|
||||
View(*this, View::TRANSPARENT, View::NOT_BACKGROUND, 0)
|
||||
{ }
|
||||
|
||||
|
Reference in New Issue
Block a user