On Thu, 9 Jul 2009 11:09:32 +0200
Nick Schermer <
nickschermer@...> 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
_______________________________________________
Xfce4-dev mailing list
Xfce4-dev@...
http://foo-projects.org/mailman/listinfo/xfce4-dev