shell: Use GVariant to convey panel arguments instead of a string array
By using a GVariant of type "av" we can potentially pass more structured data to panels, which will become relevant with the ability to invoke them by GAction-based DBus-activation introduced in the following patch. https://bugzilla.gnome.org/show_bug.cgi?id=696054
This commit is contained in:
parent
397181e5d2
commit
9977bb200e
11 changed files with 127 additions and 60 deletions
|
@ -200,7 +200,7 @@ ensure_panel_types (void)
|
|||
CcPanel *
|
||||
cc_panel_loader_load_by_name (CcShell *shell,
|
||||
const char *name,
|
||||
const char **argv)
|
||||
GVariant *parameters)
|
||||
{
|
||||
GType (*get_type) (void);
|
||||
|
||||
|
@ -211,7 +211,7 @@ cc_panel_loader_load_by_name (CcShell *shell,
|
|||
|
||||
return g_object_new (get_type (),
|
||||
"shell", shell,
|
||||
"argv", argv,
|
||||
"parameters", parameters,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue