MidoriSpeedDialSpec

MidoriSpeedDialSpec

Functions

Types and Values

Object Hierarchy


Description

Functions

MIDORI_TYPE_SPEED_DIAL

#define MIDORI_TYPE_SPEED_DIAL (midori_speed_dial_get_type ())

The type for MidoriSpeedDial.


midori_speed_dial_get_next_free_slot ()

gchar *
midori_speed_dial_get_next_free_slot (MidoriSpeedDial *self,
                                      guint *count);

Parameters

self

the MidoriSpeedDial instance

 

count

 

 

midori_speed_dial_add ()

void
midori_speed_dial_add (MidoriSpeedDial *self,
                       const gchar *uri,
                       const gchar *title,
                       GdkPixbuf *img);

Parameters

self

the MidoriSpeedDial instance

 

uri

 

 

title

 

 

img

 

 

midori_speed_dial_add_with_id ()

void
midori_speed_dial_add_with_id (MidoriSpeedDial *self,
                               const gchar *id,
                               const gchar *uri,
                               const gchar *title,
                               GdkPixbuf *img);

Parameters

self

the MidoriSpeedDial instance

 

id

 

 

uri

 

 

title

 

 

img

 

 

midori_speed_dial_get_html ()

const gchar *
midori_speed_dial_get_html (MidoriSpeedDial *self,
                            GError **error);

Parameters

self

the MidoriSpeedDial instance

 

error

location to store the error occuring, or NULL to ignore

 

Returns

.

[transfer none]


midori_speed_dial_save_message ()

void
midori_speed_dial_save_message (MidoriSpeedDial *self,
                                const gchar *message,
                                GError **error);

Parameters

self

the MidoriSpeedDial instance

 

message

 

 

error

location to store the error occuring, or NULL to ignore

 

MIDORI_SPEED_DIAL_TYPE_SPEC

#define MIDORI_SPEED_DIAL_TYPE_SPEC (midori_speed_dial_spec_get_type ())

The type for MidoriSpeedDialSpec.


midori_speed_dial_spec_new ()

MidoriSpeedDialSpec *
midori_speed_dial_spec_new (const gchar *dial_id,
                            const gchar *uri);

Parameters

dial_id

 

 

uri

 

 

midori_speed_dial_spec_ref ()

gpointer
midori_speed_dial_spec_ref (gpointer instance);

Increases the reference count of object .

Parameters

instance

a MidoriSpeedDialSpec.

 

Returns

the same object


midori_speed_dial_spec_unref ()

void
midori_speed_dial_spec_unref (gpointer instance);

Decreases the reference count of object . When its reference count drops to 0, the object is finalized (i.e. its memory is freed).

Parameters

instance

a MidoriSpeedDialSpec.

 

midori_speed_dial_param_spec_spec ()

GParamSpec *
midori_speed_dial_param_spec_spec (const gchar *name,
                                   const gchar *nick,
                                   const gchar *blurb,
                                   GType object_type,
                                   GParamFlags flags);

Creates a new GParamSpecBoxed instance specifying a MIDORI_SPEED_DIAL_TYPE_SPEC derived property.

See g_param_spec_internal() for details on property names.

Parameters

name

canonical name of the property specified

 

nick

nick name for the property specified

 

blurb

description of the property specified

 

object_type

MIDORI_SPEED_DIAL_TYPE_SPEC derived type of this property  

flags

flags for the property specified

 

midori_speed_dial_value_set_spec ()

void
midori_speed_dial_value_set_spec (GValue *value,
                                  gpointer v_object);

Set the contents of a MIDORI_SPEED_DIAL_TYPE_SPEC derived GValue to v_object .

midori_speed_dial_value_set_spec() increases the reference count of v_object (the GValue holds a reference to v_object). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use midori_speed_dial_value_take_spec() instead.

It is important that your GValue holds a reference to v_object (either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists).

Parameters

value

a valid GValue of MIDORI_SPEED_DIAL_TYPE_SPEC derived type

 

v_object

object value to be set

 

midori_speed_dial_value_get_spec ()

gpointer
midori_speed_dial_value_get_spec (const GValue *value);

Get the contents of a MIDORI_SPEED_DIAL_TYPE_SPEC derived GValue.

Parameters

value

a valid GValue of MIDORI_SPEED_DIAL_TYPE_SPEC derived type

 

Returns

object contents of value


midori_speed_dial_value_take_spec ()

void
midori_speed_dial_value_take_spec (GValue *value,
                                   gpointer v_object);

Sets the contents of a MIDORI_SPEED_DIAL_TYPE_SPEC derived GValue to v_object and takes over the ownership of the callers reference to v_object ; the caller doesn't have to unref it any more (i.e. the reference count of the object is not increased).

If you want the GValue to hold its own reference to v_object , use midori_speed_dial_value_set_spec() instead.

Parameters

value

a valid GValue of MIDORI_SPEED_DIAL_TYPE_SPEC derived type

 

v_object

object value to be set

 

midori_speed_dial_new ()

MidoriSpeedDial *
midori_speed_dial_new (const gchar *new_filename,
                       const gchar *fallback);

Parameters

new_filename

 

 

fallback

 

 

midori_speed_dial_get_close_buttons_left ()

gboolean
midori_speed_dial_get_close_buttons_left
                               (MidoriSpeedDial *self);

Get and return the current value of the "close-buttons-left" property.

Parameters

self

the MidoriSpeedDial instance to query

 

Returns

the value of the "close-buttons-left" property


midori_speed_dial_set_close_buttons_left ()

void
midori_speed_dial_set_close_buttons_left
                               (MidoriSpeedDial *self,
                                gboolean value);

Set the value of the "close-buttons-left" property to value .

Parameters

self

the MidoriSpeedDial instance to modify

 

value

the new value of the "close-buttons-left" property

 

Types and Values

struct MidoriSpeedDialSpec

struct MidoriSpeedDialSpec {
	GTypeInstance parent_instance;
	volatile int ref_count;
	MidoriSpeedDialSpecPrivate * priv;
	gchar* dial_id;
	gchar* uri;
};

struct MidoriSpeedDialSpecClass

struct MidoriSpeedDialSpecClass {
	GTypeClass parent_class;
	void (*finalize) (MidoriSpeedDialSpec *self);
};

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

Members

GTypeClass parent_class;

the parent class structure

 

finalize ()

   

struct MidoriSpeedDial

struct MidoriSpeedDial {
	GObject parent_instance;
	MidoriSpeedDialPrivate * priv;
	GKeyFile* keyfile;
};

struct MidoriSpeedDialClass

struct MidoriSpeedDialClass {
	GObjectClass parent_class;
};

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

Members

GObjectClass parent_class;

the parent class structure

 

enum MidoriSpeedDialError

Members

MIDORI_SPEED_DIAL_ERROR_INVALID_MESSAGE

   

MIDORI_SPEED_DIAL_ERROR_NO_ACTION

   

MIDORI_SPEED_DIAL_ERROR_NO_ID

   

MIDORI_SPEED_DIAL_ERROR_NO_URL

   

MIDORI_SPEED_DIAL_ERROR_NO_TITLE

   

MIDORI_SPEED_DIAL_ERROR_NO_ID2

   

MIDORI_SPEED_DIAL_ERROR_INVALID_ACTION