Maemo: Register the status applet with libosso.
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <hildon/hildon.h>
|
#include <hildon/hildon.h>
|
||||||
|
#include <libosso.h>
|
||||||
|
|
||||||
#include "strongswan-status.h"
|
#include "strongswan-status.h"
|
||||||
#include "strongswan-connections.h"
|
#include "strongswan-connections.h"
|
||||||
@@ -23,6 +24,11 @@
|
|||||||
STRONGSWAN_TYPE_STATUS, \
|
STRONGSWAN_TYPE_STATUS, \
|
||||||
StrongswanStatusPrivate))
|
StrongswanStatusPrivate))
|
||||||
|
|
||||||
|
#define OSSO_CHARON_NAME "charon"
|
||||||
|
#define OSSO_CHARON_SERVICE "org.strongswan."OSSO_CHARON_NAME
|
||||||
|
#define OSSO_CHARON_OBJECT "/org/strongswan/"OSSO_CHARON_NAME
|
||||||
|
#define OSSO_CHARON_IFACE "org.strongswan."OSSO_CHARON_NAME
|
||||||
|
|
||||||
#define ICON_SIZE_STATUS 18
|
#define ICON_SIZE_STATUS 18
|
||||||
#define ICON_SIZE_BUTTON 48
|
#define ICON_SIZE_BUTTON 48
|
||||||
|
|
||||||
@@ -41,6 +47,8 @@ struct _StrongswanStatusPrivate
|
|||||||
GtkWidget *selector;
|
GtkWidget *selector;
|
||||||
GtkWidget *box;
|
GtkWidget *box;
|
||||||
|
|
||||||
|
osso_context_t *context;
|
||||||
|
|
||||||
StrongswanConnections *conns;
|
StrongswanConnections *conns;
|
||||||
|
|
||||||
gchar *current;
|
gchar *current;
|
||||||
@@ -162,6 +170,12 @@ strongswan_status_init (StrongswanStatus *plugin)
|
|||||||
StrongswanStatusPrivate *priv = STRONGSWAN_STATUS_GET_PRIVATE (plugin);
|
StrongswanStatusPrivate *priv = STRONGSWAN_STATUS_GET_PRIVATE (plugin);
|
||||||
plugin->priv = priv;
|
plugin->priv = priv;
|
||||||
|
|
||||||
|
priv->context = osso_initialize (OSSO_STATUS_SERVICE, "0.0.1", TRUE, NULL);
|
||||||
|
if (!priv->context)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
priv->conns = strongswan_connections_new ();
|
priv->conns = strongswan_connections_new ();
|
||||||
|
|
||||||
load_icons(priv);
|
load_icons(priv);
|
||||||
|
|||||||
Reference in New Issue
Block a user