56 GtkWidget *pref_window = NULL;
111 GtkWidget *notebook = NULL;
113 if (main_struct != NULL && main_struct->
xmls != NULL && main_struct->
xmls->
main != NULL)
116 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 0);
130 GtkWidget *notebook = NULL;
132 if (main_struct != NULL && main_struct->
xmls != NULL && main_struct->
xmls->
main != NULL)
136 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 1);
163 doc_t *document = NULL;
166 if (toggle_button != NULL && main_struct != NULL && main_struct->
documents != NULL)
169 for(i = 0; i < main_struct->
documents->len; i++)
171 document = g_ptr_array_index(main_struct->
documents, i);
172 gtk_hex_show_offsets(GTK_HEX(document->
hex_widget), gtk_toggle_button_get_active(toggle_button));
This is the main structure.
void main_pref_window_init_interface(heraia_struct_t *main_struct)
Inits the main preferences window interface.
void record_and_hide_dialog_box(GtkWidget *dialog_box, window_prop_t *dialog_prop)
Record position and hide a dialog box.
void refresh_file_labels(heraia_struct_t *main_struct)
This function is refreshing the labels on the main window in order to reflect cursor position...
all_window_prop_t * win_prop
Keeps window properties.
window_prop_t * main_pref_window
main preference window
Proposal for a structure that will group all informations about a single document.
static void on_mp_display_offset_bt_toggled(GtkToggleButton *toggle_button, gpointer data)
Displays or not offsets.
static gboolean pref_window_delete(GtkWidget *widget, GdkEvent *event, gpointer data)
Closing the window.
xml_t * xmls
All the xmls used in the program, loaded at running time.
static void on_mp_tb_fp_bt_toggled(GtkToggleToolButton *tool_button, gpointer data)
prefs_t * prefs
All datas related to main preferences.
GtkWidget * hex_widget
hexwidget corresponding to the document
GtkBuilder * main
the main interface xml description
static void main_pref_window_connect_signals(heraia_struct_t *main_struct)
Connecting the window signals to the right functions.
This file contains all the definitions and includes all other .h files.
GtkWidget * heraia_get_widget(GtkBuilder *xml, gchar *widget_name)
This is a wrapper to the GtkBuilder xml get widget.
void save_preferences(heraia_struct_t *main_struct, prefs_t *prefs)
Save all preferences to the user preference file.
static void on_mp_tb_display_bt_toggled(GtkToggleToolButton *tool_button, gpointer data)
GPtrArray * documents
An array of doc_t in order to be able to open more than one doc.
static void on_mp_thousand_bt_toggled(GtkToggleButton *toggle_button, gpointer data)
Refreshes the file labels as an option has been sat.