MateAuthentication

## MateAuthentication MateAuthentication |

## Synopsis

    #include <libmateui/libmateui.h>

    void                mate_authentication_manager_init   (void);
    gboolean            mate_authentication_manager_dialog_is_visible
                                                            (void);
    void                mate_authentication_manager_pop_async
                                                            (void);
    void                mate_authentication_manager_pop_sync
                                                            (void);
    void                mate_authentication_manager_push_async
                                                            (void);
    void                mate_authentication_manager_push_sync
                                                            (void);

## Description

## Details

### mate_authentication_manager_init ()

    void                mate_authentication_manager_init   (void);

This function checks for thread support and does a thread initialisation, if the support is available. Also sets the default sync and async mate-vfs callbacks for various types of authentication.

Note: If you call this, and you use threads with gtk+, you must never hold the gdk lock while doing synchronous mate-vfs calls. Otherwise an authentication callback presenting a dialog could try to grab the already held gdk lock, causing a deadlock.

Since 2.4

### mate_authentication_manager_dialog_is_visible ()

    gboolean            mate_authentication_manager_dialog_is_visible
                                                            (void);

This function checks whether there are any references on the authentication dialog and returns a a gboolean value.

Returns : | TRUE if there are any references on the authentication dialog, FALSE otherwise.

Since 2.8

### mate_authentication_manager_pop_async ()

    void                mate_authentication_manager_pop_async
                                                            (void);

This function calls `mate_vfs_async_module_callback_pop()` to remove all the temporary async mate-vfs callbacks associated with various types of authentication.

Since 2.6

### mate_authentication_manager_pop_sync ()

    void                mate_authentication_manager_pop_sync
                                                            (void);

This function calls `mate_vfs_module_callback_pop()` to remove all the mate-vfs sync handlers associated with various types of authentication.

Since 2.6

### mate_authentication_manager_push_async ()

    void                mate_authentication_manager_push_async
                                                            (void);

This function calls `mate_vfs_async_module_callback_push()` to set temporary async handlers for the various types of authentication.

Since 2.6

### mate_authentication_manager_push_sync ()

    void                mate_authentication_manager_push_sync
                                                            (void);

This function calls `mate_vfs_module_callback_push()` to set temperory handlers for various types of authentication.

Since 2.6