From 65ace942fdabfd6116163a21eec7cd7bbd3cbcb1 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Mon, 25 Jul 2011 19:06:10 +0000 Subject: 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. --- src/uzbl-core.h | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'src/uzbl-core.h') 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; -- cgit v1.2.3