diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2010-01-07 12:17:45 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2010-01-07 12:17:45 -0200 |
commit | ca5a3e84296a34c2391374942001cfaf1d8395a6 (patch) | |
tree | 349419531630e3a1cce9357efc81eab4a1d251fd /hardinfo2 | |
parent | 20df01221357dbc007688aa4017adb9405ee2efe (diff) |
Show more relevant information on Summary->Computer->Graphics
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/computer.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/hardinfo2/computer.c b/hardinfo2/computer.c index 8d3f4def..34696004 100644 --- a/hardinfo2/computer.c +++ b/hardinfo2/computer.c @@ -537,10 +537,17 @@ gchar *get_os(void) return g_strdup(computer->os->distro); } -gchar *get_display_vendor(void) +gchar *get_display_summary(void) { scan_display(FALSE); - return g_strdup(computer->display->ogl_vendor); + + return g_strdup_printf("%dx%d\n" + "%s\n" + "%s", + computer->display->width, + computer->display->height, + computer->display->ogl_renderer, + computer->display->vendor); } gchar *get_kernel_module_description(gchar *module) @@ -573,7 +580,7 @@ ShellModuleMethod *hi_exported_methods(void) static ShellModuleMethod m[] = { {"getOSKernel", get_os_kernel}, {"getOS", get_os}, - {"getDisplayVendor", get_display_vendor}, + {"getDisplaySummary", get_display_summary}, {"getAudioCards", get_audio_cards}, {"getKernelModuleDescription", get_kernel_module_description}, {NULL} @@ -619,7 +626,7 @@ gchar *hi_module_get_summary(void) "Icon=module.png\n" "[Graphics]\n" "Icon=monitor.png\n" - "Method=computer::getDisplayVendor\n" + "Method=computer::getDisplaySummary\n" "[Storage]\n" "Icon=hdd.png\n" "Method=devices::getStorageDevices\n" |