Merge lp:~larsu/indicator-messages/lp956147 into lp:indicator-messages/0.3

Proposed by Lars Karlitski
Status: Merged
Approved by: Charles Kerr
Approved revision: 266
Merged at revision: 269
Proposed branch: lp:~larsu/indicator-messages/lp956147
Merge into: lp:indicator-messages/0.3
Diff against target: 22 lines (+1/-4)
1 file modified
src/messages-service.c (+1/-4)
To merge this branch: bzr merge lp:~larsu/indicator-messages/lp956147
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
Review via email: mp+101407@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

Looks good!

I noticed that dbusmenu-glib's menuitem.h has this:

> #define DBUSMENU_MENUITEM_ICON_NAME_BLANK "blank-icon"

so I tweaked the patch to use the symbolic name rather than the string literal.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/messages-service.c'
--- src/messages-service.c 2012-04-05 14:37:12 +0000
+++ src/messages-service.c 2012-04-10 16:11:23 +0000
@@ -29,7 +29,6 @@
29#include <libindicator/indicator-service.h>29#include <libindicator/indicator-service.h>
30#include <gio/gio.h>30#include <gio/gio.h>
31#include <glib/gi18n.h>31#include <glib/gi18n.h>
32#include <gtk/gtk.h>
3332
34#include <libdbusmenu-glib/client.h>33#include <libdbusmenu-glib/client.h>
35#include <libdbusmenu-glib/server.h>34#include <libdbusmenu-glib/server.h>
@@ -665,9 +664,7 @@
665 g_debug("Application Shortcut added: %s", mi != NULL ? dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL) : "none");664 g_debug("Application Shortcut added: %s", mi != NULL ? dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL) : "none");
666 DbusmenuMenuitem * shell = DBUSMENU_MENUITEM(data);665 DbusmenuMenuitem * shell = DBUSMENU_MENUITEM(data);
667 if (mi != NULL) {666 if (mi != NULL) {
668#if GTK_CHECK_VERSION(3, 0, 0)667 dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_ICON_NAME, "blank-icon");
669 dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_ICON_NAME, "");
670#endif
671 dbusmenu_menuitem_child_append(shell, mi);668 dbusmenu_menuitem_child_append(shell, mi);
672 }669 }
673 resort_menu(shell);670 resort_menu(shell);

Subscribers

People subscribed via source and target branches