X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=uzbl.h;h=f43eaad312a795e4291ab359fa86507f6eb5212e;hb=46da0c91288a9c9d20af3a92c58b1dc6a00de4f4;hp=e4a30a744e3046fd90c2eec35c3f8e648e90bb9e;hpb=87319b49b48fc54cbca58f830b5e7f61b79e6ff7;p=uzbl-mobile diff --git a/uzbl.h b/uzbl.h index e4a30a7..f43eaad 100644 --- a/uzbl.h +++ b/uzbl.h @@ -11,23 +11,6 @@ * */ -enum { - /* statusbar symbols */ - SYM_TITLE, SYM_URI, SYM_NAME, - SYM_LOADPRGS, SYM_LOADPRGSBAR, - SYM_KEYCMD, SYM_MODE, SYM_MSG, - SYM_SELECTED_URI, -}; - -const struct { - gchar *symbol_name; - guint symbol_token; -} symbols[] = { - {"KEYCMD", SYM_KEYCMD}, - - {NULL, 0} -}, *symp = symbols; - /* status bar elements */ typedef struct { gint load_progress; @@ -110,12 +93,17 @@ typedef struct { gchar* title_format_short; gchar* title_format_long; gchar* status_background; - gchar* history_handler; gchar* fifo_dir; gchar* socket_dir; gchar* download_handler; gchar* cookie_handler; gchar* new_window; + 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 always_insert_mode; gboolean show_status; gboolean insert_mode; @@ -145,11 +133,8 @@ typedef struct { guint caret_browsing; guint mode; gchar* base_url; - gchar* html_endmarker; gchar* insert_indicator; gchar* cmd_indicator; - GString* html_buffer; - guint html_timeout; gboolean print_version; /* command list: name -> Command */ @@ -183,7 +168,6 @@ typedef struct { Info info; Window xwin; - GScanner *scan; /* group bindings: key -> action */ GHashTable* bindings; @@ -221,7 +205,7 @@ char * str_replace (const char* search, const char* replace, const char* string); GArray* -read_file_by_line (gchar *path); +read_file_by_line (const gchar *path); gchar* parseenv (char* string); @@ -236,7 +220,7 @@ sigfunc * setup_signal(int signe, sigfunc *shandler); gboolean -set_var_value(gchar *name, gchar *val); +set_var_value(const gchar *name, gchar *val); void print(WebKitWebView *page, GArray *argv, GString *result); @@ -247,7 +231,7 @@ new_window_cb (WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequ gboolean mime_policy_cb(WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequest *request, gchar *mime_type, WebKitWebPolicyDecision *policy_decision, gpointer user_data); -WebKitWebView* +/*@null@*/ WebKitWebView* create_web_view_cb (WebKitWebView *web_view, WebKitWebFrame *frame, gpointer user_data); gboolean @@ -281,9 +265,6 @@ void destroy_cb (GtkWidget* widget, gpointer data); void -log_history_cb (); - -void commands_hash(void); void @@ -302,6 +283,9 @@ void set_mode_indicator(); void +update_indicator(); + +void set_insert_mode(gboolean mode); void @@ -336,6 +320,9 @@ char* build_progressbar_ascii(int percent); void +talk_to_socket(WebKitWebView *web_view, GArray *argv, GString *result); + +void spawn(WebKitWebView *web_view, GArray *argv, GString *result); void @@ -353,13 +340,13 @@ parse_command(const char *cmd, const char *param, GString *result); void parse_cmd_line(const char *ctl_line, GString *result); -gchar* +/*@null@*/ gchar* build_stream_name(int type, const gchar *dir); gboolean control_fifo(GIOChannel *gio, GIOCondition condition); -gchar* +/*@null@*/ gchar* init_fifo(gchar *dir); gboolean @@ -368,7 +355,7 @@ control_stdin(GIOChannel *gio, GIOCondition condition); void create_stdin(); -gchar* +/*@null@*/ gchar* init_socket(gchar *dir); gboolean @@ -390,9 +377,9 @@ void exec_paramcmd(const Action* act, const guint i); void -initialize (); +initialize (int argc, char *argv[]); -GtkWidget* +void create_browser (); GtkWidget* @@ -410,11 +397,11 @@ run_handler (const gchar *act, const gchar *args); void add_binding (const gchar *key, const gchar *act); -gchar* +/*@null@*/ gchar* get_xdg_var (XDG_Var xdg); -gchar* -find_xdg_file (int xdg_type, char* filename); +/*@null@*/ gchar* +find_xdg_file (int xdg_type, const char* filename); void settings_init (); @@ -457,12 +444,6 @@ void act_dump_config(); void -render_html(); - -void -set_timeout(int seconds); - -void dump_var_hash(gpointer k, gpointer v, gpointer ud); void @@ -472,7 +453,10 @@ void dump_config(); void -retreive_geometry(); +retrieve_geometry(); + +void +update_gui(WebKitWebView *page, GArray *argv, GString *result); gboolean configure_event_cb(GtkWidget* window, GdkEventConfigure* event); @@ -523,6 +507,24 @@ void cmd_font_size(); void +cmd_default_font_family(); + +void +cmd_monospace_font_family(); + +void +cmd_sans_serif_font_family(); + +void +cmd_serif_font_family(); + +void +cmd_cursive_font_family(); + +void +cmd_fantasy_font_family(); + +void cmd_zoom_level(); void