From 55e4c2c2ce34acfb18fff3e806ddd580d46b1822 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 14 Jul 2010 10:04:40 +0200 Subject: Add "Don't drop debian/source/*" to the changelog --- debian/changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c86d5b9..d756a9e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ libindicator (0.3.9-1) unstable; urgency=low * Merging new upstream release and some changes from Ubuntu. + * Don't drop debian/source/* - -- Evgeni Golov Wed, 14 Jul 2010 10:02:55 +0200 + -- Evgeni Golov Wed, 14 Jul 2010 10:04:21 +0200 libindicator (0.3.9-0ubuntu2) maverick; urgency=low -- cgit v1.2.3 From 8b7fa3f649123d88bc1a036795fd9a85d6565ab4 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 14 Jul 2010 10:07:48 +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 d756a9e..b11f3a9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ libindicator (0.3.9-1) unstable; urgency=low * Merging new upstream release and some changes from Ubuntu. * Don't drop debian/source/* + * Standards-Version: 3.9.0 - -- Evgeni Golov Wed, 14 Jul 2010 10:04:21 +0200 + -- Evgeni Golov Wed, 14 Jul 2010 10:07:36 +0200 libindicator (0.3.9-0ubuntu2) maverick; urgency=low diff --git a/debian/control b/debian/control index 5e1dfe8..00e2d8f 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 5.0), libtool, intltool, gtk-doc-tools -Standards-Version: 3.8.4 +Standards-Version: 3.9.0 Homepage: https://launchpad.net/libindicator Vcs-Bzr: http://bzr.debian.org/bzr/pkg-ayatana/libindicator/debian Vcs-Browser: http://bzr.debian.org/loggerhead/pkg-ayatana/libindicator/debian -- cgit v1.2.3 From bec9f56f7d1eae4f1cdcecf572babfec58e72d32 Mon Sep 17 00:00:00 2001 From: Karl Date: Mon, 9 Aug 2010 10:41:11 +0100 Subject: Added absolute filename fixes --- libindicator/indicator-image-helper.c | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index 2492227..2ff97e6 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -30,6 +30,9 @@ static void refresh_image (GtkImage * image) { g_return_if_fail(GTK_IS_IMAGE(image)); + gchar * icon_filename = NULL; + GtkIconInfo * icon_info = NULL; + gint icon_size = 22; GIcon * icon_names = (GIcon *)g_object_get_data(G_OBJECT(image), INDICATOR_NAMES_DATA); g_return_if_fail(icon_names != NULL); @@ -38,23 +41,29 @@ refresh_image (GtkImage * image) GtkIconTheme * default_theme = gtk_icon_theme_get_default(); g_return_if_fail(default_theme != NULL); - gint icon_size = 22; - /* Look through the themes for that icon */ - GtkIconInfo * icon_info = gtk_icon_theme_lookup_by_gicon(default_theme, icon_names, icon_size, 0); + icon_info = gtk_icon_theme_lookup_by_gicon(default_theme, icon_names, icon_size, 0); if (icon_info == NULL) { - g_warning("Unable to find icon in theme."); - return; + /* Try using the second item in the names, which should be the original filename supplied */ + const gchar * const * names = g_themed_icon_get_names(G_THEMED_ICON( icon_names )); + if (names) { + icon_filename = g_strdup(names[1]); + } else { + g_warning("Unable to find icon\n"); + return; + } + } else { + /* Grab the filename */ + icon_filename = (gchar *)gtk_icon_info_get_filename(icon_info); } - - /* Grab the filename */ - const gchar * icon_filename = gtk_icon_info_get_filename(icon_info); - g_return_if_fail(icon_filename != NULL); /* An error because we shouldn't get info without a filename */ + g_return_if_fail(icon_filename != NULL); /* An error because we don't have a filename */ /* Build a pixbuf */ GError * error = NULL; GdkPixbuf * pixbuf = gdk_pixbuf_new_from_file(icon_filename, &error); - gtk_icon_info_free(icon_info); + + if (icon_info != NULL) + gtk_icon_info_free(icon_info); if (pixbuf == NULL) { g_error("Unable to load icon from file '%s' because: %s", icon_filename, error == NULL ? "I don't know" : error->message); @@ -126,15 +135,16 @@ indicator_image_helper_update (GtkImage * image, const gchar * name) g_return_if_fail(name != NULL); g_return_if_fail(name[0] != '\0'); g_return_if_fail(image != NULL); + gboolean seen_previously = FALSE; /* Build us a GIcon */ GIcon * icon_names = g_themed_icon_new_with_default_fallbacks(name); + g_warn_if_fail(icon_names != NULL); g_return_if_fail(icon_names != NULL); - gboolean seen_previously = (g_object_get_data(G_OBJECT(image), INDICATOR_NAMES_DATA) != NULL); - /* Attach our names to the image */ g_object_set_data_full(G_OBJECT(image), INDICATOR_NAMES_DATA, icon_names, g_object_unref); + seen_previously = (g_object_get_data(G_OBJECT(image), INDICATOR_NAMES_DATA) != NULL); /* Put the pixbuf in */ refresh_image(image); -- cgit v1.2.3 From 53265a332a1d59a2f0867207fcd81926bf40ff6c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 Aug 2010 14:40:42 -0500 Subject: 0.3.11 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 7f17df0..23350c6 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,10 @@ -AC_INIT(libindicator, 0.3.10, ted@canonical.com) +AC_INIT(libindicator, 0.3.11, ted@canonical.com) AC_PREREQ(2.53) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(libindicator, 0.3.10) +AM_INIT_AUTOMAKE(libindicator, 0.3.11) AM_MAINTAINER_MODE m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES]) -- cgit v1.2.3 From 1c80632cb5c3aa06e9788eb35122d3bd7e717e08 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 Aug 2010 14:42:49 -0500 Subject: releasing version 0.3.11-0ubuntu1~ppa1 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 67fb489..8eccf0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,9 @@ -libindicator (0.3.11-0ubuntu1~ppa1) UNRELEASED; urgency=low +libindicator (0.3.11-0ubuntu1~ppa1) maverick; urgency=low * New upstream release. * Allowing absolute paths in the image name (LP: #564034) - -- Ted Gould Thu, 12 Aug 2010 14:41:15 -0500 + -- Ted Gould Thu, 12 Aug 2010 14:42:46 -0500 libindicator (0.3.10-0ubuntu1) maverick; urgency=low -- cgit v1.2.3