| 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, §ion, NULL); |
434 gtk_tree_store_append(about->build_info_store, §ion, NULL); |
| 434 gtk_tree_store_set(about->build_info_store, §ion, |
435 gtk_tree_store_set(about->build_info_store, §ion, |
| 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, §ion); |
445 gtk_tree_store_append(about->build_info_store, &iter, §ion); |
| 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) { |