![]() | ![]() | ![]() | GKSu Developers Manual | ![]() |
---|
GKSu Hackers Internals Guide —
int prepare_xauth (); void ask_pass_ok_cb (GtkWidget *w, gpointer data); void report_failed_grab (void); GkConf* gksu_get_conf ();
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. |
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. |
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 Hackers Internals Guide | GKSu Hackers Utility Functions Guide >> |