#endif
#include <glib.h>
+
+#if !GLIB_CHECK_VERSION (2, 14, 0)
+ #define G_PARAM_STATIC_STRINGS \
+ (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
+#endif
+
#if GLIB_CHECK_VERSION (2, 16, 0)
#include <gio/gio.h>
#endif
"Settings",
"The associated settings",
MIDORI_TYPE_WEB_SETTINGS,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_BOOKMARKS,
"Bookmarks",
"The bookmarks folder, containing all bookmarks",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_TRASH,
"Trash",
"The trash, collecting recently closed tabs and windows",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_SEARCH_ENGINES,
"Search Engines",
"The list of search engines",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_HISTORY,
"History",
"The list of history items",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_EXTENSIONS,
"Extensions",
"The list of extensions",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_BROWSER,
"Browser",
"The current browser",
MIDORI_TYPE_BROWSER,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_BROWSER_COUNT,
"Browser Count",
"The current number of browsers",
0, G_MAXUINT, 0,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}
#if HAVE_UNIQUE
gobject_class->set_property = midori_browser_set_property;
gobject_class->get_property = midori_browser_get_property;
- flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+ flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
g_object_class_install_property (gobject_class,
PROP_MENUBAR,
"Menubar",
"The menubar",
GTK_TYPE_MENU_BAR,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_NAVIGATIONBAR,
"Navigationbar",
"The navigationbar",
GTK_TYPE_TOOLBAR,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_NOTEBOOK,
"Notebook",
"The notebook containing the views",
GTK_TYPE_NOTEBOOK,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_PANEL,
"Panel",
"The side panel embedded in the browser",
MIDORI_TYPE_PANEL,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_URI,
"URI",
"The current URI",
"about:blank",
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_TAB,
"Tab",
"The current tab",
GTK_TYPE_WIDGET,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_LOAD_STATUS,
"The current load status",
MIDORI_TYPE_LOAD_STATUS,
MIDORI_LOAD_FINISHED,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_STATUSBAR,
"Statusbar",
"The statusbar",
GTK_TYPE_STATUSBAR,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* MidoriBrowser:statusbar-text:
"Settings",
"The associated settings",
MIDORI_TYPE_WEB_SETTINGS,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* MidoriBrowser:bookmarks:
"Bookmarks",
"The bookmarks folder, containing all bookmarks",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* MidoriBrowser:trash:
"Trash",
"The trash, collecting recently closed tabs and windows",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* MidoriBrowser:search-engines:
"Search Engines",
"The list of search engines to be used for web search",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* MidoriBrowser:history:
gobject_class->set_property = midori_extension_set_property;
gobject_class->get_property = midori_extension_get_property;
- flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+ flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
g_object_class_install_property (gobject_class,
PROP_NAME,
"Progress",
"The current progress of the action",
0.0, 1.0, 0.0,
- G_PARAM_WRITABLE));
+ G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_SECONDARY_ICON,
"Secondary",
"The stock ID of the secondary icon",
NULL,
- G_PARAM_WRITABLE));
+ G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
}
static void
class->close = midori_panel_close;
- flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+ flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
g_object_class_install_property (gobject_class,
PROP_SHADOW_TYPE,
"Menu",
"Menu to hold panel items",
GTK_TYPE_MENU,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_PAGE,
"Settings",
"Settings instance to provide properties",
MIDORI_TYPE_WEB_SETTINGS,
- G_PARAM_WRITABLE));
+ G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
}
static void
"Search Engines",
"The list of search engines",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_CURRENT_ITEM,
"Current Item",
"The currently selected item",
KATZE_TYPE_ITEM,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_TEXT,
"Text",
"The current text typed in the entry",
NULL,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_DIALOG,
"Dialog",
"A dialog to manage search engines",
GTK_TYPE_DIALOG,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}
static void
gobject_class->set_property = midori_view_set_property;
gobject_class->get_property = midori_view_get_property;
- flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+ flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
g_object_class_install_property (gobject_class,
PROP_URI,
"Uri",
"The URI of the currently loaded page",
"about:blank",
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_TITLE,
"Title",
"The title of the currently loaded page",
NULL,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* MidoriView:mime-type:
"MIME Type",
"The MIME type of the currently loaded page",
"text/html",
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_ICON,
"Icon",
"The icon of the view",
GDK_TYPE_PIXBUF,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_LOAD_STATUS,
"The current loading status",
MIDORI_TYPE_LOAD_STATUS,
MIDORI_LOAD_FINISHED,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_PROGRESS,
"Progress",
"The current loading progress",
0.0, 1.0, 0.0,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_ZOOM_LEVEL,
G_MINFLOAT,
G_MAXFLOAT,
1.0f,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/* g_object_class_install_property (gobject_class,
PROP_NEWS_FEEDS,
"News Feeds",
"The list of available news feeds",
KATZE_TYPE_ARRAY,
- G_PARAM_READWRITE)); */
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); */
g_object_class_install_property (gobject_class,
PROP_STATUSBAR_TEXT,
"Statusbar Text",
"The text displayed in the statusbar",
"",
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_SETTINGS,
gobject_class->set_property = midori_web_settings_set_property;
gobject_class->get_property = midori_web_settings_get_property;
- flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+ flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
g_object_class_install_property (gobject_class,
PROP_REMEMBER_LAST_WINDOW_SIZE,
_("Where to open new pages"),
MIDORI_TYPE_NEW_PAGE,
MIDORI_NEW_PAGE_TAB,
- g_signal_lookup ("create-web-view", WEBKIT_TYPE_WEB_VIEW)
- ? G_PARAM_READWRITE : G_PARAM_READABLE));
+ (g_signal_lookup ("create-web-view", WEBKIT_TYPE_WEB_VIEW)
+ ? G_PARAM_READWRITE : G_PARAM_READABLE) | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_OPEN_EXTERNAL_PAGES_IN,
MIDORI_TYPE_NEW_PAGE,
MIDORI_NEW_PAGE_TAB,
#if HAVE_UNIQUE
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#else
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif
g_object_class_install_property (gobject_class,
_("Open popups in tabs"),
_("Whether to open popup windows in tabs"),
TRUE,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
if (!g_object_class_find_property (gobject_class, "enforce-96-dpi"))
"Enforce 96 DPI",
"Whether to enforce a resolution of 96 DPI",
FALSE,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
if (!g_object_class_find_property (gobject_class, "enable-developer-extras"))
/**
"Enable Developer Extras",
"Whether to enable extra developer tools",
FALSE,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
if (!g_object_class_find_property (gobject_class, "zoom-text-and-images"))
/**
_("Zoom Text and Images"),
_("Whether to zoom text and images"),
FALSE,
- g_object_class_find_property (g_type_class_ref (WEBKIT_TYPE_WEB_VIEW),
- "full-content-zoom") ? G_PARAM_READWRITE : G_PARAM_READABLE));
+ (g_object_class_find_property (g_type_class_ref (WEBKIT_TYPE_WEB_VIEW),
+ "full-content-zoom") ? G_PARAM_READWRITE : G_PARAM_READABLE)
+ | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_ACCEPT_COOKIES,
MIDORI_TYPE_ACCEPT_COOKIES,
MIDORI_ACCEPT_COOKIES_ALL,
#if HAVE_LIBSOUP
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#else
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif
g_object_class_install_property (gobject_class,
_("Original cookies only"),
_("Accept cookies from the original website only"),
FALSE,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_MAXIMUM_COOKIE_AGE,
_("Maximum cookie age"),
_("The maximum number of days to save cookies for"),
0, G_MAXINT, 30,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
_("Remember last form inputs"),
_("Whether the last form inputs are saved"),
TRUE,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_REMEMBER_LAST_DOWNLOADED_FILES,
_("Remember last downloaded files"),
_("Whether the last downloaded files are saved"),
TRUE,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
_("The proxy server used for HTTP connections"),
NULL,
#if HAVE_LIBSOUP
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#else
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif
/**
MIDORI_TYPE_IDENTITY,
MIDORI_IDENT_MIDORI,
#if HAVE_LIBSOUP
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#else
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif
/**
_("The application identification string"),
NULL,
#if HAVE_LIBSOUP
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#else
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif
g_object_class_install_property (gobject_class,
_("Cache size"),
_("The allowed size of the cache"),
0, G_MAXINT, 100,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}
static void