diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-06-01 21:48:17 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-06-01 21:48:17 +0000 |
commit | 0272ec5dd3fcaef37fafedb23d14d1d89db712b6 (patch) | |
tree | c4da1f0931d1db98bb5739a82e5942139a36cd1d /gtk/plugins_dlg.c | |
parent | a02b8fb24786bee85e2cca4b82489aa332f0150d (diff) |
Show the plugin paths in Help→About→Plugins. Add a "-G plugins" option
to TShark which dumps a list of plugins.
svn path=/trunk/; revision=37512
Diffstat (limited to 'gtk/plugins_dlg.c')
-rw-r--r-- | gtk/plugins_dlg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/plugins_dlg.c b/gtk/plugins_dlg.c index d6a38ca5ab..015ab57fa5 100644 --- a/gtk/plugins_dlg.c +++ b/gtk/plugins_dlg.c @@ -39,6 +39,7 @@ /* * Fill the list widget with a list of the plugin modules. + * XXX - We might want to combine this with plugins_dump_all(). */ static void plugins_scan(GtkWidget *list) @@ -80,7 +81,7 @@ plugins_scan(GtkWidget *list) type = g_string_append(type, "codec"); } simple_list_append(list, 0, pt_plug->name, 1, pt_plug->version, - 2, type->str, -1); + 2, type->str, 3, g_module_name(pt_plug->handle), -1); g_string_free(type, TRUE); } #endif @@ -91,7 +92,7 @@ plugins_scan(GtkWidget *list) type = g_string_new(""); type = g_string_append(type, "lua script"); - simple_list_append(list, 0, lua_plug->name, 1, lua_plug->version, 2, type->str, -1); + simple_list_append(list, 0, lua_plug->name, 1, lua_plug->version, 2, type->str, 3, lua_plug->filename, -1); g_string_free(type, TRUE); } #endif @@ -103,14 +104,14 @@ about_plugins_page_new(void) { GtkWidget *scrolledwindow; GtkWidget *plugins_list; - const gchar *titles[] = {"Name", "Version", "Type"}; + const gchar *titles[] = {"Name", "Version", "Type", "Path"}; scrolledwindow = scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow), GTK_SHADOW_IN); - plugins_list = simple_list_new(3 , titles); + plugins_list = simple_list_new(4, titles); plugins_scan(plugins_list); gtk_container_add(GTK_CONTAINER(scrolledwindow), plugins_list); |