Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | ap_application_plugin_build_widget () |
AgAccount * | ap_application_plugin_get_account () |
AgApplication * | ap_application_plugin_get_application () |
const GError * | ap_application_plugin_get_error () |
void | ap_application_plugin_set_error () |
void | ap_application_plugin_emit_finished () |
AgAccount * | account | Read / Write / Construct Only |
AgApplication * | application | Read / Write / Construct Only |
Application plugins for the credentials panel of the Unity control center
need to subclass ApApplicationPlugin and implement its build_widget()
virtual method.
This method will be called by the credentials panel when it needs to show a
UI to edit the application-specific settings of the account.
GtkWidget *
ap_application_plugin_build_widget (ApApplicationPlugin *self
);
Build a UI widget to edit the application-specific account settings on the AgAccount associated with this plugin. The plugin must emit the “finished” signal once the widget has completed its tasks and can be destroyed.
AgAccount *
ap_application_plugin_get_account (ApApplicationPlugin *self
);
Get the AgAccount associated with this application_plugin instance.
AgApplication *
ap_application_plugin_get_application (ApApplicationPlugin *self
);
Get the AgApplication associated with this plugin instance.
const GError *
ap_application_plugin_get_error (ApApplicationPlugin *self
);
Get whether the requested operation ended in an error.
void ap_application_plugin_set_error (ApApplicationPlugin *self
,const GError *error
);
Tell the application plugin that the requested operation ended in an error. This method should be called by ApApplicationPlugin subclasses only.
void
ap_application_plugin_emit_finished (ApApplicationPlugin *self
);
Emits the “finished” signal. This method is useful for subclasses only.
“account”
property “account” AgAccount *
The AgAccount associated with the plugin.
Flags: Read / Write / Construct Only
“finished”
signalvoid user_function (ApApplicationPlugin *self, gpointer user_data)
Emitted when the plugin UI has completed its task and can be dismissed.
self |
the ApApplicationPlugin. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last