From ab032f25b52b507873dcaf7779013be048bb2a31 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 15 Apr 2009 09:04:57 -0500 Subject: Adding basic client and server objects. --- libdbusmenu-glib/client.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libdbusmenu-glib/client.h (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h new file mode 100644 index 0000000..861e3b5 --- /dev/null +++ b/libdbusmenu-glib/client.h @@ -0,0 +1,31 @@ +#ifndef __DBUSMENU_CLIENT_H__ +#define __DBUSMENU_CLIENT_H__ + +#include +#include + +G_BEGIN_DECLS + +#define DBUSMENU_CLIENT_TYPE (dbusmenu_client_get_type ()) +#define DBUSMENU_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUSMENU_CLIENT_TYPE, DbusmenuClient)) +#define DBUSMENU_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DBUSMENU_CLIENT_TYPE, DbusmenuClientClass)) +#define DBUSMENU_IS_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUSMENU_CLIENT_TYPE)) +#define DBUSMENU_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_CLIENT_TYPE)) +#define DBUSMENU_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_CLIENT_TYPE, DbusmenuClientClass)) + +typedef struct _DbusmenuClient DbusmenuClient; +typedef struct _DbusmenuClientClass DbusmenuClientClass; + +struct _DbusmenuClientClass { + GObjectClass parent_class; +}; + +struct _DbusmenuClient { + GObject parent; +}; + +GType dbusmenu_client_get_type (void); + +G_END_DECLS + +#endif -- cgit v1.2.3 From 701d32624ece7c6b4bb4bfc2c8d24109b06bde75 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 15 Apr 2009 10:23:52 -0500 Subject: Building an API, woo hoo --- libdbusmenu-glib/client.h | 6 +++++- libdbusmenu-glib/server.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index 861e3b5..a926cc6 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -4,6 +4,8 @@ #include #include +#include "menuitem.h" + G_BEGIN_DECLS #define DBUSMENU_CLIENT_TYPE (dbusmenu_client_get_type ()) @@ -24,7 +26,9 @@ struct _DbusmenuClient { GObject parent; }; -GType dbusmenu_client_get_type (void); +GType dbusmenu_client_get_type (void); +DbusmenuClient * dbusmenu_client_new (const gchar * name, const gchar * object); +DbusmenuMenuitem * dbusmenu_client_get_root (DbusmenuClient * client); G_END_DECLS diff --git a/libdbusmenu-glib/server.h b/libdbusmenu-glib/server.h index b47a5e9..2d81587 100644 --- a/libdbusmenu-glib/server.h +++ b/libdbusmenu-glib/server.h @@ -4,6 +4,8 @@ #include #include +#include "menuitem.h" + G_BEGIN_DECLS #define DBUSMENU_SERVER_TYPE (dbusmenu_server_get_type ()) @@ -24,7 +26,9 @@ struct _DbusmenuServer { GObject parent; }; -GType dbusmenu_server_get_type (void); +GType dbusmenu_server_get_type (void); +DbusmenuServer * dbusmenu_server_new (const gchar * object); +void dbusmenu_server_set_root (DbusmenuServer * server, DbusmenuMenuitem * root); G_END_DECLS -- cgit v1.2.3 From 702c3dc2dc729fd5af401ceffe6f1a9ae0276921 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 16 Apr 2009 10:15:27 -0500 Subject: Changing the type name to make more sense --- libdbusmenu-glib/client.c | 2 +- libdbusmenu-glib/client.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 434b22e..fc60101 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -12,7 +12,7 @@ struct _DbusmenuClientPrivate }; #define DBUSMENU_CLIENT_GET_PRIVATE(o) \ -(G_TYPE_INSTANCE_GET_PRIVATE ((o), DBUSMENU_CLIENT_TYPE, DbusmenuClientPrivate)) +(G_TYPE_INSTANCE_GET_PRIVATE ((o), DBUSMENU_TYPE_CLIENT, DbusmenuClientPrivate)) static void dbusmenu_client_class_init (DbusmenuClientClass *klass); static void dbusmenu_client_init (DbusmenuClient *self); diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index a926cc6..d54b9d7 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -8,12 +8,12 @@ G_BEGIN_DECLS -#define DBUSMENU_CLIENT_TYPE (dbusmenu_client_get_type ()) -#define DBUSMENU_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUSMENU_CLIENT_TYPE, DbusmenuClient)) -#define DBUSMENU_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DBUSMENU_CLIENT_TYPE, DbusmenuClientClass)) -#define DBUSMENU_IS_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUSMENU_CLIENT_TYPE)) -#define DBUSMENU_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_CLIENT_TYPE)) -#define DBUSMENU_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_CLIENT_TYPE, DbusmenuClientClass)) +#define DBUSMENU_TYPE_CLIENT (dbusmenu_client_get_type ()) +#define DBUSMENU_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUSMENU_TYPE_CLIENT, DbusmenuClient)) +#define DBUSMENU_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DBUSMENU_TYPE_CLIENT, DbusmenuClientClass)) +#define DBUSMENU_IS_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUSMENU_TYPE_CLIENT)) +#define DBUSMENU_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_TYPE_CLIENT)) +#define DBUSMENU_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_TYPE_CLIENT, DbusmenuClientClass)) typedef struct _DbusmenuClient DbusmenuClient; typedef struct _DbusmenuClientClass DbusmenuClientClass; -- cgit v1.2.3 From bc2a1a314b64960eda857284bc0149193433a0a1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 28 Apr 2009 16:01:16 -0500 Subject: Fix property names. --- libdbusmenu-glib/client.c | 9 ++++++--- libdbusmenu-glib/client.h | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index d49b8db..f00c185 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -59,12 +59,12 @@ dbusmenu_client_class_init (DbusmenuClientClass *klass) object_class->get_property = get_property; g_object_class_install_property (object_class, PROP_DBUSOBJECT, - g_param_spec_string("dbus-object", "DBus Object we represent", + g_param_spec_string(DBUSMENU_CLIENT_PROP_DBUS_OBJECT, "DBus Object we represent", "The Object on the client that we're getting our data from.", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_DBUSNAME, - g_param_spec_string("dbus-name", "DBus Client we connect to", + g_param_spec_string(DBUSMENU_CLIENT_PROP_DBUS_NAME, "DBus Client we connect to", "Name of the DBus client we're connecting to.", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -345,7 +345,10 @@ update_layout (DbusmenuClient * client) DbusmenuClient * dbusmenu_client_new (const gchar * name, const gchar * object) { - DbusmenuClient * self = g_object_new(DBUSMENU_TYPE_CLIENT, "name", name, "object", object, NULL); + DbusmenuClient * self = g_object_new(DBUSMENU_TYPE_CLIENT, + DBUSMENU_CLIENT_PROP_DBUS_NAME, name, + DBUSMENU_CLIENT_PROP_DBUS_OBJECT, object, + NULL); update_layout(self); return self; diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index d54b9d7..bc4559a 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -15,6 +15,9 @@ G_BEGIN_DECLS #define DBUSMENU_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_TYPE_CLIENT)) #define DBUSMENU_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_TYPE_CLIENT, DbusmenuClientClass)) +#define DBUSMENU_CLIENT_PROP_DBUS_NAME "dbus-name" +#define DBUSMENU_CLIENT_PROP_DBUS_OBJECT "dbus-object" + typedef struct _DbusmenuClient DbusmenuClient; typedef struct _DbusmenuClientClass DbusmenuClientClass; -- cgit v1.2.3 From 8b7a878309959f34b08b321f0f04457a31f52826 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 May 2009 18:48:58 +0100 Subject: Adding in a signal for the layout being updated --- libdbusmenu-glib/client.c | 25 +++++++++++++++++++++++++ libdbusmenu-glib/client.h | 10 ++++++++++ 2 files changed, 35 insertions(+) (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 143e4be..bb2f588 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -15,6 +15,14 @@ enum { PROP_DBUSNAME }; +/* Signals */ +enum { + LAYOUT_UPDATED, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL] = { 0 }; + typedef struct _DbusmenuClientPrivate DbusmenuClientPrivate; struct _DbusmenuClientPrivate @@ -64,6 +72,22 @@ dbusmenu_client_class_init (DbusmenuClientClass *klass) object_class->set_property = set_property; object_class->get_property = get_property; + /** + DbusmenuClient::layout-update: + @arg0: The #DbusmenuClient object + + Tells that the layout has been updated and parsed by + this object and is ready for grabbing by the calling + application. + */ + signals[LAYOUT_UPDATED] = g_signal_new(DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED, + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (DbusmenuClientClass, layout_updated), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0, G_TYPE_NONE); + g_object_class_install_property (object_class, PROP_DBUSOBJECT, g_param_spec_string(DBUSMENU_CLIENT_PROP_DBUS_OBJECT, "DBus Object we represent", "The Object on the client that we're getting our data from.", @@ -330,6 +354,7 @@ update_layout_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) parse_layout(client, xml); priv->layoutcall = NULL; + g_signal_emit(G_OBJECT(client), signals[LAYOUT_UPDATED], 0, TRUE); return; } diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index bc4559a..d4c5ee9 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -15,6 +15,8 @@ G_BEGIN_DECLS #define DBUSMENU_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_TYPE_CLIENT)) #define DBUSMENU_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_TYPE_CLIENT, DbusmenuClientClass)) +#define DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED "layout-updated" + #define DBUSMENU_CLIENT_PROP_DBUS_NAME "dbus-name" #define DBUSMENU_CLIENT_PROP_DBUS_OBJECT "dbus-object" @@ -23,6 +25,14 @@ typedef struct _DbusmenuClientClass DbusmenuClientClass; struct _DbusmenuClientClass { GObjectClass parent_class; + + void (*layout_updated)(void); + + /* Reserved for future use */ + void (*reserved1) (void); + void (*reserved2) (void); + void (*reserved3) (void); + void (*reserved4) (void); }; struct _DbusmenuClient { -- cgit v1.2.3 From d758a842a491f7518b349767dc7fde8fcc64933b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 11 May 2009 17:19:39 -0500 Subject: Object and section docs. --- libdbusmenu-glib/client.h | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index d4c5ee9..002e0e5 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -20,9 +20,20 @@ G_BEGIN_DECLS #define DBUSMENU_CLIENT_PROP_DBUS_NAME "dbus-name" #define DBUSMENU_CLIENT_PROP_DBUS_OBJECT "dbus-object" -typedef struct _DbusmenuClient DbusmenuClient; -typedef struct _DbusmenuClientClass DbusmenuClientClass; +/** + DbusmenuClientClass: + @parent_class: #GObjectClass + @layout_updated: Slot for #DbusmenuClient::layout-updated. + @reserved1: Reserved for future use. + @reserved2: Reserved for future use. + @reserved3: Reserved for future use. + @reserved4: Reserved for future use. + A simple class that takes all of the information from a + #DbusmenuServer over DBus and makes the same set of + #DbusmenuMenuitem objects appear on the other side. +*/ +typedef struct _DbusmenuClientClass DbusmenuClientClass; struct _DbusmenuClientClass { GObjectClass parent_class; @@ -35,6 +46,14 @@ struct _DbusmenuClientClass { void (*reserved4) (void); }; +/** + DbusmenuClient: + @parent: #GObject. + + The client for a #DbusmenuServer creating a shared + object set of #DbusmenuMenuitem objects. +*/ +typedef struct _DbusmenuClient DbusmenuClient; struct _DbusmenuClient { GObject parent; }; @@ -43,6 +62,27 @@ GType dbusmenu_client_get_type (void); DbusmenuClient * dbusmenu_client_new (const gchar * name, const gchar * object); DbusmenuMenuitem * dbusmenu_client_get_root (DbusmenuClient * client); +/** + SECTION:client + @short_description: The catcher of all the server traffic + @stability: Unstable + @include: libdbusmenu-glib/client.h + + The client exists as a mirror to the server. For most folks + all they will do with a client is set it up to connect to + a server and then watch as the menu items on their side + of the bus change. This is all they should need to know about + the client, that it magically makes their menuitems dance. + + It does this by setting up signal watchers and adjusting + the menuitems appropriately. Most users should watch the + menu items and the signal #DbusmenuClient::layout-changed for + larger events so that they can be optimized. It is possible + with that signal that even the root node would change. If + that doesn't happen the normal signals on the individual + nodes should be enough for most users. +*/ + G_END_DECLS #endif -- cgit v1.2.3 From a2f612da2fe73e6e22abf2fadbe18d4a12e52b1f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 12 May 2009 08:51:39 -0500 Subject: Add in the LGPL 2.1/3 text to the tops of the files. --- libdbusmenu-glib/client.c | 28 ++++++++++++++++++++++++++++ libdbusmenu-glib/client.h | 28 ++++++++++++++++++++++++++++ libdbusmenu-glib/menuitem.c | 28 ++++++++++++++++++++++++++++ libdbusmenu-glib/menuitem.h | 28 ++++++++++++++++++++++++++++ libdbusmenu-glib/server.c | 28 ++++++++++++++++++++++++++++ libdbusmenu-glib/server.h | 28 ++++++++++++++++++++++++++++ 6 files changed, 168 insertions(+) (limited to 'libdbusmenu-glib/client.h') diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 1a35868..c25f5f2 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1,3 +1,31 @@ +/* +A library to communicate a menu object set accross DBus and +track updates and maintain consistency. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of either or both of the following licenses: + +1) the GNU Lesser General Public License version 3, as published by the +Free Software Foundation; and/or +2) the GNU Lesser General Public License version 2.1, as published by +the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR +PURPOSE. See the applicable version of the GNU Lesser General Public +License for more details. + +You should have received a copy of both the GNU Lesser General Public +License version 3 and version 2.1 along with this program. If not, see + +*/ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index 002e0e5..d591ebb 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -1,3 +1,31 @@ +/* +A library to communicate a menu object set accross DBus and +track updates and maintain consistency. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of either or both of the following licenses: + +1) the GNU Lesser General Public License version 3, as published by the +Free Software Foundation; and/or +2) the GNU Lesser General Public License version 2.1, as published by +the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR +PURPOSE. See the applicable version of the GNU Lesser General Public +License for more details. + +You should have received a copy of both the GNU Lesser General Public +License version 3 and version 2.1 along with this program. If not, see + +*/ + #ifndef __DBUSMENU_CLIENT_H__ #define __DBUSMENU_CLIENT_H__ diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 151a837..6360079 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -1,3 +1,31 @@ +/* +A library to communicate a menu object set accross DBus and +track updates and maintain consistency. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of either or both of the following licenses: + +1) the GNU Lesser General Public License version 3, as published by the +Free Software Foundation; and/or +2) the GNU Lesser General Public License version 2.1, as published by +the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR +PURPOSE. See the applicable version of the GNU Lesser General Public +License for more details. + +You should have received a copy of both the GNU Lesser General Public +License version 3 and version 2.1 along with this program. If not, see + +*/ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/libdbusmenu-glib/menuitem.h b/libdbusmenu-glib/menuitem.h index 732a7a6..a604e7a 100644 --- a/libdbusmenu-glib/menuitem.h +++ b/libdbusmenu-glib/menuitem.h @@ -1,3 +1,31 @@ +/* +A library to communicate a menu object set accross DBus and +track updates and maintain consistency. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of either or both of the following licenses: + +1) the GNU Lesser General Public License version 3, as published by the +Free Software Foundation; and/or +2) the GNU Lesser General Public License version 2.1, as published by +the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR +PURPOSE. See the applicable version of the GNU Lesser General Public +License for more details. + +You should have received a copy of both the GNU Lesser General Public +License version 3 and version 2.1 along with this program. If not, see + +*/ + #ifndef __DBUSMENU_MENUITEM_H__ #define __DBUSMENU_MENUITEM_H__ diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 53ff69b..9d217c8 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -1,3 +1,31 @@ +/* +A library to communicate a menu object set accross DBus and +track updates and maintain consistency. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of either or both of the following licenses: + +1) the GNU Lesser General Public License version 3, as published by the +Free Software Foundation; and/or +2) the GNU Lesser General Public License version 2.1, as published by +the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR +PURPOSE. See the applicable version of the GNU Lesser General Public +License for more details. + +You should have received a copy of both the GNU Lesser General Public +License version 3 and version 2.1 along with this program. If not, see + +*/ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/libdbusmenu-glib/server.h b/libdbusmenu-glib/server.h index f2324fd..de5f9eb 100644 --- a/libdbusmenu-glib/server.h +++ b/libdbusmenu-glib/server.h @@ -1,3 +1,31 @@ +/* +A library to communicate a menu object set accross DBus and +track updates and maintain consistency. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of either or both of the following licenses: + +1) the GNU Lesser General Public License version 3, as published by the +Free Software Foundation; and/or +2) the GNU Lesser General Public License version 2.1, as published by +the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR +PURPOSE. See the applicable version of the GNU Lesser General Public +License for more details. + +You should have received a copy of both the GNU Lesser General Public +License version 3 and version 2.1 along with this program. If not, see + +*/ + #ifndef __DBUSMENU_SERVER_H__ #define __DBUSMENU_SERVER_H__ -- cgit v1.2.3