Remove conditionals to disable Toolbar Editor on Hildon

This commit is contained in:
Christian Dywan 2010-02-06 17:37:15 +01:00
parent 9b468c5654
commit 8414836c76

View file

@ -13,8 +13,6 @@
#include "config.h" #include "config.h"
#if !HAVE_HILDON
typedef struct typedef struct
{ {
GtkWidget *dialog; GtkWidget *dialog;
@ -604,24 +602,16 @@ static void tb_editor_activate_cb(MidoriExtension *extension, MidoriApp *app)
g_object_unref(browsers); g_object_unref(browsers);
} }
#endif
MidoriExtension *extension_init(void) MidoriExtension *extension_init(void)
{ {
MidoriExtension* extension = g_object_new(MIDORI_TYPE_EXTENSION, MidoriExtension* extension = g_object_new(MIDORI_TYPE_EXTENSION,
"name", _("Toolbar Editor"), "name", _("Toolbar Editor"),
#if !HAVE_HILDON
"description", _("Easily edit the toolbar layout"), "description", _("Easily edit the toolbar layout"),
"version", "0.1", "version", "0.1",
#else
"description", _("Not available on this platform"),
#endif
"authors", "Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>", "authors", "Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>",
NULL); NULL);
#if !HAVE_HILDON
g_signal_connect(extension, "activate", G_CALLBACK(tb_editor_activate_cb), NULL); g_signal_connect(extension, "activate", G_CALLBACK(tb_editor_activate_cb), NULL);
#endif
return extension; return extension;
} }