GnuCash
5.6-150-g038405b370+
|
Files | |
file | dialog-preferences.c |
Dialog for handling user preferences. | |
file | dialog-preferences.h |
Dialog for handling user preferences. | |
Data Structures | |
struct | addition |
This data structure holds the information for a single addition to the preferences dialog. More... | |
struct | copy_data |
This data structure is used while building the preferences dialog to copy a grid from a glade file to the dialog under construction. More... | |
Functions | |
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. More... | |
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. More... | |
void | gnc_save_on_close_expires_cb (GtkToggleButton *button, GtkWidget *dialog) |
Called when the save-on-close checkbutton is toggled. | |
gboolean | gnc_preferences_delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
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. More... | |
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. More... | |
void | gnc_preferences_dialog (GtkWindow *parent) |
This function creates the preferences dialog and presents it to the user. More... | |
Variables | |
GSList * | add_ins = NULL |
A list of all additions that have been made to the preferences dialog. More... | |
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 155 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 418 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 433 of file dialog-preferences.c.
void gnc_preferences_dialog | ( | GtkWindow * | parent | ) |
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 1572 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 1200 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 121 of file dialog-preferences.c.