MidoriSuggestion

MidoriSuggestion

Functions

Types and Values

Object Hierarchy


Description

Functions

MIDORI_TYPE_SUGGESTION

#define MIDORI_TYPE_SUGGESTION (midori_suggestion_get_type ())

The type for MidoriSuggestion.


midori_suggestion_new ()

MidoriSuggestion *
midori_suggestion_new (const gchar *uri,
                       const gchar *markup,
                       gboolean use_markup,
                       const gchar *background,
                       GIcon *icon,
                       gint *priority);

Parameters

uri

 

 

markup

 

 

use_markup

 

 

background

 

 

icon

 

 

priority

 

 

midori_suggestion_get_uri ()

const gchar *
midori_suggestion_get_uri (MidoriSuggestion *self);

Get and return the current value of the "uri" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "uri" property


midori_suggestion_set_uri ()

void
midori_suggestion_set_uri (MidoriSuggestion *self,
                           const gchar *value);

Set the value of the "uri" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "uri" property

 

midori_suggestion_get_markup ()

const gchar *
midori_suggestion_get_markup (MidoriSuggestion *self);

Get and return the current value of the "markup" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "markup" property


midori_suggestion_set_markup ()

void
midori_suggestion_set_markup (MidoriSuggestion *self,
                              const gchar *value);

Set the value of the "markup" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "markup" property

 

midori_suggestion_get_use_markup ()

gboolean
midori_suggestion_get_use_markup (MidoriSuggestion *self);

Get and return the current value of the "use-markup" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "use-markup" property


midori_suggestion_set_use_markup ()

void
midori_suggestion_set_use_markup (MidoriSuggestion *self,
                                  gboolean value);

Set the value of the "use-markup" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "use-markup" property

 

midori_suggestion_get_background ()

const gchar *
midori_suggestion_get_background (MidoriSuggestion *self);

Get and return the current value of the "background" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "background" property


midori_suggestion_set_background ()

void
midori_suggestion_set_background (MidoriSuggestion *self,
                                  const gchar *value);

Set the value of the "background" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "background" property

 

midori_suggestion_get_icon ()

GIcon *
midori_suggestion_get_icon (MidoriSuggestion *self);

Get and return the current value of the "icon" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "icon" property


midori_suggestion_set_icon ()

void
midori_suggestion_set_icon (MidoriSuggestion *self,
                            GIcon *value);

Set the value of the "icon" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "icon" property

 

midori_suggestion_get_action ()

gboolean
midori_suggestion_get_action (MidoriSuggestion *self);

Get and return the current value of the "action" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "action" property


midori_suggestion_set_action ()

void
midori_suggestion_set_action (MidoriSuggestion *self,
                              gboolean value);

Set the value of the "action" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "action" property

 

midori_suggestion_get_priority ()

gint
midori_suggestion_get_priority (MidoriSuggestion *self);

Get and return the current value of the "priority" property.

Parameters

self

the MidoriSuggestion instance to query

 

Returns

the value of the "priority" property


midori_suggestion_set_priority ()

void
midori_suggestion_set_priority (MidoriSuggestion *self,
                                gint value);

Set the value of the "priority" property to value .

Parameters

self

the MidoriSuggestion instance to modify

 

value

the new value of the "priority" property

 

MIDORI_TYPE_COMPLETION

#define MIDORI_TYPE_COMPLETION (midori_completion_get_type ())

The type for MidoriCompletion.


midori_completion_prepare ()

void
midori_completion_prepare (MidoriCompletion *self,
                           GObject *app);

Parameters

self

the MidoriCompletion instance

 

app

 

 

midori_completion_can_complete ()

gboolean
midori_completion_can_complete (MidoriCompletion *self,
                                const gchar *prefix);

Parameters

self

the MidoriCompletion instance

 

prefix

 

 

midori_completion_can_action ()

gboolean
midori_completion_can_action (MidoriCompletion *self,
                              const gchar *action);

Parameters

self

the MidoriCompletion instance

 

action

 

 

midori_completion_complete ()

void
midori_completion_complete (MidoriCompletion *self,
                            const gchar *text,
                            const gchar *action,
                            GCancellable *cancellable,
                            GAsyncReadyCallback _callback_,
                            gpointer _user_data_);

See also: midori_completion_complete_finish()

Parameters

self

the MidoriCompletion instance

 

text

 

 

action

 

 

cancellable

 

 

_callback_

callback to call when the request is satisfied.

[scope async]

_user_data_

the data to pass to _callback_ function.

[closure]

midori_completion_complete_finish ()

GList *
midori_completion_complete_finish (MidoriCompletion *self,
                                   GAsyncResult *_res_);

See also: midori_completion_complete()

Parameters

self

the MidoriCompletion instance

 

_res_

a GAsyncResult

 

midori_completion_get_description ()

const gchar *
midori_completion_get_description (MidoriCompletion *self);

Get and return the current value of the "description" property.

Parameters

self

the MidoriCompletion instance to query

 

Returns

the value of the "description" property


midori_completion_set_description ()

void
midori_completion_set_description (MidoriCompletion *self,
                                   const gchar *value);

Set the value of the "description" property to value .

Parameters

self

the MidoriCompletion instance to modify

 

value

the new value of the "description" property

 

midori_completion_get_max_items ()

gint
midori_completion_get_max_items (MidoriCompletion *self);

