Omit micro version and arch from ident string

This commit is contained in:
Christian Dywan 2010-02-20 22:28:52 +01:00
parent 9ae1d173d1
commit 7580ecad8e

View file

@ -1188,7 +1188,7 @@ get_sys_name (void)
{ {
struct utsname name; struct utsname name;
if (uname (&name) != -1) if (uname (&name) != -1)
sys_name = g_strdup_printf ("%s %s", name.sysname, name.machine); sys_name = name.sysname;
else else
sys_name = "Unix"; sys_name = "Unix";
} }
@ -1214,15 +1214,10 @@ generate_ident_string (MidoriIdentity identify_as)
const gchar* os = const gchar* os =
#if HAVE_OSX #if HAVE_OSX
/* #if defined (HAVE_X86) */ "Mac OS X";
"Intel Mac OS X";
/* #else
"PPC Mac OS X";
#endif */
#elif defined (G_OS_UNIX) #elif defined (G_OS_UNIX)
get_sys_name (); get_sys_name ();
#elif defined (G_OS_WIN32) #elif defined (G_OS_WIN32)
// FIXME: Windows NT version
"Windows"; "Windows";
#else #else
"Unknown"; "Unknown";
@ -1230,8 +1225,7 @@ generate_ident_string (MidoriIdentity identify_as)
const gchar* appname = "Midori/" const gchar* appname = "Midori/"
G_STRINGIFY (MIDORI_MAJOR_VERSION) "." G_STRINGIFY (MIDORI_MAJOR_VERSION) "."
G_STRINGIFY (MIDORI_MINOR_VERSION) "." G_STRINGIFY (MIDORI_MINOR_VERSION);
G_STRINGIFY (MIDORI_MICRO_VERSION);
const gchar* lang = pango_language_to_string (gtk_get_default_language ()); const gchar* lang = pango_language_to_string (gtk_get_default_language ());