Define MidoriLoadStatus as alias to WebKitLoadStatus
This commit is contained in:
parent
b2257bd19d
commit
0c69e6ff64
2 changed files with 7 additions and 31 deletions
|
@ -118,24 +118,6 @@ struct _MidoriViewClass
|
||||||
|
|
||||||
G_DEFINE_TYPE (MidoriView, midori_view, GTK_TYPE_VBOX);
|
G_DEFINE_TYPE (MidoriView, midori_view, GTK_TYPE_VBOX);
|
||||||
|
|
||||||
GType
|
|
||||||
midori_load_status_get_type (void)
|
|
||||||
{
|
|
||||||
static GType type = 0;
|
|
||||||
static const GEnumValue values[] = {
|
|
||||||
{ MIDORI_LOAD_PROVISIONAL, "MIDORI_LOAD_PROVISIONAL", "Load Provisional" },
|
|
||||||
{ MIDORI_LOAD_COMMITTED, "MIDORI_LOAD_COMMITTED", "Load Committed" },
|
|
||||||
{ MIDORI_LOAD_FINISHED, "MIDORI_LOAD_FINISHED", "Load Finished" },
|
|
||||||
{ 0, NULL, NULL }
|
|
||||||
};
|
|
||||||
|
|
||||||
if (type)
|
|
||||||
return type;
|
|
||||||
|
|
||||||
type = g_enum_register_static ("MidoriLoadStatus", values);
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
GType
|
GType
|
||||||
midori_new_view_get_type (void)
|
midori_new_view_get_type (void)
|
||||||
{
|
{
|
||||||
|
@ -3373,7 +3355,8 @@ midori_view_set_settings (MidoriView* view,
|
||||||
* midori_view_load_status:
|
* midori_view_load_status:
|
||||||
* @web_view: a #MidoriView
|
* @web_view: a #MidoriView
|
||||||
*
|
*
|
||||||
* Determines the current loading status of a view.
|
* Determines the current loading status of a view. There is no
|
||||||
|
* error state, unlike webkit_web_view_get_load_status().
|
||||||
*
|
*
|
||||||
* Return value: the current #MidoriLoadStatus
|
* Return value: the current #MidoriLoadStatus
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -18,18 +18,11 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
typedef enum
|
#define MIDORI_LOAD_PROVISIONAL WEBKIT_LOAD_PROVISIONAL
|
||||||
{
|
#define MIDORI_LOAD_COMMITTED WEBKIT_LOAD_COMMITTED
|
||||||
MIDORI_LOAD_PROVISIONAL,
|
#define MIDORI_LOAD_FINISHED WEBKIT_LOAD_FINISHED
|
||||||
MIDORI_LOAD_COMMITTED,
|
#define MidoriLoadStatus WebKitLoadStatus
|
||||||
MIDORI_LOAD_FINISHED
|
#define MIDORI_TYPE_LOAD_STATUS WEBKIT_TYPE_LOAD_STATUS
|
||||||
} MidoriLoadStatus;
|
|
||||||
|
|
||||||
GType
|
|
||||||
midori_load_status_get_type (void) G_GNUC_CONST;
|
|
||||||
|
|
||||||
#define MIDORI_TYPE_LOAD_STATUS \
|
|
||||||
(midori_load_status_get_type ())
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue