GnuCash
2.6.99
|
Files | |
file | dialog-preferences.c |
Dialog for handling user preferences. | |
file | dialog-preferences.h |
Dialog for handling user preferences. | |
Data Structures | |
struct | addition_t |
struct | copy_data |
Typedefs | |
typedef struct addition_t | addition |
Functions | |
void | gnc_preferences_response_cb (GtkDialog *dialog, gint response, GtkDialog *unused) |
void | gnc_account_separator_pref_changed_cb (GtkEntry *entry, GtkWidget *dialog) |
gboolean | gnc_account_separator_validate_cb (GtkEntry *entry, GdkEvent *event, GtkWidget *dialog) |
void | gnc_preferences_add_page (const gchar *filename, const gchar *widgetname, const gchar *tabname) |
void | gnc_preferences_add_to_page (const gchar *filename, const gchar *widgetname, const gchar *tabname) |
void | gnc_preferences_dialog (void) |
Variables | |
GSList * | add_ins = NULL |
typedef struct addition_t addition |
This data structure holds the information for a single addition to the preferences dialog.
void gnc_account_separator_pref_changed_cb | ( | GtkEntry * | entry, |
GtkWidget * | dialog | ||
) |
This function is called whenever the account separator is changed in the preferences dialog. It updates the example label in the "Account" page of the preferences dialog.
Definition at line 147 of file dialog-preferences.c.
void gnc_preferences_add_page | ( | const gchar * | filename, |
const gchar * | widgetname, | ||
const gchar * | tabname | ||
) |
This function adds a full page of preferences to the preferences dialog. When the dialog is created, the specified widget will be pulled from the specified glade file and added to the preferences dialog with the specified tab name. The tab name may not be duplicated. For example, the Business code might have a full page of its own preferences.
filename | The name of a glade file. |
widgetname | The name of the widget to extract from the glade file. |
tabname | The (translated!) name this page of preferences should have in the dialog notebook. |
Definition at line 326 of file dialog-preferences.c.
void gnc_preferences_add_to_page | ( | const gchar * | filename, |
const gchar * | widgetname, | ||
const gchar * | tabname | ||
) |
This function adds a partial page of preferences to the preferences dialog. When the dialog is created, the specified widget will be pulled from the specified glade file and added to the preferences dialog with the specified tab name. The tab name may be duplicated. For example, the HBCI preferences may share a "Data Import" page with QIF and other methods.
filename | The name of a glade file. |
widgetname | The name of the widget to extract from the glade file. |
tabname | The (translated!) name this page of preferences should have in the dialog notebook. |
Definition at line 341 of file dialog-preferences.c.
void gnc_preferences_dialog | ( | void | ) |
This function creates the preferences dialog and presents it to the user. The preferences dialog is a singleton, so if a preferences dialog already exists it will be raised to the top of the window stack instead of creating a new dialog.
Definition at line 1264 of file dialog-preferences.c.
void gnc_preferences_response_cb | ( | GtkDialog * | dialog, |
gint | response, | ||
GtkDialog * | unused | ||
) |
Handle a user click on one of the buttons at the bottom of the preference dialog. Also handles delete_window events, which have conveniently converted to a response by GtkDialog.
Definition at line 934 of file dialog-preferences.c.
GSList* add_ins = NULL |
A list of all additions that have been made to the preferences dialog. The data fields for this list are addition data structures.
Definition at line 116 of file dialog-preferences.c.