aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/uzbl-core.h
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-07-25 19:06:10 +0000
committerGravatar Brendan Taylor <whateley@gmail.com>2011-09-17 17:03:53 +0000
commit65ace942fdabfd6116163a21eec7cd7bbd3cbcb1 (patch)
tree40b1bce4290125bfa3d3695b85fd213f2bb15f77 /src/uzbl-core.h
parent1cbac1d7fb292adc0e3e07d206370aeb5ac8e7e0 (diff)
introduce getter and setter functions.
some variables didn't always have a value reflecting the browser's internal state. for example, if `default_encoding` was never set then `print @default_encoding` would always print a blank string. this introduces getter functions that ensure the value of a variable is always in sync with the internal state of the browser. also: setters, because sometimes you need to process user input before storing it.
Diffstat (limited to 'src/uzbl-core.h')
-rw-r--r--src/uzbl-core.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/uzbl-core.h b/src/uzbl-core.h
index b5afa3a..1beb11f 100644
--- a/src/uzbl-core.h
+++ b/src/uzbl-core.h
@@ -74,7 +74,6 @@ typedef struct {
WebKitWebView* web_view;
gchar* main_title;
gchar* icon;
- gchar* window_role;
/* WebInspector */
GtkWidget* inspector_window;
@@ -154,49 +153,17 @@ typedef struct {
gchar* scheme_handler;
gchar* download_handler;
- /* Fonts */
- gchar* default_font_family;
- gchar* monospace_font_family;
- gchar* sans_serif_font_family;
- gchar* serif_font_family;
- gchar* fantasy_font_family;
- gchar* cursive_font_family;
-
gboolean forward_keys;
guint http_debug;
gchar* shell_cmd;
guint view_source;
- /* WebKitWebSettings exports */
- guint font_size;
- guint monospace_size;
- guint minimum_font_size;
- gfloat zoom_level;
- gboolean zoom_type;
- guint enable_pagecache;
- guint disable_plugins;
- guint disable_scripts;
- guint autoload_img;
- guint autoshrink_img;
- guint enable_spellcheck;
- gchar* spellcheck_languages;
- guint enable_private;
- guint print_bg;
- gchar* style_uri;
- guint resizable_txt;
- gchar* default_encoding;
- gchar* current_encoding;
- guint enforce_96dpi;
- gchar *inject_html;
- guint caret_browsing;
- guint cross_file_access;
- guint javascript_windows;
gboolean print_version;
/* command list: (key)name -> (value)Command */
GHashTable* commands;
/* variables: (key)name -> (value)uzbl_cmdprop */
- GHashTable *proto_var;
+ GHashTable* proto_var;
} Behaviour;