gchar* script;
GjsValue* elements;
- g_return_val_if_fail (gjs_value_is_valid (value), NULL);
+ g_return_val_if_fail (gjs_value_is_object (value), NULL);
g_return_val_if_fail (name, NULL);
script = g_strdup_printf ("return this.getElementsByTagName ('%s');", name);
See the file COPYING for the full license text.
*/
+#if HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
#include "main.h"
#include "sokoke.h"
#include <string.h>
#include <gtk/gtk.h>
-#if HAVE_CONFIG_H
- #include "config.h"
-#endif
-
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
g_object_unref (factory);
}
-static void
-locale_init (void)
-{
-#ifdef ENABLE_NLS
- bindtextdomain (GETTEXT_PACKAGE, MIDORI_LOCALEDIR);
- bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
- textdomain (GETTEXT_PACKAGE);
-#endif
-}
-
static MidoriWebSettings*
settings_new_from_file (const gchar* filename)
{
gchar* homepage;
MidoriWebList* search_engines;
- locale_init ();
+ #ifdef ENABLE_NLS
+ bindtextdomain (GETTEXT_PACKAGE, MIDORI_LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+ #endif
g_set_application_name (_("Midori"));
/* Parse cli options */
See the file COPYING for the full license text.
*/
-#include "config.h"
+#if HAVE_CONFIG_H
+ #include <config.h>
+#endif
#include "midori-addons.h"
#include "sokoke.h"
#include "gjs.h"
+
#include <webkit/webkit.h>
#include <JavaScriptCore/JavaScript.h>
#include <glib/gi18n.h>