Also introduce #define MIDORI_MODULE_PREFIX.
Fixes: https://bugs.launchpad.net/midori/+bug/884395
*/
#include <midori/midori.h>
+#include <glib/gstdio.h>
-#include <midori/sokoke.h>
#include "config.h"
-
-#include <glib/gstdio.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
/* This extensions add support for user addons: userscripts and userstyles */
#include <midori/midori.h>
-#include <midori/sokoke.h>
#include <glib/gstdio.h>
#include "config.h"
-
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
See the file COPYING for the full license text.
*/
-#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <midori/midori.h>
-#include <midori/gtkiconentry.h>
-#include "katze/gtk3-compat.h"
#include <webkit/webkit.h>
#include <time.h>
*/
#include <midori/midori.h>
-#include <midori/sokoke.h>
static void
copy_tabs_apply_cb (GtkWidget* menuitem,
#include "feed-panel.h"
#include <midori/midori.h>
-#include <midori/sokoke.h>
#include <time.h>
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#define STOCK_FEED_PANEL "feed-panel"
struct _FeedPanel
#define MINCHARS 2
#include <midori/midori.h>
+#include <glib/gstdio.h>
#include "config.h"
-#include "midori/sokoke.h"
-
-#include <glib/gstdio.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <midori/midori.h>
-#include <midori/sokoke.h>
#include "config.h"
static void
*/
#include <midori/midori.h>
-#include <midori/sokoke.h>
typedef struct
{
*/
#include <midori/midori.h>
-#include <midori/sokoke.h>
#define STOCK_TAB_PANEL "tab-panel"
*/
#include <midori/midori.h>
-#include <midori/sokoke.h>
static void
tabs_minimized_app_add_browser_cb (MidoriApp* app,
*/
#include <midori/midori.h>
-
-#include <midori/sokoke.h>
-#include "config.h"
-
#include <glib/gstdio.h>
#include <stdlib.h>
+
+#include "config.h"
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifndef __GTK_ICON_ENTRY_H__
#define __GTK_ICON_ENTRY_H__
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#include <gio/gio.h>
#include <gtk/gtk.h>
See the file COPYING for the full license text.
*/
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
-#include "midori.h"
+#include "midori-app.h"
#include "midori-array.h"
#include "midori-bookmarks.h"
+#include "midori-extension.h"
#include "midori-extensions.h"
#include "midori-history.h"
#include "midori-transfers.h"
+#include "midori-panel.h"
+#include "midori-platform.h"
+#include "midori-preferences.h"
#include <midori/midori-core.h>
-#include "sokoke.h"
-
+#include <config.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
+#include <glib/gi18n-lib.h>
#include <webkit/webkit.h>
#include <sqlite3.h>
#include <gdk/gdkx.h>
#endif
-#ifdef G_OS_WIN32
- #define LIBPREFIX ""
-#else
- #define LIBPREFIX "lib"
-#endif
-
static gchar*
build_config_filename (const gchar* filename)
{
g_unlink (path);
/* Form History database, written by the extension */
katze_assign (path, g_build_filename (sokoke_set_config_dir (NULL),
- "extensions", LIBPREFIX "formhistory." G_MODULE_SUFFIX, "forms.db", NULL));
+ "extensions", MIDORI_MODULE_PREFIX "formhistory." G_MODULE_SUFFIX, "forms.db", NULL));
if (sqlite3_open (path, &db) == SQLITE_OK)
{
sqlite3_exec (db, "DELETE FROM forms", NULL, NULL, NULL);
#endif
#include "midori-app.h"
-#include "midori-stock.h"
-#include "sokoke.h"
+#include "midori-platform.h"
#include <string.h>
#include <gtk/gtk.h>
See the file COPYING for the full license text.
*/
-#include "gtk3-compat.h"
-
#include "midori-browser.h"
#include "midori-array.h"
#include "midori-panel.h"
#include "midori-locationaction.h"
#include "midori-searchaction.h"
-#include "midori-stock.h"
#include "midori-findbar.h"
#include "midori-transferbar.h"
#include "midori-platform.h"
#include "midori-core.h"
-#include "gtkiconentry.h"
#include "marshal.h"
-#include "sokoke.h"
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <gdk/gdkkeysyms.h>
-#include <gtk/gtk.h>
#include <string.h>
+
+#include <config.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sqlite3.h>
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
struct _MidoriBrowser
{
#if HAVE_HILDON
#include "midori-extension.h"
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#include <katze/katze.h>
-#include "sokoke.h"
+#include "midori-platform.h"
#include <glib/gi18n.h>
G_DEFINE_TYPE (MidoriExtension, midori_extension, G_TYPE_OBJECT);
{
gchar* filename = g_object_get_data (G_OBJECT (extension), "filename");
gchar* folder;
- if (g_str_has_prefix (filename, "lib"))
- filename = &filename[strlen ("len")];
+ if (g_str_has_prefix (filename, MIDORI_MODULE_PREFIX))
+ filename = &filename[strlen (MIDORI_MODULE_PREFIX)];
if (g_str_has_suffix (filename, G_MODULE_SUFFIX))
filename = g_strndup (filename,
strlen (filename) - strlen ("." G_MODULE_SUFFIX));
#include "midori-locationaction.h"
-#include "gtkiconentry.h"
#include "marshal.h"
-#include "sokoke.h"
#include "midori-browser.h"
#include "midori-searchaction.h"
#include "midori-platform.h"
#include <midori/midori-core.h>
+#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
#include "midori-panel.h"
-#include "midori-view.h"
-
#include "midori-browser.h"
+#include "midori-platform.h"
+#include "midori-view.h"
#include "marshal.h"
-#include "sokoke.h"
#include <glib/gi18n.h>
#include "config.h"
-
#ifdef HAVE_HILDON_2_2
#include <hildon/hildon.h>
#endif
#ifndef __MIDORI_PLATFORM_H__
#define __MIDORI_PLATFORM_H__ 1
-#include <gtk/gtk.h>
+#include "midori/midori-stock.h"
+#include "katze/gtk3-compat.h"
+#include "midori/gtkiconentry.h"
+#include "midori/sokoke.h"
/* Common behavior modifiers */
#define MIDORI_MOD_NEW_WINDOW(state) (state & GDK_SHIFT_MASK)
&& MIDORI_MOD_NEW_TAB(((GdkEventButton*)evt)->state)) \
|| (((GdkEventButton*)evt)->button == 2))
+#ifndef G_OS_WIN32
+ #define MIDORI_MODULE_PREFIX "lib"
+#else
+ #define MIDORI_MODULE_PREFIX ""
+#endif
+
+
#endif /* !__MIDORI_PLATFORM_H__ */
#include "midori-preferences.h"
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
-#include "sokoke.h"
-#include "midori-stock.h"
+#include "midori-platform.h"
#include <string.h>
#include <glib/gi18n.h>
#include <libsoup/soup-cache.h>
#endif
+#include <config.h>
#if HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif
#include "midori-searchaction.h"
-#include "gtk3-compat.h"
-#include "gtkiconentry.h"
#include "marshal.h"
-#include "sokoke.h"
#include "midori-platform.h"
#include "midori-core.h"
+#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
#ifndef __MIDORI_STOCK_H__
#define __MIDORI_STOCK_H__ 1
-#include <gtk/gtk.h>
-
/* Custom stock items
We should distribute these
See the file COPYING for the full license text.
*/
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
-#include "gtk3-compat.h"
#include "midori-view.h"
-#include "midori-stock.h"
#include "midori-browser.h"
#include "midori-searchaction.h"
#include "midori-platform.h"
#include "midori-core.h"
#include "marshal.h"
-#include "sokoke.h"
#include <string.h>
#include <stdlib.h>
#include <gdk/gdkkeysyms.h>
#include <webkit/webkit.h>
+#include <config.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-
#ifndef G_OS_WIN32
#include <sys/utsname.h>
#endif
#include <glib/gstdio.h>
#include <string.h>
+#include <config.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#if defined (G_OS_UNIX)
#include <sys/utsname.h>
#endif
#include "midori-panel.h"
#include "midori-preferences.h"
#include "midori-searchaction.h"
-#include "midori-stock.h"
#include "midori-view.h"
#include "midori-viewable.h"
#include "midori-websettings.h"
#ifndef __SYLPH_SOCKET_H__
#define __SYLPH_SOCKET_H__
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
#include <glib.h>
+#include "config.h"
#if HAVE_NETDB_H
# include <netdb.h>
#endif
#include "sokoke.h"
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
-#include "midori-stock.h"
#include "midori-core.h"
+#include "midori-platform.h"
+#include <config.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
*/
#include "midori-bookmarks.h"
-#include "gtk3-compat.h"
#include "midori-array.h"
#include "midori-app.h"
#include "midori-browser.h"
-#include "midori-stock.h"
+#include "midori-platform.h"
#include "midori-view.h"
#include "midori-viewable.h"
-#include "sokoke.h"
-#include "gtkiconentry.h"
-
#include <glib/gi18n.h>
#include <string.h>
#ifndef __MIDORI_BOOKMARKS_H__
#define __MIDORI_BOOKMARKS_H__
-#include "config.h"
-
#include <sqlite3.h>
#include <gtk/gtk.h>
#include <katze/katze.h>
#include "midori-app.h"
#include "midori-extension.h"
-#include "midori-stock.h"
+#include "midori-platform.h"
#include "midori-viewable.h"
#include "midori-core.h"
-#include "sokoke.h"
#include <glib/gi18n.h>
struct _MidoriExtensions
*/
#include "midori-history.h"
-#include "gtk3-compat.h"
#include "midori-app.h"
#include "midori-array.h"
#include "midori-browser.h"
-#include "midori-stock.h"
+#include "midori-platform.h"
#include "midori-view.h"
#include "midori-viewable.h"
-#include "sokoke.h"
-#include "gtkiconentry.h"
-
#include <glib/gi18n.h>
#include <string.h>
-
#include <gdk/gdkkeysyms.h>
#define COMPLETION_DELAY 200
#include "midori-app.h"
#include "midori-browser.h"
-#include "midori-stock.h"
+#include "midori-platform.h"
#include "midori-view.h"
-#include "sokoke.h"
#include <glib/gi18n.h>
struct _MidoriTransfers
See the file COPYING for the full license text.
*/
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#include "midori.h"
-#include "midori-stock.h"
-#include "sokoke.h"
static void
browser_create (void)
See the file COPYING for the full license text.
*/
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#include "midori.h"
const gpointer magic = (gpointer)0xdeadbeef;
See the file COPYING for the full license text.
*/
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
-#include "sokoke.h"
#include <midori/midori.h>
#define SM "http://www.searchmash.com/search/"
See the file COPYING for the full license text.
*/
-#if HAVE_CONFIG_H
- #include <config.h>
-#endif
-
#include "midori.h"
#include "midori-bookmarks.h"
-#include "sokoke.h"
typedef struct
{
*/
#include "midori-findbar.h"
-#include "gtk3-compat.h"
#include "midori-browser.h"
-#include "gtkiconentry.h"
-#include "sokoke.h"
+#include "midori-platform.h"
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
-#if HAVE_CONFIG_H
- #include "config.h"
-#endif
+#include "config.h"
struct _MidoriFindbar
{