2008-08-15 08:07:51 +00:00
|
|
|
/*
|
2009-10-04 00:32:50 +00:00
|
|
|
Copyright (C) 2008-2009 Christian Dywan <christian@twotoasts.de>
|
2008-08-15 08:07:51 +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 __MIDORI_LOCATION_ACTION_H__
|
|
|
|
#define __MIDORI_LOCATION_ACTION_H__
|
|
|
|
|
|
|
|
#include <katze/katze.h>
|
2010-04-13 21:44:21 +00:00
|
|
|
#include "midori-view.h"
|
2008-08-15 08:07:51 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2008-10-13 16:29:46 +00:00
|
|
|
#define MIDORI_TYPE_LOCATION_ACTION \
|
|
|
|
(midori_location_action_get_type ())
|
|
|
|
#define MIDORI_LOCATION_ACTION(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_LOCATION_ACTION, MidoriLocationAction))
|
|
|
|
#define MIDORI_LOCATION_ACTION_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_LOCATION_ACTION, MidoriLocationActionClass))
|
|
|
|
#define MIDORI_IS_LOCATION_ACTION(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_LOCATION_ACTION))
|
|
|
|
#define MIDORI_IS_LOCATION_ACTION_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_LOCATION_ACTION))
|
|
|
|
#define MIDORI_LOCATION_ACTION_GET_CLASS(obj) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_LOCATION_ACTION, MidoriLocationActionClass))
|
2008-08-15 08:07:51 +00:00
|
|
|
|
|
|
|
typedef struct _MidoriLocationAction MidoriLocationAction;
|
|
|
|
typedef struct _MidoriLocationActionClass MidoriLocationActionClass;
|
|
|
|
|
|
|
|
GType
|
2010-01-16 06:05:16 +00:00
|
|
|
midori_location_action_get_type (void) G_GNUC_CONST;
|
2008-08-15 08:07:51 +00:00
|
|
|
|
2009-10-04 00:32:50 +00:00
|
|
|
const gchar*
|
|
|
|
midori_location_action_get_text (MidoriLocationAction* location_action);
|
|
|
|
|
|
|
|
void
|
|
|
|
midori_location_action_set_text (MidoriLocationAction* location_action,
|
|
|
|
const gchar* text);
|
|
|
|
|
2008-08-15 08:07:51 +00:00
|
|
|
const gchar*
|
2008-12-12 20:06:33 +00:00
|
|
|
midori_location_action_get_uri (MidoriLocationAction* location_action);
|
2008-08-15 08:07:51 +00:00
|
|
|
|
2008-11-10 23:51:28 +00:00
|
|
|
void
|
|
|
|
midori_location_action_set_icon (MidoriLocationAction* location_action,
|
|
|
|
GdkPixbuf* icon);
|
|
|
|
|
2008-08-15 08:07:51 +00:00
|
|
|
void
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_add_uri (MidoriLocationAction* location_action,
|
|
|
|
const gchar* uri);
|
2008-08-15 08:07:51 +00:00
|
|
|
|
|
|
|
void
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_add_item (MidoriLocationAction* location_action,
|
|
|
|
const gchar* uri,
|
|
|
|
GdkPixbuf* icon,
|
|
|
|
const gchar* title);
|
2008-12-12 20:06:33 +00:00
|
|
|
|
2008-10-27 02:12:09 +00:00
|
|
|
void
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_set_icon_for_uri (MidoriLocationAction* location_action,
|
|
|
|
GdkPixbuf* icon,
|
|
|
|
const gchar* text);
|
2008-08-15 08:07:51 +00:00
|
|
|
|
|
|
|
void
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_set_title_for_uri (MidoriLocationAction* location_action,
|
|
|
|
const gchar* title,
|
|
|
|
const gchar* text);
|
2008-08-15 08:07:51 +00:00
|
|
|
|
2009-04-11 20:24:56 +00:00
|
|
|
void
|
|
|
|
midori_location_action_set_search_engines (MidoriLocationAction* location_action,
|
|
|
|
KatzeArray* search_engines);
|
|
|
|
|
2008-08-31 00:45:13 +00:00
|
|
|
gdouble
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_get_progress (MidoriLocationAction* location_action);
|
2008-08-31 00:45:13 +00:00
|
|
|
|
|
|
|
void
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_set_progress (MidoriLocationAction* location_action,
|
|
|
|
gdouble progress);
|
2008-08-31 00:45:13 +00:00
|
|
|
|
2008-08-15 08:07:51 +00:00
|
|
|
void
|
2008-11-08 01:23:08 +00:00
|
|
|
midori_location_action_set_secondary_icon (MidoriLocationAction* location_action,
|
|
|
|
const gchar* stock_id);
|
|
|
|
|
|
|
|
void
|
|
|
|
midori_location_action_delete_item_from_uri (MidoriLocationAction* location_action,
|
|
|
|
const gchar* uri);
|
|
|
|
|
|
|
|
void
|
|
|
|
midori_location_action_clear (MidoriLocationAction* location_action);
|
2008-08-15 08:07:51 +00:00
|
|
|
|
2010-04-13 21:44:21 +00:00
|
|
|
void
|
|
|
|
midori_location_action_set_security_hint (MidoriLocationAction* location_action,
|
|
|
|
MidoriSecurity hint);
|
|
|
|
|
2008-08-15 08:07:51 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MIDORI_LOCATION_ACTION_H__ */
|