]> spindle.queued.net Git - midori/commitdiff
Add gcr version to about:version
authorChristian Dywan <christian@twotoasts.de>
Thu, 19 Jul 2012 20:27:50 +0000 (22:27 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 19 Jul 2012 20:27:50 +0000 (22:27 +0200)
midori/midori-view.c
wscript

index f7297020718ca45719ed7f1253e9a3127d163a20..f50dfbff44313203b0c446bc8d51ce834ce2ea3f 100644 (file)
@@ -4397,6 +4397,7 @@ midori_view_set_uri (MidoriView*  view,
                 static char const * const version_format_strings[] = {
                     " &nbsp; libsoup %s</td></tr>",
                     "<tr><td>cairo</td><td>%s ", "(%s)</td></tr>",
+                    "<tr><td>gcr</td><td>%s</td></tr>",
                     "<tr><td>granite</td><td>%s</td></tr>",
                     "<tr><td>libnotify</td><td>%s</td></tr>",
                     "<tr><td>single instance</td><td>%s</td></tr>",
@@ -4404,9 +4405,10 @@ midori_view_set_uri (MidoriView*  view,
                     "<tr><td>Identification</td><td>%s</td></tr>",
                     "<tr><td>Video&nbsp;Formats</td><td>%s</td></tr>",
                 };
-                char const *  version_strings[] = {
+                gchar const* version_strings[] = {
                     LIBSOUP_VERSION,
                     CAIRO_VERSION_STRING, cairo_version_string (),
+                    GCR_VERSION,
                     GRANITE_VERSION,
                     LIBNOTIFY_VERSION,
                     #ifdef HAVE_HILDON_2_2
@@ -4421,9 +4423,8 @@ midori_view_set_uri (MidoriView*  view,
                     platform, sys_name, architecture ? architecture : "", ident,
                     video_formats,
                 };
-                int i = 0;
-                GString * tmp = g_string_new("");;
-
+                gsize i = 0;
+                GString * tmp = g_string_new ("");
                 GString* more = g_string_new ("");
                 list_netscape_plugins (more, js_context);
                 list_about_uris (more);
diff --git a/wscript b/wscript
index 48dd56931ee5a2d208b5579e5574c7b13faa289d..45d46f2265c8d910d0e5428aca5c50180d05b5d9 100644 (file)
--- a/wscript
+++ b/wscript
@@ -182,9 +182,11 @@ def configure (conf):
         return conf.env['HAVE_' + var]
 
     if option_enabled ('gtk3'):
-        check_pkg ('gcr-3', '2.32', mandatory=False)
+        gcr_pkg = 'gcr-3'
     else:
-        check_pkg ('gcr-3-gtk2', '2.32', mandatory=False)
+        gcr_pkg = 'gcr-3-gtk2'
+    check_pkg (gcr_pkg, '2.32', mandatory=False)
+    conf.define ('GCR_VERSION', ['No',conf.check_cfg(modversion=gcr_pkg)][conf.env['HAVE_GCR'] == 1])
 
     if option_enabled ('unique'):
         if option_enabled('gtk3'): unique_pkg = 'unique-3.0'