From 2dfaa21730da0cb153d45bfa5a9d2110c7e1a379 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Sun, 20 Jun 2010 13:56:19 +0200 Subject: -doc packages are Arch:all --- debian/changelog | 3 ++- debian/control | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9551d8f..9d34249 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,12 +9,13 @@ libdbusmenu (0.3.2-1) unstable; urgency=low - Standards-Version: 3.8.4 - Fix Homepage URL. - Update Vcs-* fields. + - -doc packages are Arch:all * debian/copyright: - Convert to DEP5 format. - Add Ken and Sebastien, according to changelog. - Add Aurélien Gâteau, according to headers. - -- Evgeni Golov Wed, 16 Jun 2010 11:37:08 +0200 + -- Evgeni Golov Sun, 20 Jun 2010 13:56:00 +0200 libdbusmenu (0.3.2-0ubuntu1) maverick; urgency=low diff --git a/debian/control b/debian/control index ed86b8a..f5e0b20 100644 --- a/debian/control +++ b/debian/control @@ -128,7 +128,7 @@ Description: typelib file for libdbusmenu-gtk1 Package: libdbusmenu-glib-doc Section: doc -Architecture: any +Architecture: all Depends: ${misc:Depends} Description: library for passing menus over DBus - documentation libdbusmenu passes a menu structure across DBus so that a program can @@ -139,7 +139,7 @@ Description: library for passing menus over DBus - documentation Package: libdbusmenu-gtk-doc Section: doc -Architecture: any +Architecture: all Depends: ${misc:Depends} Description: library for passing menus over DBus - GTK version documentation libdbusmenu passes a menu structure across DBus so that a program can -- cgit v1.2.3 From 5259846f36df1eb4703c56cae6a08a4bd0b4ed15 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Sun, 20 Jun 2010 14:17:47 +0200 Subject: s/GTK/GTK+/ --- debian/control | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/control b/debian/control index f5e0b20..8f4ca78 100644 --- a/debian/control +++ b/debian/control @@ -59,12 +59,12 @@ Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} -Description: library for passing menus over DBus - GTK version +Description: library for passing menus over DBus - GTK+ version libdbusmenu passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus. . - This package contains shared libraries to be used by GTK applications. + This package contains shared libraries to be used by GTK+ applications. Package: libdbusmenu-gtk-dev Section: libdevel @@ -75,12 +75,12 @@ Depends: ${shlibs:Depends}, libdbus-glib-1-dev (>= 0.76), libgtk2.0-dev (>= 2.12.0), libdbusmenu-glib-dev -Description: library for passing menus over DBus - GTK version developement files +Description: library for passing menus over DBus - GTK+ version developement files libdbusmenu passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus. . - This package contains files that are needed to build GTK applications. + This package contains files that are needed to build GTK+ applications. Package: libdbusmenu-tools Section: devel @@ -141,7 +141,7 @@ Package: libdbusmenu-gtk-doc Section: doc Architecture: all Depends: ${misc:Depends} -Description: library for passing menus over DBus - GTK version documentation +Description: library for passing menus over DBus - GTK+ version documentation libdbusmenu passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus. -- cgit v1.2.3 From fa92b7508f63678353a05024c3b30bc770716907 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 1 Jul 2010 11:40:19 +0200 Subject: Standards-Version: 3.9.0 --- debian/changelog | 3 ++- debian/control | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 091c2d1..43e4eff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ libdbusmenu (0.3.3-1) unstable; urgency=low * Merge Ubuntu. Preserve Maintainer and Vcs-* fields. + * Standards-Version: 3.9.0 - -- Evgeni Golov Thu, 01 Jul 2010 11:28:16 +0200 + -- Evgeni Golov Thu, 01 Jul 2010 11:40:04 +0200 libdbusmenu (0.3.3-0ubuntu1) maverick; urgency=low diff --git a/debian/control b/debian/control index 8f4ca78..c11bb1c 100644 --- a/debian/control +++ b/debian/control @@ -19,7 +19,7 @@ Build-Depends: debhelper (>= 5.0), gir1.0-glib-2.0, gir1.0-gtk-2.0, valac -Standards-Version: 3.8.4 +Standards-Version: 3.9.0 Homepage: https://launchpad.net/dbusmenu Vcs-Bzr: http://bzr.debian.org/bzr/pkg-ayatana/libdbusmenu/debian Vcs-Browser: http://bzr.debian.org/loggerhead/pkg-ayatana/libdbusmenu/debian -- cgit v1.2.3 From 2404f2f70b5c1a110383b15694e5784cd2d6013c Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 1 Jul 2010 11:42:34 +0200 Subject: Source-Format: 1.0 for now --- debian/changelog | 3 ++- debian/source/format | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog index 43e4eff..c25acb9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,9 @@ libdbusmenu (0.3.3-1) unstable; urgency=low * Merge Ubuntu. Preserve Maintainer and Vcs-* fields. * Standards-Version: 3.9.0 + * Source-Format: 1.0 for now - -- Evgeni Golov Thu, 01 Jul 2010 11:40:04 +0200 + -- Evgeni Golov Thu, 01 Jul 2010 11:42:23 +0200 libdbusmenu (0.3.3-0ubuntu1) maverick; urgency=low diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 -- cgit v1.2.3 From 26d44b572f237f592862333d6dbb9d8899259bca Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 2 Jul 2010 08:47:23 -0500 Subject: Check to ensure we an get the connection before registering the object. --- libdbusmenu-glib/server.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 0da66cc..13c2843 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -225,15 +225,22 @@ static void set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec) { DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(obj); + GError * error = NULL; switch (id) { case PROP_DBUS_OBJECT: g_return_if_fail(priv->dbusobject == NULL); priv->dbusobject = g_value_dup_string(value); - DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL); - dbus_g_connection_register_g_object(connection, - priv->dbusobject, - obj); + DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error); + + if (connection == NULL || error != NULL) { + g_warning("Unable to get session bus: %s", error == NULL ? "No message" : error->message); + if (error != NULL) { g_error_free(error); } + } else { + dbus_g_connection_register_g_object(connection, + priv->dbusobject, + obj); + } break; case PROP_ROOT_NODE: if (priv->root != NULL) { -- cgit v1.2.3 From 72440f055a39e9a80feff00515f7ae8b49237278 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 2 Jul 2010 10:35:23 -0500 Subject: Only tell when we're doing massive debugging. --- libdbusmenu-gtk/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index a46aef3..b406697 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -148,7 +148,9 @@ do_swap_agroup (DbusmenuMenuitem * mi, gpointer userdata) { return FALSE; } + #ifdef MASSIVEDEBUGGING g_debug("Setting shortcut on '%s': %d %X", dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL), key, modifiers); + #endif GtkMenuItem * gmi = dbusmenu_gtkclient_menuitem_get(data->client, mi); if (gmi == NULL) { -- cgit v1.2.3 From eff1ffd59b4ca9ccfe11146559e070e8f4cf1f06 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 7 Jul 2010 11:46:37 -0500 Subject: Ratcheting down the warning level of not finding a group. --- libdbusmenu-gtk/menuitem.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libdbusmenu-gtk/menuitem.c b/libdbusmenu-gtk/menuitem.c index 9924546..5846aa7 100644 --- a/libdbusmenu-gtk/menuitem.c +++ b/libdbusmenu-gtk/menuitem.c @@ -264,9 +264,10 @@ dbusmenu_menuitem_property_set_shortcut_menuitem (DbusmenuMenuitem * menuitem, c GtkAccelGroup * group = gtk_accel_group_from_accel_closure(closure); - /* Seriously, if this returns NULL something is seriously - wrong in GTK. */ - g_return_val_if_fail(group != NULL, FALSE); + /* Apparently this is more common than I thought. */ + if (group == NULL) { + return FALSE; + } GtkAccelKey * key = gtk_accel_group_find(group, find_closure, closure); /* Again, not much we can do except complain loudly. */ -- cgit v1.2.3 From f83f5f8dccbbc24f9a6256c3a116391000419004 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 7 Jul 2010 14:45:26 -0500 Subject: Adding NULL protection and a warning --- libdbusmenu-glib/client.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index fa233a4..871170a 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -561,6 +561,9 @@ build_proxies (DbusmenuClient * client) static gint parse_node_get_id (xmlNodePtr node) { + if (node == NULL) { + return -1; + } if (node->type != XML_ELEMENT_NODE) { return -1; } @@ -886,6 +889,10 @@ parse_layout (DbusmenuClient * client, const gchar * layout) xmlNodePtr root = xmlDocGetRootElement(xmldoc); + if (root == NULL) { + g_warning("Unable to get root node of menu XML"); + } + DbusmenuMenuitem * oldroot = priv->root; priv->root = parse_layout_xml(client, root, priv->root, NULL, priv->menuproxy); -- cgit v1.2.3 From 2e974ea0fa59265a0ec4cce29cbb62519ce872cb Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 8 Jul 2010 10:11:33 -0500 Subject: 0.3.5 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index bd7fff8..7ec994b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,11 @@ -AC_INIT(libdbusmenu, 0.3.4, ted@canonical.com) +AC_INIT(libdbusmenu, 0.3.5, ted@canonical.com) AC_COPYRIGHT([Copyright 2009,2010 Canonical]) AC_PREREQ(2.62) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(libdbusmenu, 0.3.4, [-Wno-portability]) +AM_INIT_AUTOMAKE(libdbusmenu, 0.3.5, [-Wno-portability]) AM_MAINTAINER_MODE @@ -87,7 +87,7 @@ AC_PATH_PROG([VALA_API_GEN], [vapigen]) ########################### LIBDBUSMENU_CURRENT=1 -LIBDBUSMENU_REVISION=9 +LIBDBUSMENU_REVISION=10 LIBDBUSMENU_AGE=0 AC_SUBST(LIBDBUSMENU_CURRENT) -- cgit v1.2.3 From 78b810a93fbccde56192efa7cc6b4a520f03e35a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 8 Jul 2010 10:24:21 -0500 Subject: releasing version 0.3.5-0ubuntu1~ppa1 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 985c127..3139067 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,11 @@ -libdbusmenu (0.3.5-0ubuntu1~ppa1) UNRELEASED; urgency=low +libdbusmenu (0.3.5-0ubuntu1~ppa1) lucid; urgency=low * New upstream release. ∘ Protect against NULL nodes (LP: #602444) ∘ Remove extra warnings and messages ∘ Handle not having a session bus better (LP: #598715) - -- Ted Gould Thu, 08 Jul 2010 10:20:31 -0500 + -- Ted Gould Thu, 08 Jul 2010 10:24:18 -0500 libdbusmenu (0.3.4-0ubuntu1) maverick; urgency=low -- cgit v1.2.3