Get and return the current value of the "max-items" property.

Parameters

self

the MidoriCompletion instance to query

 

Returns

the value of the "max-items" property


MIDORI_TYPE_AUTOCOMPLETER

#define MIDORI_TYPE_AUTOCOMPLETER (midori_autocompleter_get_type ())

The type for MidoriAutocompleter.


midori_autocompleter_add ()

void
midori_autocompleter_add (MidoriAutocompleter *self,
                          MidoriCompletion *completion);

Parameters

self

the MidoriAutocompleter instance

 

completion

 

 

midori_autocompleter_can_complete ()

gboolean
midori_autocompleter_can_complete (MidoriAutocompleter *self,
                                   const gchar *text);

Parameters

self

the MidoriAutocompleter instance

 

text

 

 

midori_autocompleter_complete ()

void
midori_autocompleter_complete (MidoriAutocompleter *self,
                               const gchar *text,
                               GAsyncReadyCallback _callback_,
                               gpointer _user_data_);

See also: midori_autocompleter_complete_finish()

Parameters

self

the MidoriAutocompleter instance

 

text

 

 

_callback_

callback to call when the request is satisfied.

[scope async]

_user_data_

the data to pass to _callback_ function.

[closure]

midori_autocompleter_complete_finish ()

void
midori_autocompleter_complete_finish (MidoriAutocompleter *self,
                                      GAsyncResult *_res_);

See also: midori_autocompleter_complete()

Parameters

self

the MidoriAutocompleter instance

 

_res_

a GAsyncResult

 

midori_autocompleter_can_action ()

gboolean
midori_autocompleter_can_action (MidoriAutocompleter *self,
                                 const gchar *action);

Parameters

self

the MidoriAutocompleter instance

 

action

 

 

midori_autocompleter_action ()

void
midori_autocompleter_action (MidoriAutocompleter *self,
                             const gchar *action,
                             const gchar *text,
                             GAsyncReadyCallback _callback_,
                             gpointer _user_data_);

See also: midori_autocompleter_action_finish()

Parameters

self

the MidoriAutocompleter instance

 

action

 

 

text

 

 

_callback_

callback to call when the request is satisfied.

[scope async]

_user_data_

the data to pass to _callback_ function.

[closure]

midori_autocompleter_action_finish ()

void
midori_autocompleter_action_finish (MidoriAutocompleter *self,
                                    GAsyncResult *_res_);

See also: midori_autocompleter_action()

Parameters

self

the MidoriAutocompleter instance

 

_res_

a GAsyncResult

 

midori_autocompleter_new ()

MidoriAutocompleter *
midori_autocompleter_new (GObject *app);

Parameters

app

 

 

midori_autocompleter_get_model ()

GtkListStore *
midori_autocompleter_get_model (MidoriAutocompleter *self);

Get and return the current value of the "model" property.

Parameters

self

the MidoriAutocompleter instance to query

 

Returns

the value of the "model" property

Types and Values

struct MidoriSuggestion

struct MidoriSuggestion {
	GObject parent_instance;
	MidoriSuggestionPrivate * priv;
};

struct MidoriSuggestionClass

struct MidoriSuggestionClass {
	GObjectClass parent_class;
};

The class structure for MIDORI_TYPE_SUGGESTION. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure

 

struct MidoriCompletion

struct MidoriCompletion {
	GObject parent_instance;
	MidoriCompletionPrivate * priv;
};

struct MidoriCompletionClass

struct MidoriCompletionClass {
	GObjectClass parent_class;
	void (*prepare) (MidoriCompletion* self, GObject* app);
	gboolean (*can_complete) (MidoriCompletion* self, const gchar* prefix);
	gboolean (*can_action) (MidoriCompletion* self, const gchar* action);
	void (*complete) (MidoriCompletion* self, const gchar* text, const gchar* action, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GList* (*complete_finish) (MidoriCompletion* self, GAsyncResult* _res_);
};

The class structure for MIDORI_TYPE_COMPLETION. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure

 

prepare ()

virtual method called by midori_completion_prepare()

 

can_complete ()

virtual method called by midori_completion_can_complete()

 

can_action ()

virtual method called by midori_completion_can_action()

 

complete ()

virtual method called by midori_completion_complete()

 

complete_finish ()

asynchronous finish function for complete, called by midori_completion_complete()

 

enum MidoriAutocompleterColumns

Members

MIDORI_AUTOCOMPLETER_COLUMNS_ICON

   

MIDORI_AUTOCOMPLETER_COLUMNS_URI

   

MIDORI_AUTOCOMPLETER_COLUMNS_MARKUP

   

MIDORI_AUTOCOMPLETER_COLUMNS_BACKGROUND

   

MIDORI_AUTOCOMPLETER_COLUMNS_YALIGN

   

MIDORI_AUTOCOMPLETER_COLUMNS_SIZE

   

MIDORI_AUTOCOMPLETER_COLUMNS_PRIORITY

   

MIDORI_AUTOCOMPLETER_COLUMNS_N

   

struct MidoriAutocompleter

struct MidoriAutocompleter {
	GObject parent_instance;
	MidoriAutocompleterPrivate * priv;
};

struct MidoriAutocompleterClass

struct MidoriAutocompleterClass {
	GObjectClass parent_class;
};

The class structure for MIDORI_TYPE_AUTOCOMPLETER. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure