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
midori_new_view_get_type (void)
{
* midori_view_load_status:
* @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
**/
G_BEGIN_DECLS
-typedef enum
-{
- MIDORI_LOAD_PROVISIONAL,
- MIDORI_LOAD_COMMITTED,
- MIDORI_LOAD_FINISHED
-} MidoriLoadStatus;
-
-GType
-midori_load_status_get_type (void) G_GNUC_CONST;
-
-#define MIDORI_TYPE_LOAD_STATUS \
- (midori_load_status_get_type ())
+#define MIDORI_LOAD_PROVISIONAL WEBKIT_LOAD_PROVISIONAL
+#define MIDORI_LOAD_COMMITTED WEBKIT_LOAD_COMMITTED
+#define MIDORI_LOAD_FINISHED WEBKIT_LOAD_FINISHED
+#define MidoriLoadStatus WebKitLoadStatus
+#define MIDORI_TYPE_LOAD_STATUS WEBKIT_TYPE_LOAD_STATUS
typedef enum
{