diff options
author | Ted Gould <ted@gould.cx> | 2011-10-13 11:21:01 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-10-13 11:21:01 -0500 |
commit | f966667e6e1af74f06c65d8cfca78d0b861d5621 (patch) | |
tree | a6b78ec5c8aca3b5e9cf708958557fe37f6184a5 | |
parent | 20ec3997c6cfbc160fa15d841ac477ccd5e23fd0 (diff) | |
parent | da6a2dfa870a1925ebb98fb10286bcde62d2db11 (diff) | |
download | libdbusmenu-f966667e6e1af74f06c65d8cfca78d0b861d5621.tar.gz libdbusmenu-f966667e6e1af74f06c65d8cfca78d0b861d5621.tar.bz2 libdbusmenu-f966667e6e1af74f06c65d8cfca78d0b861d5621.zip |
Import upstream version 0.5.1
-rw-r--r-- | ChangeLog | 28 | ||||
-rwxr-xr-x | configure | 22 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | docs/libdbusmenu-glib/reference/version.xml | 2 | ||||
-rw-r--r-- | docs/libdbusmenu-gtk/reference/version.xml | 2 | ||||
-rw-r--r-- | libdbusmenu-glib/client.c | 2 | ||||
-rw-r--r-- | libdbusmenu-gtk/client.c | 18 | ||||
-rw-r--r-- | libdbusmenu-gtk/genericmenuitem.c | 1 |
8 files changed, 59 insertions, 22 deletions
@@ -1,5 +1,33 @@ # Generated by Makefile. Do not edit. +2011-10-13 Ted Gould <ted@gould.cx> + + 0.5.1 + +2011-10-12 Ted Gould <ted@gould.cx> + + Allow about-to-show on 0 based items (root items) + +2011-09-30 Ken VanDine <ken.vandine@canonical.com> + + id of 0 in dbusmenu_client_send_about_to_show is valid, and used in appindicators like nm-applet (LP: #862989) + +2011-10-12 Ted Gould <ted@gould.cx> + + Make sure to finally unref the GTK menuitem + +2011-10-04 Michael Terry <michael.terry@canonical.com> + + remove last ref from GtkMenuItems that we create + +2011-10-12 Ted Gould <ted@gould.cx> + + If the child is copied make sure we don't delete the original. + +2011-10-05 Michael Terry <michael.terry@canonical.com> + + when resetting an image widget and it's the only child of the menuitem, make sure we don't try to use free'd memory + 2011-09-29 Ted Gould <ted@gould.cx> 0.5.0 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for libdbusmenu 0.5.0. +# Generated by GNU Autoconf 2.68 for libdbusmenu 0.5.1. # # Report bugs to <ted@canonical.com>. # @@ -572,8 +572,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libdbusmenu' PACKAGE_TARNAME='libdbusmenu' -PACKAGE_VERSION='0.5.0' -PACKAGE_STRING='libdbusmenu 0.5.0' +PACKAGE_VERSION='0.5.1' +PACKAGE_STRING='libdbusmenu 0.5.1' PACKAGE_BUGREPORT='ted@canonical.com' PACKAGE_URL='' @@ -1429,7 +1429,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libdbusmenu 0.5.0 to adapt to many kinds of systems. +\`configure' configures libdbusmenu 0.5.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1499,7 +1499,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libdbusmenu 0.5.0:";; + short | recursive ) echo "Configuration of libdbusmenu 0.5.1:";; esac cat <<\_ACEOF @@ -1649,7 +1649,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libdbusmenu configure 0.5.0 +libdbusmenu configure 0.5.1 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2020,7 +2020,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libdbusmenu $as_me 0.5.0, which was +It was created by libdbusmenu $as_me 0.5.1, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2841,7 +2841,7 @@ fi # Define the identity of the package. PACKAGE=libdbusmenu - VERSION=0.5.0 + VERSION=0.5.1 # Some tools Automake needs. @@ -14309,7 +14309,7 @@ fi ########################### LIBDBUSMENU_CURRENT=4 -LIBDBUSMENU_REVISION=5 +LIBDBUSMENU_REVISION=6 LIBDBUSMENU_AGE=0 @@ -15659,7 +15659,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libdbusmenu $as_me 0.5.0, which was +This file was extended by libdbusmenu $as_me 0.5.1, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -15725,7 +15725,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libdbusmenu config.status 0.5.0 +libdbusmenu config.status 0.5.1 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index f195f47..ba5cd4b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,11 @@ -AC_INIT(libdbusmenu, 0.5.0, ted@canonical.com) +AC_INIT(libdbusmenu, 0.5.1, ted@canonical.com) AC_COPYRIGHT([Copyright 2009,2010 Canonical]) AC_PREREQ(2.62) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(libdbusmenu, 0.5.0, [-Wno-portability]) +AM_INIT_AUTOMAKE(libdbusmenu, 0.5.1, [-Wno-portability]) AM_MAINTAINER_MODE @@ -172,7 +172,7 @@ AC_PATH_PROG([XSLT_PROC], [xsltproc]) ########################### LIBDBUSMENU_CURRENT=4 -LIBDBUSMENU_REVISION=5 +LIBDBUSMENU_REVISION=6 LIBDBUSMENU_AGE=0 AC_SUBST(LIBDBUSMENU_CURRENT) diff --git a/docs/libdbusmenu-glib/reference/version.xml b/docs/libdbusmenu-glib/reference/version.xml index 8f0916f..4b9fcbe 100644 --- a/docs/libdbusmenu-glib/reference/version.xml +++ b/docs/libdbusmenu-glib/reference/version.xml @@ -1 +1 @@ -0.5.0 +0.5.1 diff --git a/docs/libdbusmenu-gtk/reference/version.xml b/docs/libdbusmenu-gtk/reference/version.xml index 8f0916f..4b9fcbe 100644 --- a/docs/libdbusmenu-gtk/reference/version.xml +++ b/docs/libdbusmenu-gtk/reference/version.xml @@ -1 +1 @@ -0.5.0 +0.5.1 diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index a7f4da5..9129db5 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1610,7 +1610,7 @@ void dbusmenu_client_send_about_to_show(DbusmenuClient * client, gint id, void (*cb)(gpointer data), gpointer cb_data) { g_return_if_fail(DBUSMENU_CLIENT(client)); - g_return_if_fail(id > 0); + g_return_if_fail(id >= 0); DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client); g_return_if_fail(priv != NULL); diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 1051f20..38b6a75 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -823,14 +823,22 @@ item_activate (DbusmenuClient * client, DbusmenuMenuitem * mi, guint timestamp, return; } -#ifdef MASSIVEDEBUGGING static void -destroy_gmi (GtkMenuItem * gmi, DbusmenuMenuitem * mi) +destroy_gmi (GtkMenuItem * gmi) { - g_debug("Destorying GTK Menuitem for %d", dbusmenu_menuitem_get_id(mi)); +#ifdef MASSIVEDEBUGGING + g_debug("Destroying GTK Menuitem %d", gmi); +#endif + + /* Call gtk_widget_destroy to remove from any containers and cleanup */ + gtk_widget_destroy(GTK_WIDGET(gmi)); + + /* Now remove last ref that we are holding (due to g_object_ref_sink in + dbusmenu_gtkclient_newitem_base). This should finalize the object */ + g_object_unref(G_OBJECT(gmi)); + return; } -#endif /** * dbusmenu_gtkclient_newitem_base: @@ -857,7 +865,7 @@ dbusmenu_gtkclient_newitem_base (DbusmenuGtkClient * client, DbusmenuMenuitem * /* Attach these two */ g_object_ref_sink(G_OBJECT(gmi)); - g_object_set_data_full(G_OBJECT(item), data_menuitem, gmi, (GDestroyNotify)gtk_widget_destroy); + g_object_set_data_full(G_OBJECT(item), data_menuitem, gmi, (GDestroyNotify)destroy_gmi); /* DbusmenuMenuitem signals */ g_signal_connect(G_OBJECT(item), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(menu_prop_change_cb), client); diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c index 5488f93..ef77a2e 100644 --- a/libdbusmenu-gtk/genericmenuitem.c +++ b/libdbusmenu-gtk/genericmenuitem.c @@ -449,6 +449,7 @@ genericmenuitem_set_image (Genericmenuitem * menu_item, GtkWidget * image) if (GTK_IS_IMAGE(child)) { /* We've got a label, let's update it. */ imagew = GTK_IMAGE(child); + child = NULL; } else if (GTK_IS_BOX(child)) { /* Look for the label in the box */ gtk_container_foreach(GTK_CONTAINER(child), set_image_helper, &imagew); |