pidgin/pidginabout.c

changeset 41008
dc06703548a1
parent 40830
628ec6b8efd4
child 41030
ec8b76f3bf0a
equal deleted inserted replaced
41007:90d2dee9b3dc 41008:dc06703548a1
423 } 423 }
424 424
425 static void 425 static void
426 pidgin_about_dialog_load_plugin_search_paths(PidginAboutDialog *about) { 426 pidgin_about_dialog_load_plugin_search_paths(PidginAboutDialog *about) {
427 GtkTreeIter section; 427 GtkTreeIter section;
428 GList *path = NULL; 428 GList *paths = NULL;
429 gchar *markup = NULL; 429 gchar *markup = NULL;
430 GPluginManager *manager = gplugin_manager_get_default();
430 431
431 /* create the section */ 432 /* create the section */
432 markup = g_strdup_printf("<b>%s</b>", _("Plugin Search Paths")); 433 markup = g_strdup_printf("<b>%s</b>", _("Plugin Search Paths"));
433 gtk_tree_store_append(about->build_info_store, &section, NULL); 434 gtk_tree_store_append(about->build_info_store, &section, NULL);
434 gtk_tree_store_set(about->build_info_store, &section, 435 gtk_tree_store_set(about->build_info_store, &section,
435 0, markup, 436 0, markup,
436 -1); 437 -1);
437 g_free(markup); 438 g_free(markup);
438 439
439 /* add the search paths */ 440 /* add the search paths */
440 for(path = gplugin_manager_get_paths(); path != NULL; path = path->next) { 441 paths = gplugin_manager_get_paths(manager);
442 while(paths != NULL) {
441 GtkTreeIter iter; 443 GtkTreeIter iter;
442 444
443 gtk_tree_store_append(about->build_info_store, &iter, &section); 445 gtk_tree_store_append(about->build_info_store, &iter, &section);
444 gtk_tree_store_set(about->build_info_store, &iter, 446 gtk_tree_store_set(about->build_info_store, &iter,
445 0, (gchar*)path->data, 447 0, (gchar*)(paths->data),
446 -1); 448 -1);
449
450 paths = paths->next;
447 } 451 }
448 } 452 }
449 453
450 static void 454 static void
451 pidgin_about_dialog_load_conf_path_info(PidginAboutDialog *about) { 455 pidgin_about_dialog_load_conf_path_info(PidginAboutDialog *about) {

mercurial