midori/src/conf.h

97 lines
2.2 KiB
C
Raw Normal View History

2007-12-16 22:20:24 +00:00
/*
Copyright (C) 2007-2008 Christian Dywan <christian@twotoasts.de>
2007-12-16 22:20:24 +00:00
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
See the file COPYING for the full license text.
*/
#ifndef __CONF_H__
#define __CONF_H__ 1
#include <glib.h>
typedef struct _CConfig
{
guint startup;
gchar* homepage;
gchar* locationSearch;
gboolean toolbarNavigation;
gboolean toolbarBookmarks;
//gboolean toolbarDownloads;
gboolean toolbarStatus;
guint toolbarStyle;
gboolean toolbarSmall;
gboolean panelShow;
guint panelActive;
gchar* panelPageholder;
guint tabSize; // tab size in charcters
gboolean tabClose;
gboolean toolbarWebSearch;
gboolean toolbarNewTab;
gboolean toolbarClosedTabs;
guint newPages; // where to open new pages
gboolean openTabsInTheBackground;
gboolean openPopupsInTabs;
gboolean middleClickGoto;
2007-12-16 22:20:24 +00:00
gchar* defaultFontFamily;
guint defaultFontSize;
guint minimumFontSize;
gchar* defaultEncoding;
gboolean autoLoadImages;
gboolean autoShrinkImages;
gboolean printBackgrounds;
2007-12-16 22:20:24 +00:00
gboolean resizableTextAreas;
gboolean userStylesheet;
gchar* userStylesheetUri;
gboolean enableScripts;
2007-12-16 22:20:24 +00:00
gboolean enablePlugins;
gboolean rememberWinSize; // Restore window size upon startup?
2007-12-16 22:20:24 +00:00
gint winWidth;
gint winHeight;
guint winPanelPos;
guint searchEngine; // last selected search engine
} CConfig;
enum
{
CONFIG_STARTUP_BLANK,
CONFIG_STARTUP_HOMEPAGE,
CONFIG_STARTUP_SESSION
};
enum
{
CONFIG_TOOLBAR_DEFAULT,
CONFIG_TOOLBAR_ICONS,
CONFIG_TOOLBAR_TEXT,
CONFIG_TOOLBAR_BOTH,
CONFIG_TOOLBAR_BOTH_HORIZ
};
enum
{
CONFIG_NEWPAGES_TAB_NEW,
CONFIG_NEWPAGES_WINDOW_NEW,
CONFIG_NEWPAGES_TAB_CURRENT
};
CConfig*
config_new(void);
void
config_free(CConfig*);
gboolean
config_from_file(CConfig*, const gchar*, GError**);
gboolean
config_to_file(CConfig*, const gchar*, GError**);
#endif /* !__CONF_H__ */