/* Copyright (C) 2007-2008 Christian Dywan Copyright (C) 2009 Dale Whittaker 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 #include #include #include #include gchar* sokoke_js_script_eval (JSContextRef js_context, const gchar* script, gchar** exception); void sokoke_message_dialog (GtkMessageType message_type, const gchar* short_message, const gchar* detailed_message, gboolean modal); gboolean sokoke_show_uri_with_mime_type (GdkScreen* screen, const gchar* uri, const gchar* mime_type, guint32 timestamp, GError** error); gboolean sokoke_show_uri (GdkScreen* screen, const gchar* uri, guint32 timestamp, GError** error); gchar* sokoke_prepare_command (const gchar* command, gboolean quote_command, const gchar* argument, gboolean quote_argument); gboolean sokoke_spawn_program (const gchar* command, gboolean quote_command, const gchar* argument, gboolean quote_argument); void sokoke_spawn_app (const gchar* uri, gboolean inherit_config); gboolean sokoke_external_uri (const gchar* uri); gchar* sokoke_magic_uri (const gchar* uri); void sokoke_widget_set_visible (GtkWidget* widget, gboolean visible); GtkWidget* sokoke_xfce_header_new (const gchar* icon, const gchar* title); gboolean sokoke_key_file_save_to_file (GKeyFile* key_file, const gchar* filename, GError** error); void sokoke_widget_get_text_size (GtkWidget* widget, const gchar* text, gint* width, gint* height); GtkWidget* sokoke_action_create_popup_menu_item (GtkAction* action); gint64 sokoke_time_t_to_julian (const time_t* timestamp); gboolean sokoke_remove_path (const gchar* path, gboolean ignore_errors); gchar* sokoke_replace_variables (const gchar* template, const gchar* variable_first, ...); gboolean sokoke_window_activate_key (GtkWindow* window, GdkEventKey* event); guint sokoke_gtk_action_count_modifiers (GtkAction* action); GtkWidget* sokoke_file_chooser_dialog_new (const gchar* title, GtkWindow* window, GtkFileChooserAction action); gboolean sokoke_prefetch_uri (MidoriWebSettings* settings, const char* uri, SoupAddressCallback callback, gpointer user_data); gboolean sokoke_resolve_hostname (const gchar* hostname); gboolean sokoke_recursive_fork_protection (const gchar* uri, gboolean set_uri); typedef struct { gchar* name; gchar* label; GCallback clear; } SokokePrivacyItem; GList* sokoke_register_privacy_item (const gchar* name, const gchar* label, GCallback clear); void sokoke_widget_copy_clipboard (GtkWidget* widget, const gchar* text); gchar* sokoke_build_thumbnail_path (const gchar* name); GtkWidget* sokoke_search_entry_new (const gchar* placeholder_text); #endif /* !__SOKOKE_H__ */