pidgin/gtkplugin.c

changeset 26756
874b154f4220
parent 23180
5d6a0a35837f
child 29500
1e0464dad92b
equal deleted inserted replaced
26732:caf9b30352f5 26756:874b154f4220
133 continue; 133 continue;
134 } 134 }
135 135
136 gtk_list_store_append (ls, &iter); 136 gtk_list_store_append (ls, &iter);
137 137
138 name = g_markup_escape_text(plug->info->name ? _(plug->info->name) : g_basename(plug->path), -1); 138 if (plug->info->name) {
139 name = g_markup_escape_text(_(plug->info->name), -1);
140 } else {
141 char *tmp = g_path_get_basename(plug->path);
142 name = g_markup_escape_text(tmp, -1);
143 g_free(tmp);
144 }
139 version = g_markup_escape_text(purple_plugin_get_version(plug), -1); 145 version = g_markup_escape_text(purple_plugin_get_version(plug), -1);
140 summary = g_markup_escape_text(purple_plugin_get_summary(plug), -1); 146 summary = g_markup_escape_text(purple_plugin_get_summary(plug), -1);
141 147
142 desc = g_strdup_printf("<b>%s</b> %s\n%s", name, 148 desc = g_strdup_printf("<b>%s</b> %s\n%s", name,
143 version, 149 version,

mercurial