handlers.h File Reference

question handlers of the GTK+ frontend (header) More...

#include <gtk/gtk.h>
#include "frontend.h"
#include "question.h"

Include dependency graph for handlers.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int fe_gtk_handle_boolean (struct frontend *obj, struct question *q, GtkWidget *qbox)
 Handler for question of boolean type.
int fe_gtk_handle_note (struct frontend *obj, struct question *q, GtkWidget *qbox)
 Handler for "question" of note type.
int fe_gtk_handle_text (struct frontend *obj, struct question *q, GtkWidget *qbox)
 Handler for "question" of text type.
int fe_gtk_handle_password (struct frontend *obj, struct question *q, GtkWidget *qbox)
 Handler for question of password type.
int fe_gtk_handle_string (struct frontend *obj, struct question *q, GtkWidget *qbox)
 Handler for question of string type.


Detailed Description

question handlers of the GTK+ frontend (header)

Definition in file handlers.h.


Function Documentation

int fe_gtk_handle_boolean ( struct frontend *  fe,
struct question *  question,
GtkWidget *  question_box 
)

Handler for question of boolean type.

This will register the corresponding setter.

Parameters:
fe cdebconf frontend
question handled question
question_box container for handler's widgets
Returns:
DC_OK if everything is fine, DC_NOTOK otherwise

Definition at line 221 of file handlers.c.

References handle_boolean_buttons(), handle_boolean_radio(), and IS_QUESTION_SINGLE.

int fe_gtk_handle_note ( struct frontend *  fe,
struct question *  question,
GtkWidget *  question_box 
)

Handler for "question" of note type.

Parameters:
fe cdebconf frontend
question handled question
question_box container for handler's widgets
Returns:
DC_OK if everything is fine, DC_NOTOK otherwise

Definition at line 238 of file handlers.c.

References DEFAULT_PADDING, and fe_gtk_add_common_layout().

Referenced by fe_gtk_handle_text().

int fe_gtk_handle_password ( struct frontend *  fe,
struct question *  question,
GtkWidget *  question_box 
)

Handler for question of password type.

Parameters:
fe cdebconf frontend
question handled question
question_box container for handler's widgets
Returns:
DC_OK if everything is fine, DC_NOTOK otherwise

Definition at line 298 of file handlers.c.

References create_entry_alignment(), fe_gtk_add_common_layout(), fe_gtk_is_first_question(), fe_gtk_register_setter(), set_value_from_entry(), and SETTER_FUNCTION.

int fe_gtk_handle_string ( struct frontend *  fe,
struct question *  question,
GtkWidget *  question_box 
)

Handler for question of string type.

Parameters:
fe cdebconf frontend
question handled question
question_box container for handler's widgets
Returns:
DC_OK if everything is fine, DC_NOTOK otherwise

Definition at line 330 of file handlers.c.

References create_entry_alignment(), fe_gtk_add_common_layout(), fe_gtk_is_first_question(), fe_gtk_register_setter(), set_value_from_entry(), and SETTER_FUNCTION.

int fe_gtk_handle_text ( struct frontend *  fe,
struct question *  question,
GtkWidget *  question_box 
)

Handler for "question" of text type.

This currently just calls fe_gtk_handle_note()

Parameters:
fe cdebconf frontend
question handled question
question_box container for handler's widgets
Returns:
DC_OK if everything is fine, DC_NOTOK otherwise

Definition at line 256 of file handlers.c.

References fe_gtk_handle_note().


Generated on Sat Jul 7 23:41:42 2007 for fe_gtk by  doxygen 1.5.1