![]() |
![]() |
![]() |
midori Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <midori/midori.h>void sokoke_create_win32_desktop_lnk (,
gchar *prefix,
gchar *filename);
gchar *urigboolean sokoke_external_uri (const
);gchar *urigchar * sokoke_get_win32_desktop_lnk_path_for_filename ();
gchar *filenameguint sokoke_gtk_action_count_modifiers ();
GtkAction *actiongchar * sokoke_js_script_eval (,
JSContextRef js_contextconst
,gchar *script);
gchar **exceptiongboolean sokoke_key_file_save_to_file (,
GKeyFile *key_fileconst
,gchar *filename);
GError **errorgchar * sokoke_magic_uri (const
,gchar *uri,
gboolean allow_search);
gboolean allow_realtivevoid sokoke_message_dialog (,
GtkMessageType message_typeconst
,gchar *short_messageconst
,gchar *detailed_message);
gboolean modalgboolean sokoke_prefetch_uri (MidoriWebSettings *settings
,const
,char *uri,
GCallback callback);
gpointer user_datagchar * sokoke_prepare_command (const
,gchar *command,
gboolean quote_commandconst
,gchar *argument);
gboolean quote_argumentgchar * sokoke_replace_variables (const
,gchar *templateconst
,gchar *variable_first...
);gboolean sokoke_resolve_hostname (const
);gchar *hostnameGtkWidget * sokoke_search_entry_new (const
);gchar *placeholder_textvoid sokoke_spawn_app (const
,gchar *uri);
gboolean inherit_configvoid sokoke_spawn_gdb (const
,gchar *gdb);
gboolean syncgboolean sokoke_spawn_program (const
,gchar *command,
gboolean quote_commandconst
,gchar *argument,
gboolean quote_argument);
gboolean syncgint64 sokoke_time_t_to_julian (const
);time_t *timestampvoid sokoke_widget_copy_clipboard (,
GtkWidget *widgetconst
,gchar *text,
GtkClipboardGetFunc get_cb);
gpointer ownervoid sokoke_widget_get_text_size (,
GtkWidget *widgetconst
,gchar *text,
gint *width);
gint *heightvoid sokoke_widget_set_visible (,
GtkWidget *widget);
gboolean visiblegboolean sokoke_window_activate_key (,
GtkWindow *window);
GdkEventKey *eventGtkWidget * sokoke_xfce_header_new (const
,gchar *iconconst
);gchar *title
void sokoke_create_win32_desktop_lnk (,
gchar *prefix,
gchar *filename);
gchar *uri
gchar * sokoke_get_win32_desktop_lnk_path_for_filename ();
gchar *filename
guint sokoke_gtk_action_count_modifiers ();
GtkAction *action
Counts the number of modifiers in the accelerator belonging to the action.
|
a |
Returns : |
the number of modifiers |
gchar * sokoke_js_script_eval (,
JSContextRef js_contextconst
,gchar *script);
gchar **exception
gboolean sokoke_key_file_save_to_file (,
GKeyFile *key_fileconst
,gchar *filename);
GError **error
gchar * sokoke_magic_uri (const
,gchar *uri,
gboolean allow_search);
gboolean allow_realtive
Takes a string that was typed by a user, guesses what it is, and returns an URI.
If it was a search, NULL
|
a string typed by a user |
Returns : |
a newly allocated URI, or NULL |
void sokoke_message_dialog (,
GtkMessageType message_typeconst
,gchar *short_messageconst
,gchar *detailed_message);
gboolean modal
gboolean sokoke_prefetch_uri (MidoriWebSettings *settings
,const
,char *uri,
GCallback callback);
gpointer user_data
Attempts to prefetch the specified URI, that is it tries to resolve the hostname in advance.
|
a MidoriWebSettings instance, or NULL |
|
an URI string |
Returns : |
TRUE |
gchar * sokoke_prepare_command (const
,gchar *command,
gboolean quote_commandconst
,gchar *argument);
gboolean quote_argument
If command
contains s
argument
will be quoted and inserted into
command
, which is left unquoted regardless of quote_command
.
|
the command, properly quoted |
|
any arguments, properly quoted |
|
if TRUE command will be quoted |
|
if TRUE argument will be quoted, ie. a URI or filename |
Returns : |
the command prepared for spawning |
gchar * sokoke_replace_variables (const
,gchar *templateconst
,gchar *variable_first...
);
gboolean sokoke_resolve_hostname (const
);gchar *hostname
Takes a string that was typed by a user, resolves the hostname, and returns the status.
|
a string typed by a user |
Returns : |
TRUE FALSE |
gboolean sokoke_spawn_program (const
,gchar *command,
gboolean quote_commandconst
,gchar *argument,
gboolean quote_argument);
gboolean sync
If command
contains s
argument
will be quoted and inserted into
command
, which is left unquoted regardless of quote_command
.
|
the command, properly quoted |
|
any arguments, properly quoted |
|
if TRUE command will be quoted |
|
if TRUE argument will be quoted, ie. a URI or filename |
|
spawn synchronously and wait for command to exit |
Returns : |
TRUE FALSE |
gint64 sokoke_time_t_to_julian (const
);time_t *timestamp
Calculates a unix timestamp to a julian day value.
|
a time_t timestamp value |
Returns : |
an integer. |
void sokoke_widget_copy_clipboard (,
GtkWidget *widgetconst
,gchar *text,
GtkClipboardGetFunc get_cb);
gpointer owner
void sokoke_widget_get_text_size (,
GtkWidget *widgetconst
,gchar *text,
gint *width);
gint *height
gboolean sokoke_window_activate_key (,
GtkWindow *window);
GdkEventKey *event
Attempts to activate they key from the event, much
like gtk_window_activate_key()
gtk_accelerator_valid()
|
a |
|
a |
Returns : |
TRUE |