## MidoriBrowser

MidoriBrowser

## Synopsis

    #include <midori/midori.h>

    struct              MidoriBrowserClass;
    void                midori_browser_activate_action      (MidoriBrowser *browser,
                                                             const gchar *name);
    GtkWidget *         midori_browser_add_item             (MidoriBrowser *browser,
                                                             KatzeItem *item);
    void                midori_browser_add_tab              (MidoriBrowser *browser,
                                                             GtkWidget *widget);
    GtkWidget *         midori_browser_add_uri              (MidoriBrowser *browser,
                                                             const gchar *uri);
    void                midori_browser_assert_action        (MidoriBrowser *browser,
                                                             const gchar *name);
    void                midori_browser_block_action         (MidoriBrowser *browser,
                                                             GtkAction *action);
    void                midori_browser_close_tab            (MidoriBrowser *browser,
                                                             GtkWidget *widget);
    GtkActionGroup *    midori_browser_get_action_group     (MidoriBrowser *browser);
    gint                midori_browser_get_current_page     (MidoriBrowser *browser);
    GtkWidget *         midori_browser_get_current_tab      (MidoriBrowser *browser);
    const gchar *       midori_browser_get_current_uri      (MidoriBrowser *browser);
    MidoriBrowser *     midori_browser_get_for_widget       (GtkWidget *widget);
    gint                midori_browser_get_n_pages          (MidoriBrowser *browser);
    GtkWidget *         midori_browser_get_nth_tab          (MidoriBrowser *browser,
                                                             gint n);
    KatzeArray *        midori_browser_get_proxy_array      (MidoriBrowser *browser);
    MidoriWebSettings * midori_browser_get_settings         (MidoriBrowser *browser);
    #define             midori_browser_get_tab
    GList *             midori_browser_get_tabs             (MidoriBrowser *browser);
    const gchar **      midori_browser_get_toolbar_actions  (MidoriBrowser *browser);
    MidoriBrowser *     midori_browser_new                  (void);
    gint                midori_browser_page_num             (MidoriBrowser *browser,
                                                             GtkWidget *view);
    void                midori_browser_quit                 (MidoriBrowser *browser);
    void                midori_browser_save_uri             (MidoriBrowser *browser,
                                                             MidoriView *view,
                                                             const gchar *uri);
    void                midori_browser_set_action_visible   (MidoriBrowser *browser,
                                                             const gchar *name,
                                                             gboolean visible);
    void                midori_browser_set_current_item     (MidoriBrowser *browser,
                                                             KatzeItem *item);
    void                midori_browser_set_current_page     (MidoriBrowser *browser,
                                                             gint n);
    void                midori_browser_set_current_page_smartly
                                                            (MidoriBrowser *browser,
                                                             gint n);
    void                midori_browser_set_current_tab      (MidoriBrowser *browser,
                                                             GtkWidget *widget);
    void                midori_browser_set_current_tab_smartly
                                                            (MidoriBrowser *browser,
                                                             GtkWidget *view);
    void                midori_browser_set_current_uri      (MidoriBrowser *browser,
                                                             const gchar *uri);
    void                midori_browser_set_inactivity_reset (MidoriBrowser *browser,
                                                             gint inactivity_reset);
    #define             midori_browser_set_tab
    void                midori_browser_unblock_action       (MidoriBrowser *browser,
                                                             GtkAction *action);
    void                midori_browser_update_history       (KatzeItem *item,
                                                             const gchar *type,
                                                             const gchar *event);

## Description

## Details

### struct MidoriBrowserClass

    struct MidoriBrowserClass {
        GtkWindowClass parent_class;

        /* Signals */
        void
        (*window_object_cleared)   (MidoriBrowser*       browser,
    #ifndef HAVE_WEBKIT2
                                    WebKitWebFrame*      web_frame,
    #else
                                    void*                web_frame,
    #endif
                                    JSContextRef*        context,
                                    JSObjectRef*         window_object);
        void
        (*statusbar_text_changed)  (MidoriBrowser*       browser,
                                    const gchar*         text);
        void
        (*element_motion)          (MidoriBrowser*       browser,
                                    const gchar*         link_uri);
        void
        (*new_window)              (MidoriBrowser*       browser,
                                    const gchar*         uri);

        void
        (*add_tab)                 (MidoriBrowser*       browser,
                                    GtkWidget*           view);
        void
        (*remove_tab)              (MidoriBrowser*       browser,
                                    GtkWidget*           view);
        void
        (*activate_action)         (MidoriBrowser*       browser,
                                    const gchar*         name);
        void
        (*quit)                    (MidoriBrowser*       browser);
    };

