2007-12-16 22:20:24 +00:00
|
|
|
/*
|
2008-03-29 21:38:59 +00:00
|
|
|
Copyright (C) 2007-2008 Christian Dywan <christian@twotoasts.de>
|
2009-04-25 13:57:00 +00:00
|
|
|
Copyright (C) 2009 Dale Whittaker <dayul@users.sf.net>
|
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 __SOKOKE_H__
|
|
|
|
#define __SOKOKE_H__ 1
|
|
|
|
|
2008-12-24 23:41:11 +00:00
|
|
|
#include <JavaScriptCore/JavaScript.h>
|
2012-04-10 18:54:03 +00:00
|
|
|
#include <webkit/webkit.h>
|
2011-04-17 20:29:51 +00:00
|
|
|
#include <midori/midori-websettings.h>
|
2011-10-20 20:46:43 +00:00
|
|
|
#include <katze/gtk3-compat.h>
|
2010-01-01 22:24:03 +00:00
|
|
|
|
2009-04-13 20:40:57 +00:00
|
|
|
gchar*
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_js_script_eval (JSContextRef js_context,
|
|
|
|
const gchar* script,
|
|
|
|
gchar** exception);
|
2008-12-24 23:41:11 +00:00
|
|
|
|
2009-11-24 22:54:29 +00:00
|
|
|
void
|
2009-11-29 13:08:52 +00:00
|
|
|
sokoke_message_dialog (GtkMessageType message_type,
|
|
|
|
const gchar* short_message,
|
2011-02-02 00:10:02 +00:00
|
|
|
const gchar* detailed_message,
|
|
|
|
gboolean modal);
|
2009-11-24 22:54:29 +00:00
|
|
|
|
|
|
|
gboolean
|
|
|
|
sokoke_show_uri_with_mime_type (GdkScreen* screen,
|
|
|
|
const gchar* uri,
|
|
|
|
const gchar* mime_type,
|
|
|
|
guint32 timestamp,
|
|
|
|
GError** error);
|
|
|
|
|
2009-04-20 17:10:13 +00:00
|
|
|
gboolean
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_show_uri (GdkScreen* screen,
|
|
|
|
const gchar* uri,
|
|
|
|
guint32 timestamp,
|
|
|
|
GError** error);
|
2009-04-20 17:10:13 +00:00
|
|
|
|
2012-07-01 19:21:01 +00:00
|
|
|
gchar*
|
|
|
|
sokoke_prepare_command (const gchar* command,
|
|
|
|
gboolean quote_command,
|
|
|
|
const gchar* argument,
|
|
|
|
gboolean quote_argument);
|
|
|
|
|
2008-07-16 20:32:37 +00:00
|
|
|
gboolean
|
2010-10-10 11:27:06 +00:00
|
|
|
sokoke_spawn_program (const gchar* command,
|
2012-07-01 19:21:01 +00:00
|
|
|
gboolean quote_command,
|
|
|
|
const gchar* argument,
|
|
|
|
gboolean quote_argument);
|
2008-07-16 20:32:37 +00:00
|
|
|
|
2010-10-10 11:02:50 +00:00
|
|
|
void
|
2010-10-13 21:41:11 +00:00
|
|
|
sokoke_spawn_app (const gchar* uri,
|
|
|
|
gboolean inherit_config);
|
2010-10-10 11:02:50 +00:00
|
|
|
|
2010-10-20 18:56:05 +00:00
|
|
|
gboolean
|
|
|
|
sokoke_external_uri (const gchar* uri);
|
|
|
|
|
2008-04-20 19:44:56 +00:00
|
|
|
gchar*
|
2010-02-09 17:13:47 +00:00
|
|
|
sokoke_magic_uri (const gchar* uri);
|
2008-04-20 19:44:56 +00:00
|
|
|
|
2007-12-16 22:20:24 +00:00
|
|
|
void
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_widget_set_visible (GtkWidget* widget,
|
|
|
|
gboolean visible);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-06-01 15:39:57 +00:00
|
|
|
GtkWidget*
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_xfce_header_new (const gchar* icon,
|
|
|
|
const gchar* title);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
gboolean
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_key_file_save_to_file (GKeyFile* key_file,
|
|
|
|
const gchar* filename,
|
|
|
|
GError** error);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_widget_get_text_size (GtkWidget* widget,
|
|
|
|
const gchar* text,
|
|
|
|
gint* width,
|
|
|
|
gint* height);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-08-10 17:54:22 +00:00
|
|
|
GtkWidget*
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_action_create_popup_menu_item (GtkAction* action);
|
2008-08-10 17:54:22 +00:00
|
|
|
|
2009-01-23 21:38:39 +00:00
|
|
|
gint64
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_time_t_to_julian (const time_t* timestamp);
|
2008-10-23 23:35:34 +00:00
|
|
|
|
2009-04-11 03:14:53 +00:00
|
|
|
gboolean
|
2009-04-25 13:57:00 +00:00
|
|
|
sokoke_remove_path (const gchar* path,
|
|
|
|
gboolean ignore_errors);
|
2009-04-11 03:14:53 +00:00
|
|
|
|
2009-05-02 19:38:43 +00:00
|
|
|
gchar*
|
|
|
|
sokoke_replace_variables (const gchar* template,
|
|
|
|
const gchar* variable_first, ...);
|
|
|
|
|
2009-11-03 22:47:33 +00:00
|
|
|
gboolean
|
|
|
|
sokoke_window_activate_key (GtkWindow* window,
|
|
|
|
GdkEventKey* event);
|
2010-06-18 21:27:29 +00:00
|
|
|
guint
|
|
|
|
sokoke_gtk_action_count_modifiers (GtkAction* action);
|
2009-11-03 22:47:33 +00:00
|
|
|
|
2009-11-14 16:38:16 +00:00
|
|
|
GtkWidget*
|
|
|
|
sokoke_file_chooser_dialog_new (const gchar* title,
|
|
|
|
GtkWindow* window,
|
|
|
|
GtkFileChooserAction action);
|
|
|
|
|
2010-01-01 16:53:58 +00:00
|
|
|
gboolean
|
2011-04-17 20:29:51 +00:00
|
|
|
sokoke_prefetch_uri (MidoriWebSettings* settings,
|
|
|
|
const char* uri,
|
2010-03-16 22:58:34 +00:00
|
|
|
SoupAddressCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
sokoke_resolve_hostname (const gchar* hostname);
|
2010-01-01 16:53:58 +00:00
|
|
|
|
2010-03-12 22:25:09 +00:00
|
|
|
gboolean
|
|
|
|
sokoke_recursive_fork_protection (const gchar* uri,
|
|
|
|
gboolean set_uri);
|
|
|
|
|
2010-10-17 20:48:32 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
gchar* name;
|
|
|
|
gchar* label;
|
|
|
|
GCallback clear;
|
|
|
|
} SokokePrivacyItem;
|
|
|
|
|
|
|
|
GList*
|
|
|
|
sokoke_register_privacy_item (const gchar* name,
|
|
|
|
const gchar* label,
|
|
|
|
GCallback clear);
|
|
|
|
|
2011-03-06 17:13:54 +00:00
|
|
|
void
|
2012-09-17 22:35:19 +00:00
|
|
|
sokoke_widget_copy_clipboard (GtkWidget* widget,
|
|
|
|
const gchar* text,
|
|
|
|
GtkClipboardGetFunc get_cb,
|
|
|
|
gpointer owner);
|
2011-03-06 17:13:54 +00:00
|
|
|
|
2012-08-05 20:23:51 +00:00
|
|
|
GtkWidget*
|
|
|
|
sokoke_search_entry_new (const gchar* placeholder_text);
|
2012-01-13 23:34:11 +00:00
|
|
|
|
2007-12-16 22:20:24 +00:00
|
|
|
#endif /* !__SOKOKE_H__ */
|