pidgin/gtkplugin.c

changeset 39919
1d0ce288ca30
parent 39918
1c8e11f9274f
child 40062
d25228fc7b8e
equal deleted inserted replaced
39918:1c8e11f9274f 39919:1d0ce288ca30
851 pauthors = g_markup_escape_text(authors, -1); 851 pauthors = g_markup_escape_text(authors, -1);
852 852
853 markup = g_strdup_printf( 853 markup = g_strdup_printf(
854 "<span size='x-large' weight='bold'>%s</span>\n<b>%s:</b> " 854 "<span size='x-large' weight='bold'>%s</span>\n<b>%s:</b> "
855 "%s\n<b>%s:</b> %s", 855 "%s\n<b>%s:</b> %s",
856 name = g_markup_escape_text(gplugin_plugin_info_get_name(info), 856 name = g_markup_escape_text(gplugin_plugin_info_get_name(info), -1),
857 -1),
858 _("Description"), 857 _("Description"),
859 desc = g_markup_escape_text( 858 desc = g_markup_escape_text(
860 gplugin_plugin_info_get_description(info), -1), 859 gplugin_plugin_info_get_description(info), -1),
861 (g_strv_length((gchar **)authorlist) > 1 ? _("Authors") 860 (authorlist && g_strv_length((gchar **)authorlist) > 1
862 : _("Author")), 861 ? _("Authors")
862 : _("Author")),
863 pauthors); 863 pauthors);
864 864
865 layout = gtk_widget_create_pango_layout(tipwindow, NULL); 865 layout = gtk_widget_create_pango_layout(tipwindow, NULL);
866 pango_layout_set_markup(layout, markup, -1); 866 pango_layout_set_markup(layout, markup, -1);
867 pango_layout_set_wrap(layout, PANGO_WRAP_WORD); 867 pango_layout_set_wrap(layout, PANGO_WRAP_WORD);

mercurial