1 /* statusbar symbols */
2 enum { SYM_TITLE, SYM_URI, SYM_NAME,
3 SYM_LOADPRGS, SYM_LOADPRGSBAR,
12 {"KEYCMD", SYM_KEYCMD},
14 {"LOAD_PROGRESS", SYM_LOADPRGS},
15 {"LOAD_PROGRESSBAR", SYM_LOADPRGSBAR},
19 /* status bar elements */
26 GtkWidget* main_window;
28 GtkWidget* mainbar_label;
29 GtkScrollbar* scbar_v; // Horizontal and Vertical Scrollbar
30 GtkScrollbar* scbar_h; // (These are still hidden)
31 GtkAdjustment* bar_v; // Information about document length
32 GtkAdjustment* bar_h; // and scrolling position
33 WebKitWebView* web_view;
39 /* external communication*/
42 char socket_path[108];
50 gchar config_file_path[500];
54 SoupSession *soup_session;
55 SoupLogger *soup_logger;
63 /* main uzbl data structure */
88 new_window_cb (WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequest *request, WebKitWebNavigationAction *navigation_action, WebKitWebPolicyDecision *policy_decision, gpointer user_data);
91 create_web_view_cb (WebKitWebView *web_view, WebKitWebFrame *frame, gpointer user_data);
94 download_cb (WebKitWebView *web_view, GObject *download, gpointer user_data);
97 toggle_status_cb (WebKitWebView* page, const char *param);
100 link_hover_cb (WebKitWebView* page, const gchar* title, const gchar* link, gpointer data);
103 title_change_cb (WebKitWebView* web_view, WebKitWebFrame* web_frame, const gchar* title, gpointer data);
106 progress_change_cb (WebKitWebView* page, gint progress, gpointer data);
109 load_commit_cb (WebKitWebView* page, WebKitWebFrame* frame, gpointer data);
112 destroy_cb (GtkWidget* widget, gpointer data);
121 free_action(gpointer act);
124 new_action(const gchar *name, const gchar *param);
127 file_exists (const char * filename);
130 set_insert_mode(WebKitWebView *page, const gchar *param);
133 load_uri (WebKitWebView * web_view, const gchar *param);
136 new_window_load_uri (const gchar * uri);
139 close_uzbl (WebKitWebView *page, const char *param);
142 run_command_async(const char *command, const char *args);
145 run_command_sync(const char *command, const char *args, char **stdout);
148 spawn(WebKitWebView *web_view, const char *param);
151 parse_command(const char *cmd, const char *param);
154 parse_line(char *line);
157 build_stream_name(int type);
160 control_fifo(GIOChannel *gio, GIOCondition condition);
169 control_socket(GIOChannel *chan);
176 key_press_cb (WebKitWebView* page, GdkEventKey* event);
185 GtkWidget* create_window ();
188 add_binding (const gchar *key, const gchar *act);
194 search_text (WebKitWebView *page, const char *param);
197 run_js (WebKitWebView * web_view, const gchar *param);
200 str_replace (const char* search, const char* replace, const char* string);
202 static void handle_cookies (SoupSession *session,
206 save_cookies (SoupMessage *msg,
208 /* vi: set et ts=4: */