Add a way for panels to receive additional arguments.
This patch introduces the "argv" property to CcPanel. Panels that wish to handle extra arguments shall override it and act appropriately in the constructor. https://bugzilla.gnome.org/show_bug.cgi?id=657093
This commit is contained in:
parent
67a28bb629
commit
1f9ae38c2f
7 changed files with 35 additions and 10 deletions
|
@ -86,6 +86,7 @@ struct _CcShellClass
|
|||
/* vfuncs */
|
||||
gboolean (*set_active_panel_from_id) (CcShell *shell,
|
||||
const gchar *id,
|
||||
const gchar **argv,
|
||||
GError **error);
|
||||
GtkWidget * (*get_toplevel) (CcShell *shell);
|
||||
};
|
||||
|
@ -97,6 +98,7 @@ void cc_shell_set_active_panel (CcShell *shell,
|
|||
CcPanel *panel);
|
||||
gboolean cc_shell_set_active_panel_from_id (CcShell *shell,
|
||||
const gchar *id,
|
||||
const gchar **argv,
|
||||
GError **error);
|
||||
GtkWidget * cc_shell_get_toplevel (CcShell *shell);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue