aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-04-04 18:57:15 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-04-04 18:57:15 +0200
commitd0eae41a0c2f1d70e00eba6961020657fdaaa2a4 (patch)
treecb9bdca47866a605ab276c9e7174601a0e151071
parent3891a6cbb69599fe8de9b11d70cd058ecefb9722 (diff)
downloadayatana-indicator-messages-d0eae41a0c2f1d70e00eba6961020657fdaaa2a4.tar.gz
ayatana-indicator-messages-d0eae41a0c2f1d70e00eba6961020657fdaaa2a4.tar.bz2
ayatana-indicator-messages-d0eae41a0c2f1d70e00eba6961020657fdaaa2a4.zip
Workaround for lp #956147: don't show empty icons in the gtk2 version
-rw-r--r--src/messages-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index c975df1..8f636b5 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -29,6 +29,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libindicator/indicator-service.h>
#include <gio/gio.h>
#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#include <libdbusmenu-glib/client.h>
#include <libdbusmenu-glib/server.h>
@@ -620,7 +621,9 @@ server_shortcut_added (AppMenuItem * appitem, DbusmenuMenuitem * mi, gpointer da
g_debug("Application Shortcut added: %s", mi != NULL ? dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL) : "none");
DbusmenuMenuitem * shell = DBUSMENU_MENUITEM(data);
if (mi != NULL) {
+#if GTK_CHECK_VERSION(3, 0, 0)
dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_ICON_NAME, "");
+#endif
dbusmenu_menuitem_child_append(shell, mi);
}
resort_menu(shell);