### midori_browser_activate_action ()

    void                midori_browser_activate_action      (MidoriBrowser *browser,
                                                             const gchar *name);

### midori_browser_add_item ()

    GtkWidget *         midori_browser_add_item             (MidoriBrowser *browser,
                                                             KatzeItem *item);

### midori_browser_add_tab ()

    void                midori_browser_add_tab              (MidoriBrowser *browser,
                                                             GtkWidget *widget);

### midori_browser_add_uri ()

    GtkWidget *         midori_browser_add_uri              (MidoriBrowser *browser,
                                                             const gchar *uri);

### midori_browser_assert_action ()

    void                midori_browser_assert_action        (MidoriBrowser *browser,
                                                             const gchar *name);

### midori_browser_block_action ()

    void                midori_browser_block_action         (MidoriBrowser *browser,
                                                             GtkAction *action);

### midori_browser_close_tab ()

    void                midori_browser_close_tab            (MidoriBrowser *browser,
                                                             GtkWidget *widget);

### midori_browser_get_action_group ()

    GtkActionGroup *    midori_browser_get_action_group     (MidoriBrowser *browser);

### midori_browser_get_current_page ()

    gint                midori_browser_get_current_page     (MidoriBrowser *browser);

### midori_browser_get_current_tab ()

    GtkWidget *         midori_browser_get_current_tab      (MidoriBrowser *browser);

### midori_browser_get_current_uri ()

    const gchar *       midori_browser_get_current_uri      (MidoriBrowser *browser);

### midori_browser_get_for_widget ()

    MidoriBrowser *     midori_browser_get_for_widget       (GtkWidget *widget);

### midori_browser_get_n_pages ()

    gint                midori_browser_get_n_pages          (MidoriBrowser *browser);

### midori_browser_get_nth_tab ()

    GtkWidget *         midori_browser_get_nth_tab          (MidoriBrowser *browser,
                                                             gint n);

### midori_browser_get_proxy_array ()

    KatzeArray *        midori_browser_get_proxy_array      (MidoriBrowser *browser);

### midori_browser_get_settings ()

    MidoriWebSettings * midori_browser_get_settings         (MidoriBrowser *browser);

### midori_browser_get_tab

    #define midori_browser_get_tab midori_browser_get_current_tab

### midori_browser_get_tabs ()

    GList *             midori_browser_get_tabs             (MidoriBrowser *browser);

### midori_browser_get_toolbar_actions ()

    const gchar **      midori_browser_get_toolbar_actions  (MidoriBrowser *browser);

### midori_browser_new ()

    MidoriBrowser *     midori_browser_new                  (void);

### midori_browser_page_num ()

    gint                midori_browser_page_num             (MidoriBrowser *browser,
                                                             GtkWidget *view);

### midori_browser_quit ()

    void                midori_browser_quit                 (MidoriBrowser *browser);

### midori_browser_save_uri ()

    void                midori_browser_save_uri             (MidoriBrowser *browser,
                                                             MidoriView *view,
                                                             const gchar *uri);

### midori_browser_set_action_visible ()

    void                midori_browser_set_action_visible   (MidoriBrowser *browser,
                                                             const gchar *name,
                                                             gboolean visible);

### midori_browser_set_current_item ()

    void                midori_browser_set_current_item     (MidoriBrowser *browser,
                                                             KatzeItem *item);

### midori_browser_set_current_page ()

    void                midori_browser_set_current_page     (MidoriBrowser *browser,
                                                             gint n);

### midori_browser_set_current_page_smartly ()

    void                midori_browser_set_current_page_smartly
                                                            (MidoriBrowser *browser,
                                                             gint n);

### midori_browser_set_current_tab ()

    void                midori_browser_set_current_tab      (MidoriBrowser *browser,
                                                             GtkWidget *widget);

### midori_browser_set_current_tab_smartly ()

    void                midori_browser_set_current_tab_smartly
                                                            (MidoriBrowser *browser,
                                                             GtkWidget *view);

### midori_browser_set_current_uri ()

    void                midori_browser_set_current_uri      (MidoriBrowser *browser,
                                                             const gchar *uri);

### midori_browser_set_inactivity_reset ()

    void                midori_browser_set_inactivity_reset (MidoriBrowser *browser,
                                                             gint inactivity_reset);

### midori_browser_set_tab

    #define midori_browser_set_tab midori_browser_set_current_tab

### midori_browser_unblock_action ()

    void                midori_browser_unblock_action       (MidoriBrowser *browser,
                                                             GtkAction *action);

### midori_browser_update_history ()

    void                midori_browser_update_history       (KatzeItem *item,
                                                             const gchar *type,
                                                             const gchar *event);