GKSu Hackers Internals Guide

GKSu Hackers Internals Guide —

Synopsis




int         prepare_xauth                   ();
void        ask_pass_ok_cb                  (GtkWidget *w,
                                             gpointer data);
void        report_failed_grab              (void);
GkConf*     gksu_get_conf                   ();

Description

Details

prepare_xauth ()

int         prepare_xauth                   ();

Sets up the variables with values for the $DISPLAY environment variable and xauth-related stuff. Also creates a temporary directory to hold a .Xauthority

Returns : 0 if it suceeds.

ask_pass_ok_cb ()

void        ask_pass_ok_cb                  (GtkWidget *w,
                                             gpointer data);

This function handles cases in which the default widget of the ask_pass dialog is not the one activated to 'OK' the dialog. This function will, then, emmit the GTK_RESPONSE_OK to the dialog passed on data.

w: activated widget
data: the GtkDialog to which a response should be emitted.

report_failed_grab ()

void        report_failed_grab              (void);

Simple utility function called to report a fail on the process of grabbing the mouse or keyboard when asking for the password through ask_password()


gksu_get_conf ()

GkConf*     gksu_get_conf                   ();

Gets the GkConf structure used internally to store the configuration for direct manipulation.

Returns : the GkConf that is being used.