[Xfce4-commits] r30225 - in xfce4-appfinder/trunk: . src

Jannis Pohlmann jannis at xfce.org
Thu Jul 9 12:11:20 CEST 2009


On Thu, 9 Jul 2009 11:09:32 +0200
Nick Schermer <nickschermer at gmail.com> wrote:

> My take on this one:
> 
> tooltip_str = g_string_sized_new (512);
> 
> categories = xfce_menu_item_get_categories (item);
>  if (categories != NULL)
>    {
>       g_string_append (tooltip_str, _("<b>Categories:</b> "));

I used _("<b>Categories:</b> %s") in the original code because
translators might want to change the place where the categories list is
inserted.

> command = xfce_menu_item_get_command (item);
> if (command != NULL && *command != '\0')
>   {
>     if (categories != NULL)
>        g_string_append_c (tooltip_str, '\n');

Yeah, this is something I forgot about. Let me rework the code a little
bit.

  - Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20090709/6ed8e8c0/attachment.pgp>


More information about the Xfce4-dev mailing list