]> spindle.queued.net Git - midori/commitdiff
Mention why disabled extensions are not available
authorChristian Dywan <christian@twotoasts.de>
Mon, 14 Sep 2009 15:59:43 +0000 (17:59 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 14 Sep 2009 16:26:35 +0000 (18:26 +0200)
extensions/adblock.c
extensions/toolbar-editor.c

index 3624be9a50ef54828ad5e2fde12da6e1b3d4a98d..db33e35f0376540577fa211ba006d11a13b8dddc 100644 (file)
@@ -566,11 +566,18 @@ extension_test (void)
 MidoriExtension*
 extension_init (void)
 {
+    #if !WEBKIT_CHECK_VERSION (1, 1, 14)
+    gchar* desc = g_strdup_printf (_("Not available: %s required"),
+                                   "WebKitGTK+ 1.1.14");
+    #endif
+
     MidoriExtension* extension = g_object_new (MIDORI_TYPE_EXTENSION,
         "name", _("Advertisement blocker"),
-        "description", _("Block advertisements according to a filter list"),
         #if WEBKIT_CHECK_VERSION (1, 1, 14)
+        "description", _("Block advertisements according to a filter list"),
         "version", "0.1",
+        #else
+        "description", desc,
         #endif
         "authors", "Christian Dywan <christian@twotoasts.de>",
         NULL);
@@ -579,6 +586,8 @@ extension_init (void)
 
     g_signal_connect (extension, "activate",
         G_CALLBACK (adblock_activate_cb), NULL);
+    #else
+    g_free (desc);
     #endif
 
     return extension;
index 2a39057adec3938a3fe37c6adfc6413f8c02ddd6..13c51b8172c8cf65e6c97070a8a8a2d7b0fc384b 100644 (file)
@@ -610,9 +610,11 @@ MidoriExtension *extension_init(void)
 {
        MidoriExtension* extension = g_object_new(MIDORI_TYPE_EXTENSION,
                "name", _("Toolbar Editor"),
-               "description", _("Easily edit the toolbar layout"),
                #if !HAVE_HILDON
+               "description", _("Easily edit the toolbar layout"),
                "version", "0.1",
+               #else
+               "description", _("Not available on this platform"),
                #endif
                "authors", "Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>",
                NULL);