Commit 128ae8b2 authored by Morten Welinder's avatar Morten Welinder

Conf: enhance gnumeric-gconf to allow monitoring.

parent b104db7d
2009-07-01 Morten Welinder <terra@gnome.org>
* configure.in (libspreadsheet_reqs): Require goffice 0.7.9
2009-06-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet.c (sheet_get_nominal_printarea): make sure the
......
......@@ -16,8 +16,8 @@ Requirements
You need: Debian package name
glib >= 2.10.0 libglib2.0-dev
gtk+ >= 2.12.0 libgtk2.0-dev
libgsf >= 1.14.13 libgsf-1-dev
libgoffice >= 0.7.5 libgoffice-0-5-dev
libgsf >= 1.14.15 libgsf-1-dev
libgoffice >= 0.7.9 libgoffice-0-5-dev
libglade >= 2.3.6 libglade2-dev
gnome-xml >= 2.4.12 libxml2-dev
pango >= 1.12.0 libpango1.0-dev
......
......@@ -141,7 +141,7 @@ PKG_PROG_PKG_CONFIG(0.18)
dnl *****************************
libspreadsheet_reqs="
libgoffice-${GOFFICE_API_VER} >= 0.7.8
libgoffice-${GOFFICE_API_VER} >= 0.7.9
libgsf-1 >= 1.14.15
libxml-2.0 >= 2.4.12
"
......
......@@ -13,7 +13,7 @@ License: GPLv2
URL: http://www.gnome.org/gnumeric/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.9/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
BuildRequires: goffice-devel >= 0.7.8
BuildRequires: goffice-devel >= 0.7.9
BuildRequires: libgsf-devel >= 1.14.15
BuildRequires: libxml-2.0-devel >= 2.4.12
BuildRequires: glib-2.0-devel >= 2.12.0
......
......@@ -189,7 +189,6 @@ libspreadsheet_la_SOURCES = \
xml-sax-read.c \
xml-sax-write.c \
gnumeric-gconf.c \
gnumeric-gconf-priv.h \
print.c \
print-cell.c
......
2009-07-01 Morten Welinder <terra@gnome.org>
* dialog-preferences.c: Cleanup using gnumeric-gconf's new
abilities.
2009-06-29 Morten Welinder <terra@gnome.org>
* dialog-function-select.c (make_expr_example): New function.
......
This diff is collapsed.
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef _GNM_GCONF_PRIV_H_
# define _GNM_GCONF_PRIV_H_
G_BEGIN_DECLS
/*
* Note: This file must stay synchronized with the corresponding schema file!
*
* This file should only be included into gnumeric-gconf.c and
* dialogs/dialog-preferences.c
*/
#define GNM_CONF_DIR "gnumeric"
/*
* schemas/gnumeric-dialogs.schemas
*/
#define FUNCTION_SELECT_GCONF_DIR "functionselector"
#define FUNCTION_SELECT_GCONF_RECENT "recentfunctions"
#define FUNCTION_SELECT_GCONF_NUM_OF_RECENT "num-of-recent"
#define CONF_DEFAULT_FONT_DIR "core/defaultfont"
#define CONF_DEFAULT_FONT_NAME "name"
#define CONF_DEFAULT_FONT_SIZE "size"
#define CONF_DEFAULT_FONT_BOLD "bold"
#define CONF_DEFAULT_FONT_ITALIC "italic"
#define PLUGIN_GCONF_DIR "plugins"
#define PLUGIN_GCONF_ACTIVATE_NEW "activate-new"
#define PLUGIN_GCONF_ACTIVE "active"
#define PLUGIN_GCONF_FILE_STATES "file-states"
#define PLUGIN_GCONF_EXTRA_DIRS "extra-dirs"
#define AUTOFORMAT_GCONF_DIR "autoformat"
#define AUTOFORMAT_GCONF_EXTRA_DIRS "extra-dirs"
#define AUTOFORMAT_GCONF_SYS_DIR "sys-dir"
#define AUTOFORMAT_GCONF_USR_DIR "usr-dir"
#define PRINTSETUP_GCONF_DIR "printsetup"
#define PRINTSETUP_GCONF_ALL_SHEETS "all-sheets"
#define PRINTSETUP_GCONF_HEADER "header"
#define PRINTSETUP_GCONF_FOOTER "footer"
#define PRINTSETUP_GCONF_HF_FONT_NAME "hf-font-name"
#define PRINTSETUP_GCONF_HF_FONT_SIZE "hf-font-size"
#define PRINTSETUP_GCONF_HF_FONT_BOLD "hf-font-bold"
#define PRINTSETUP_GCONF_HF_FONT_ITALIC "hf-font-italic"
#define PRINTSETUP_GCONF_CENTER_HORIZONTALLY "center-horizontally"
#define PRINTSETUP_GCONF_CENTER_VERTICALLY "center-vertically"
#define PRINTSETUP_GCONF_PRINT_GRID_LINES "print-grid-lines"
#define PRINTSETUP_GCONF_EVEN_IF_ONLY_STYLES "print-even-if-only-styles"
#define PRINTSETUP_GCONF_PRINT_BLACK_AND_WHITE "print-black-n-white"
#define PRINTSETUP_GCONF_PRINT_TITLES "print-titles"
#define PRINTSETUP_GCONF_ACROSS_THEN_DOWN "across-then-down"
#define PRINTSETUP_GCONF_SCALE_PERCENTAGE "scale-percentage"
#define PRINTSETUP_GCONF_SCALE_PERCENTAGE_VALUE "scale-percentage-value"
#define PRINTSETUP_GCONF_SCALE_WIDTH "scale-width"
#define PRINTSETUP_GCONF_SCALE_HEIGHT "scale-height"
#define PRINTSETUP_GCONF_REPEAT_TOP "repeat-top"
#define PRINTSETUP_GCONF_REPEAT_LEFT "repeat-left"
#define PRINTSETUP_GCONF_MARGIN_TOP "margin-top"
#define PRINTSETUP_GCONF_MARGIN_BOTTOM "margin-bottom"
#define PRINTSETUP_GCONF_MARGIN_GTK_TOP "margin-gtk-top"
#define PRINTSETUP_GCONF_MARGIN_GTK_BOTTOM "margin-gtk-bottom"
#define PRINTSETUP_GCONF_MARGIN_GTK_LEFT "margin-gtk-left"
#define PRINTSETUP_GCONF_MARGIN_GTK_RIGHT "margin-gtk-right"
#define PRINTSETUP_GCONF_PAPER "paper"
#define PRINTSETUP_GCONF_PAPER_ORIENTATION "paper-orientation"
#define PRINTSETUP_GCONF_PREFERRED_UNIT "preferred-unit"
#define PRINTSETUP_GCONF_HEADER_FORMAT_LEFT "hf-left"
#define PRINTSETUP_GCONF_HEADER_FORMAT_MIDDLE "hf-middle"
#define PRINTSETUP_GCONF_HEADER_FORMAT_RIGHT "hf-right"
#define PRINTSETUP_GCONF_GTKSETTING "gtk-setting"
#define DIALOGS_GCONF_DIR "dialogs"
#define DIALOGS_GCONF_UNFOCUSED_RS "rs/unfocused"
/*
* schemas/gnumeric-general.schemas
*/
#define GNM_CONF_UNDO_DIR "undo"
#define GNM_CONF_UNDO_SIZE "size"
#define GNM_CONF_UNDO_MAXNUM "maxnum"
#define GNM_CONF_UNDO_SHOW_SHEET_NAME "show_sheet_name"
#define GNM_CONF_UNDO_MAX_DESCRIPTOR_WIDTH "max_descriptor_width"
#define GNM_CONF_FONT_DIR "core/defaultfont"
#define GNM_CONF_FONT_NAME "name"
#define GNM_CONF_FONT_SIZE "size"
#define GNM_CONF_FONT_BOLD "bold"
#define GNM_CONF_FONT_ITALIC "italic"
#define GNM_CONF_FILE_DIR "core/file"
#define GNM_CONF_FILE_HISTORY_N "history/n"
#define GNM_CONF_FILE_HISTORY_FILES "history/files"
#define GNM_CONF_FILE_OVERWRITE_DEFAULT "save/def-overwrite"
#define GNM_CONF_FILE_SINGLE_SHEET_SAVE "save/single_sheet"
#define GNM_CONF_WORKBOOK_NSHEETS "core/workbook/n-sheet"
#define GNM_CONF_WORKBOOK_NROWS "core/workbook/n-rows"
#define GNM_CONF_WORKBOOK_NCOLS "core/workbook/n-cols"
#define GNM_CONF_WORKBOOK_AUTOSAVE_TIME "core/workbook/autosave_time"
#define GNM_CONF_GUI_DIR "core/gui"
#define GNM_CONF_GUI_RES_H "screen/horizontaldpi"
#define GNM_CONF_GUI_RES_V "screen/verticaldpi"
#define GNM_CONF_GUI_ED_AUTOCOMPLETE "editing/autocomplete"
#define GNM_CONF_GUI_ED_ENTER_MOVES_DIR "editing/enter_moves_dir"
#define GNM_CONF_GUI_ED_TRANSITION_KEYS "editing/transitionkeys"
#define GNM_CONF_GUI_ED_LIVESCROLLING "editing/livescrolling"
#define GNM_CONF_GUI_ED_RECALC_LAG "editing/recalclag"
#define GNM_CONF_GUI_WINDOW_X "window/x"
#define GNM_CONF_GUI_WINDOW_Y "window/y"
#define GNM_CONF_GUI_ZOOM "window/zoom"
#define GNM_CONF_GUI_TOOLBARS "toolbars"
#define GNM_CONF_XML_COMPRESSION "core/xml/compression-level"
#define GNM_CONF_SORT_DIR "core/sort"
#define GNM_CONF_SORT_DEFAULT_HAS_HEADER "default/has-header"
#define GNM_CONF_SORT_DEFAULT_BY_CASE "default/by-case"
#define GNM_CONF_SORT_DEFAULT_RETAIN_FORM "default/retain-formats"
#define GNM_CONF_SORT_DEFAULT_ASCENDING "default/ascending"
#define GNM_CONF_SORT_DIALOG_MAX_INITIAL "dialog/max-initial-clauses"
#define GNM_CONF_CUTANDPASTE_DIR "cut-and-paste"
#define GNM_CONF_CUTANDPASTE_PREFER_CLIPBOARD "prefer-clipboard"
/*
* schemas/gnumeric-plugins.schemas
*/
#define PLUGIN_GCONF_LATEX "plugin/latex"
#define PLUGIN_GCONF_LATEX_USE_UTF8 "use-utf8"
G_END_DECLS
#endif /* _GNM_GCONF_PRIV_H_ */
This diff is collapsed.
......@@ -33,273 +33,382 @@ gboolean gnm_conf_get_detachable_toolbars (void);
GtkToolbarStyle gnm_conf_get_toolbar_style (void);
void gnm_conf_set_toolbar_style (GtkToolbarStyle);
GOConfNode *gnm_conf_get_autocorrect_first_letter_node (void);
gboolean gnm_conf_get_autocorrect_first_letter (void);
void gnm_conf_set_autocorrect_first_letter (gboolean);
GOConfNode *gnm_conf_get_autocorrect_first_letter_list_node (void);
GSList *gnm_conf_get_autocorrect_first_letter_list (void);
void gnm_conf_set_autocorrect_first_letter_list (GSList *);
GOConfNode *gnm_conf_get_autocorrect_init_caps_node (void);
gboolean gnm_conf_get_autocorrect_init_caps (void);
void gnm_conf_set_autocorrect_init_caps (gboolean);
GOConfNode *gnm_conf_get_autocorrect_init_caps_list_node (void);
GSList *gnm_conf_get_autocorrect_init_caps_list (void);
void gnm_conf_set_autocorrect_init_caps_list (GSList *);
GOConfNode *gnm_conf_get_autocorrect_names_of_days_node (void);
gboolean gnm_conf_get_autocorrect_names_of_days (void);
void gnm_conf_set_autocorrect_names_of_days (gboolean);
GOConfNode *gnm_conf_get_autocorrect_replace_node (void);
gboolean gnm_conf_get_autocorrect_replace (void);
void gnm_conf_set_autocorrect_replace (gboolean);
GOConfNode *gnm_conf_get_autoformat_extra_dirs_node (void);
GSList *gnm_conf_get_autoformat_extra_dirs (void);
void gnm_conf_set_autoformat_extra_dirs (GSList *);
GOConfNode *gnm_conf_get_autoformat_sys_dir_node (void);
const char *gnm_conf_get_autoformat_sys_dir (void);
void gnm_conf_set_autoformat_sys_dir (const char *);
GOConfNode *gnm_conf_get_autoformat_usr_dir_node (void);
const char *gnm_conf_get_autoformat_usr_dir (void);
void gnm_conf_set_autoformat_usr_dir (const char *);
GOConfNode *gnm_conf_get_core_defaultfont_bold_node (void);
gboolean gnm_conf_get_core_defaultfont_bold (void);
void gnm_conf_set_core_defaultfont_bold (gboolean);
GOConfNode *gnm_conf_get_core_defaultfont_italic_node (void);
gboolean gnm_conf_get_core_defaultfont_italic (void);
void gnm_conf_set_core_defaultfont_italic (gboolean);
GOConfNode *gnm_conf_get_core_defaultfont_name_node (void);
const char *gnm_conf_get_core_defaultfont_name (void);
void gnm_conf_set_core_defaultfont_name (const char *);
GOConfNode *gnm_conf_get_core_defaultfont_size_node (void);
double gnm_conf_get_core_defaultfont_size (void);
void gnm_conf_set_core_defaultfont_size (double);
GOConfNode *gnm_conf_get_core_file_save_def_overwrite_node (void);
gboolean gnm_conf_get_core_file_save_def_overwrite (void);
void gnm_conf_set_core_file_save_def_overwrite (gboolean);
GOConfNode *gnm_conf_get_core_file_save_single_sheet_node (void);
gboolean gnm_conf_get_core_file_save_single_sheet (void);
void gnm_conf_set_core_file_save_single_sheet (gboolean);
GOConfNode *gnm_conf_get_core_gui_editing_autocomplete_node (void);
gboolean gnm_conf_get_core_gui_editing_autocomplete (void);
void gnm_conf_set_core_gui_editing_autocomplete (gboolean);
GOConfNode *gnm_conf_get_core_gui_editing_enter_moves_dir_node (void);
GODirection gnm_conf_get_core_gui_editing_enter_moves_dir (void);
void gnm_conf_set_core_gui_editing_enter_moves_dir (GODirection);
GOConfNode *gnm_conf_get_core_gui_editing_livescrolling_node (void);
gboolean gnm_conf_get_core_gui_editing_livescrolling (void);
void gnm_conf_set_core_gui_editing_livescrolling (gboolean);
GOConfNode *gnm_conf_get_core_gui_editing_recalclag_node (void);
int gnm_conf_get_core_gui_editing_recalclag (void);
void gnm_conf_set_core_gui_editing_recalclag (int);
GOConfNode *gnm_conf_get_core_gui_editing_transitionkeys_node (void);
gboolean gnm_conf_get_core_gui_editing_transitionkeys (void);
void gnm_conf_set_core_gui_editing_transitionkeys (gboolean);
GOConfNode *gnm_conf_get_core_gui_screen_horizontaldpi_node (void);
double gnm_conf_get_core_gui_screen_horizontaldpi (void);
void gnm_conf_set_core_gui_screen_horizontaldpi (double);
GOConfNode *gnm_conf_get_core_gui_screen_verticaldpi_node (void);
double gnm_conf_get_core_gui_screen_verticaldpi (void);
void gnm_conf_set_core_gui_screen_verticaldpi (double);
GOConfNode *gnm_conf_get_core_gui_toolbars_FormatToolbar_node (void);
gboolean gnm_conf_get_core_gui_toolbars_FormatToolbar (void);
void gnm_conf_set_core_gui_toolbars_FormatToolbar (gboolean);
GOConfNode *gnm_conf_get_core_gui_toolbars_FormatToolbar_position_node (void);
GtkPositionType gnm_conf_get_core_gui_toolbars_FormatToolbar_position (void);
void gnm_conf_set_core_gui_toolbars_FormatToolbar_position (GtkPositionType);
GOConfNode *gnm_conf_get_core_gui_toolbars_LongFormatToolbar_node (void);
gboolean gnm_conf_get_core_gui_toolbars_LongFormatToolbar (void);
void gnm_conf_set_core_gui_toolbars_LongFormatToolbar (gboolean);
GOConfNode *gnm_conf_get_core_gui_toolbars_LongFormatToolbar_position_node (void);
GtkPositionType gnm_conf_get_core_gui_toolbars_LongFormatToolbar_position (void);
void gnm_conf_set_core_gui_toolbars_LongFormatToolbar_position (GtkPositionType);
GOConfNode *gnm_conf_get_core_gui_toolbars_ObjectToolbar_node (void);
gboolean gnm_conf_get_core_gui_toolbars_ObjectToolbar (void);
void gnm_conf_set_core_gui_toolbars_ObjectToolbar (gboolean);
GOConfNode *gnm_conf_get_core_gui_toolbars_ObjectToolbar_position_node (void);
GtkPositionType gnm_conf_get_core_gui_toolbars_ObjectToolbar_position (void);
void gnm_conf_set_core_gui_toolbars_ObjectToolbar_position (GtkPositionType);
GOConfNode *gnm_conf_get_core_gui_toolbars_StandardToolbar_node (void);
gboolean gnm_conf_get_core_gui_toolbars_StandardToolbar (void);
void gnm_conf_set_core_gui_toolbars_StandardToolbar (gboolean);
GOConfNode *gnm_conf_get_core_gui_toolbars_StandardToolbar_position_node (void);
GtkPositionType gnm_conf_get_core_gui_toolbars_StandardToolbar_position (void);
void gnm_conf_set_core_gui_toolbars_StandardToolbar_position (GtkPositionType);
GOConfNode *gnm_conf_get_core_gui_window_x_node (void);
double gnm_conf_get_core_gui_window_x (void);
void gnm_conf_set_core_gui_window_x (double);
GOConfNode *gnm_conf_get_core_gui_window_y_node (void);
double gnm_conf_get_core_gui_window_y (void);
void gnm_conf_set_core_gui_window_y (double);
GOConfNode *gnm_conf_get_core_gui_window_zoom_node (void);
double gnm_conf_get_core_gui_window_zoom (void);
void gnm_conf_set_core_gui_window_zoom (double);
GOConfNode *gnm_conf_get_core_sort_default_ascending_node (void);
gboolean gnm_conf_get_core_sort_default_ascending (void);
void gnm_conf_set_core_sort_default_ascending (gboolean);
GOConfNode *gnm_conf_get_core_sort_default_by_case_node (void);
gboolean gnm_conf_get_core_sort_default_by_case (void);
void gnm_conf_set_core_sort_default_by_case (gboolean);
GOConfNode *gnm_conf_get_core_sort_default_retain_formats_node (void);
gboolean gnm_conf_get_core_sort_default_retain_formats (void);
void gnm_conf_set_core_sort_default_retain_formats (gboolean);
GOConfNode *gnm_conf_get_core_sort_dialog_max_initial_clauses_node (void);
int gnm_conf_get_core_sort_dialog_max_initial_clauses (void);
void gnm_conf_set_core_sort_dialog_max_initial_clauses (int);
GOConfNode *gnm_conf_get_core_workbook_autosave_time_node (void);
int gnm_conf_get_core_workbook_autosave_time (void);
void gnm_conf_set_core_workbook_autosave_time (int);
GOConfNode *gnm_conf_get_core_workbook_n_cols_node (void);
int gnm_conf_get_core_workbook_n_cols (void);
void gnm_conf_set_core_workbook_n_cols (int);
GOConfNode *gnm_conf_get_core_workbook_n_rows_node (void);
int gnm_conf_get_core_workbook_n_rows (void);
void gnm_conf_set_core_workbook_n_rows (int);
GOConfNode *gnm_conf_get_core_workbook_n_sheet_node (void);
int gnm_conf_get_core_workbook_n_sheet (void);
void gnm_conf_set_core_workbook_n_sheet (int);
GOConfNode *gnm_conf_get_core_xml_compression_level_node (void);
int gnm_conf_get_core_xml_compression_level (void);
void gnm_conf_set_core_xml_compression_level (int);
GOConfNode *gnm_conf_get_cut_and_paste_prefer_clipboard_node (void);
gboolean gnm_conf_get_cut_and_paste_prefer_clipboard (void);
void gnm_conf_set_cut_and_paste_prefer_clipboard (gboolean);
GOConfNode *gnm_conf_get_dialogs_rs_unfocused_node (void);
gboolean gnm_conf_get_dialogs_rs_unfocused (void);
void gnm_conf_set_dialogs_rs_unfocused (gboolean);
GOConfNode *gnm_conf_get_functionselector_num_of_recent_node (void);
int gnm_conf_get_functionselector_num_of_recent (void);
void gnm_conf_set_functionselector_num_of_recent (int);
GOConfNode *gnm_conf_get_functionselector_recentfunctions_node (void);
GSList *gnm_conf_get_functionselector_recentfunctions (void);
void gnm_conf_set_functionselector_recentfunctions (GSList *);
GOConfNode *gnm_conf_get_plugin_latex_use_utf8_node (void);
gboolean gnm_conf_get_plugin_latex_use_utf8 (void);
void gnm_conf_set_plugin_latex_use_utf8 (gboolean);
GOConfNode *gnm_conf_get_plugins_activate_new_node (void);
gboolean gnm_conf_get_plugins_activate_new (void);
void gnm_conf_set_plugins_activate_new (gboolean);
GOConfNode *gnm_conf_get_plugins_active_node (void);
GSList *gnm_conf_get_plugins_active (void);
void gnm_conf_set_plugins_active (GSList *);
GOConfNode *gnm_conf_get_plugins_extra_dirs_node (void);
GSList *gnm_conf_get_plugins_extra_dirs (void);
void gnm_conf_set_plugins_extra_dirs (GSList *);
GOConfNode *gnm_conf_get_plugins_file_states_node (void);
GSList *gnm_conf_get_plugins_file_states (void);
void gnm_conf_set_plugins_file_states (GSList *);
GOConfNode *gnm_conf_get_plugins_known_node (void);
GSList *gnm_conf_get_plugins_known (void);
void gnm_conf_set_plugins_known (GSList *);
GOConfNode *gnm_conf_get_printsetup_across_then_down_node (void);
gboolean gnm_conf_get_printsetup_across_then_down (void);
void gnm_conf_set_printsetup_across_then_down (gboolean);
GOConfNode *gnm_conf_get_printsetup_all_sheets_node (void);
gboolean gnm_conf_get_printsetup_all_sheets (void);
void gnm_conf_set_printsetup_all_sheets (gboolean);
GOConfNode *gnm_conf_get_printsetup_center_horizontally_node (void);
gboolean gnm_conf_get_printsetup_center_horizontally (void);
void gnm_conf_set_printsetup_center_horizontally (gboolean);
GOConfNode *gnm_conf_get_printsetup_center_vertically_node (void);
gboolean gnm_conf_get_printsetup_center_vertically (void);
void gnm_conf_set_printsetup_center_vertically (gboolean);
GOConfNode *gnm_conf_get_printsetup_footer_node (void);
GSList *gnm_conf_get_printsetup_footer (void);
void gnm_conf_set_printsetup_footer (GSList *);
GOConfNode *gnm_conf_get_printsetup_gtk_setting_node (void);
GSList *gnm_conf_get_printsetup_gtk_setting (void);
void gnm_conf_set_printsetup_gtk_setting (GSList *);
GOConfNode *gnm_conf_get_printsetup_header_node (void);
GSList *gnm_conf_get_printsetup_header (void);
void gnm_conf_set_printsetup_header (GSList *);
GOConfNode *gnm_conf_get_printsetup_hf_font_bold_node (void);
gboolean gnm_conf_get_printsetup_hf_font_bold (void);
void gnm_conf_set_printsetup_hf_font_bold (gboolean);
GOConfNode *gnm_conf_get_printsetup_hf_font_italic_node (void);
gboolean gnm_conf_get_printsetup_hf_font_italic (void);
void gnm_conf_set_printsetup_hf_font_italic (gboolean);
GOConfNode *gnm_conf_get_printsetup_hf_font_name_node (void);
const char *gnm_conf_get_printsetup_hf_font_name (void);
void gnm_conf_set_printsetup_hf_font_name (const char *);
GOConfNode *gnm_conf_get_printsetup_hf_font_size_node (void);
double gnm_conf_get_printsetup_hf_font_size (void);
void gnm_conf_set_printsetup_hf_font_size (double);
GOConfNode *gnm_conf_get_printsetup_hf_left_node (void);
GSList *gnm_conf_get_printsetup_hf_left (void);
void gnm_conf_set_printsetup_hf_left (GSList *);
GOConfNode *gnm_conf_get_printsetup_hf_middle_node (void);
GSList *gnm_conf_get_printsetup_hf_middle (void);
void gnm_conf_set_printsetup_hf_middle (GSList *);
GOConfNode *gnm_conf_get_printsetup_hf_right_node (void);
GSList *gnm_conf_get_printsetup_hf_right (void);
void gnm_conf_set_printsetup_hf_right (GSList *);
GOConfNode *gnm_conf_get_printsetup_margin_bottom_node (void);
double gnm_conf_get_printsetup_margin_bottom (void);
void gnm_conf_set_printsetup_margin_bottom (double);
GOConfNode *gnm_conf_get_printsetup_margin_gtk_bottom_node (void);
double gnm_conf_get_printsetup_margin_gtk_bottom (void);
void gnm_conf_set_printsetup_margin_gtk_bottom (double);
GOConfNode *gnm_conf_get_printsetup_margin_gtk_left_node (void);
double gnm_conf_get_printsetup_margin_gtk_left (void);
void gnm_conf_set_printsetup_margin_gtk_left (double);
GOConfNode *gnm_conf_get_printsetup_margin_gtk_right_node (void);
double gnm_conf_get_printsetup_margin_gtk_right (void);
void gnm_conf_set_printsetup_margin_gtk_right (double);
GOConfNode *gnm_conf_get_printsetup_margin_gtk_top_node (void);
double gnm_conf_get_printsetup_margin_gtk_top (void);
void gnm_conf_set_printsetup_margin_gtk_top (double);
GOConfNode *gnm_conf_get_printsetup_margin_top_node (void);
double gnm_conf_get_printsetup_margin_top (void);
void gnm_conf_set_printsetup_margin_top (double);
GOConfNode *gnm_conf_get_printsetup_paper_node (void);
const char *gnm_conf_get_printsetup_paper (void);
void gnm_conf_set_printsetup_paper (const char *);
GOConfNode *gnm_conf_get_printsetup_paper_orientation_node (void);
int gnm_conf_get_printsetup_paper_orientation (void);
void gnm_conf_set_printsetup_paper_orientation (int);
GOConfNode *gnm_conf_get_printsetup_preferred_unit_node (void);
GtkUnit gnm_conf_get_printsetup_preferred_unit (void);
void gnm_conf_set_printsetup_preferred_unit (GtkUnit);
GOConfNode *gnm_conf_get_printsetup_print_black_n_white_node (void);
gboolean gnm_conf_get_printsetup_print_black_n_white (void);
void gnm_conf_set_printsetup_print_black_n_white (gboolean);
GOConfNode *gnm_conf_get_printsetup_print_even_if_only_styles_node (void);
gboolean gnm_conf_get_printsetup_print_even_if_only_styles (void);
void gnm_conf_set_printsetup_print_even_if_only_styles (gboolean);
GOConfNode *gnm_conf_get_printsetup_print_grid_lines_node (void);
gboolean gnm_conf_get_printsetup_print_grid_lines (void);
void gnm_conf_set_printsetup_print_grid_lines (gboolean);
GOConfNode *gnm_conf_get_printsetup_print_titles_node (void);
gboolean gnm_conf_get_printsetup_print_titles (void);
void gnm_conf_set_printsetup_print_titles (gboolean);
GOConfNode *gnm_conf_get_printsetup_repeat_left_node (void);
const char *gnm_conf_get_printsetup_repeat_left (void);
void gnm_conf_set_printsetup_repeat_left (const char *);
GOConfNode *gnm_conf_get_printsetup_repeat_top_node (void);
const char *gnm_conf_get_printsetup_repeat_top (void);
void gnm_conf_set_printsetup_repeat_top (const char *);
GOConfNode *gnm_conf_get_printsetup_scale_height_node (void);
int gnm_conf_get_printsetup_scale_height (void);
void gnm_conf_set_printsetup_scale_height (int);
GOConfNode *gnm_conf_get_printsetup_scale_percentage_node (void);
gboolean gnm_conf_get_printsetup_scale_percentage (void);
void gnm_conf_set_printsetup_scale_percentage (gboolean);
GOConfNode *gnm_conf_get_printsetup_scale_percentage_value_node (void);
double gnm_conf_get_printsetup_scale_percentage_value (void);
void gnm_conf_set_printsetup_scale_percentage_value (double);
GOConfNode *gnm_conf_get_printsetup_scale_width_node (void);
int gnm_conf_get_printsetup_scale_width (void);
void gnm_conf_set_printsetup_scale_width (int);
GOConfNode *gnm_conf_get_undo_max_descriptor_width_node (void);
int gnm_conf_get_undo_max_descriptor_width (void);
void gnm_conf_set_undo_max_descriptor_width (int);
GOConfNode *gnm_conf_get_undo_maxnum_node (void);
int gnm_conf_get_undo_maxnum (void);
void gnm_conf_set_undo_maxnum (int);
GOConfNode *gnm_conf_get_undo_show_sheet_name_node (void);
gboolean gnm_conf_get_undo_show_sheet_name (void);
void gnm_conf_set_undo_show_sheet_name (gboolean);
GOConfNode *gnm_conf_get_undo_size_node (void);
int gnm_conf_get_undo_size (void);
void gnm_conf_set_undo_size (int);
GOConfNode *gnm_conf_get_autocorrect_dir_node (void);
GOConfNode *gnm_conf_get_autoformat_dir_node (void);
GOConfNode *gnm_conf_get_core_defaultfont_dir_node (void);
GOConfNode *gnm_conf_get_core_file_save_dir_node (void);
GOConfNode *gnm_conf_get_core_gui_editing_dir_node (void);
GOConfNode *gnm_conf_get_core_gui_screen_dir_node (void);
GOConfNode *gnm_conf_get_core_gui_toolbars_dir_node (void);
GOConfNode *gnm_conf_get_core_gui_window_dir_node (void);
GOConfNode *gnm_conf_get_core_sort_default_dir_node (void);
GOConfNode *gnm_conf_get_core_sort_dialog_dir_node (void);
GOConfNode *gnm_conf_get_core_workbook_dir_node (void);
GOConfNode *gnm_conf_get_core_xml_dir_node (void);
GOConfNode *gnm_conf_get_cut_and_paste_dir_node (void);
GOConfNode *gnm_conf_get_dialogs_rs_dir_node (void);
GOConfNode *gnm_conf_get_functionselector_dir_node (void);
GOConfNode *gnm_conf_get_plugin_latex_dir_node (void);
GOConfNode *gnm_conf_get_plugins_dir_node (void);
GOConfNode *gnm_conf_get_printsetup_dir_node (void);
GOConfNode *gnm_conf_get_undo_dir_node (void);
/* ----------- AUTOMATICALLY GENERATED CODE ABOVE -- DO NOT EDIT ----------- */
G_END_DECLS
......
......@@ -24,7 +24,6 @@
#include "workbook.h"
#include "workbook-view.h"
#include "gnumeric-gconf.h"
#include "gnumeric-gconf-priv.h"
#include "parse-util.h"
#include <goffice/goffice.h>
......
......@@ -96,9 +96,8 @@ autocorrect_init (void)
autocorrect_load ();
autocorrect.notification_id =
go_conf_add_monitor (gnm_conf_get_root (),
AUTOCORRECT_DIRECTORY,
&cb_autocorrect_update, NULL);
go_conf_add_monitor (gnm_conf_get_autocorrect_dir_node (),
NULL, &cb_autocorrect_update, NULL);
g_object_set_data_full (gnm_app_get_app (),
"ToolsAutoCorrect", GINT_TO_POINTER (1),
(GDestroyNotify) autocorrect_clear);
......
2009-07-01 Morten Welinder <terra@gnome.org>
* widget-font-selector.c (fs_modify_style): If nothing changed, do
nothing.
2009-06-20 Morten Welinder <terra@gnome.org>
* Release 1.9.9
......
......@@ -79,16 +79,23 @@ static void
fs_modify_style (FontSelector *fs, GnmStyle *modification)
{
GnmStyle *original = fs->mstyle;
GnmStyle *new_style;
g_return_if_fail (modification != NULL);
fs->mstyle = gnm_style_new_merged (original, modification);
g_signal_emit (G_OBJECT (fs),
fs_signals[FONT_CHANGED], 0, modification);
foo_canvas_item_set (fs->font_preview_grid,
"default-style", fs->mstyle,
NULL);
new_style = gnm_style_new_merged (original, modification);
if (gnm_style_equal (new_style, original)) {
gnm_style_unref (new_style);
} else {
fs->mstyle = new_style;
g_signal_emit (G_OBJECT (fs),
fs_signals[FONT_CHANGED], 0, modification);
foo_canvas_item_set (fs->font_preview_grid,
"default-style", fs->mstyle,
NULL);
gnm_style_unref (original);
}
gnm_style_unref (modification);
gnm_style_unref (original);
}
static void
......@@ -133,9 +140,8 @@ list_init (GtkTreeView* view)
store = gtk_list_store_new (1, G_TYPE_STRING);
gtk_tree_view_set_model (view, GTK_TREE_MODEL (store));
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes (
NULL,
renderer, "text", 0, NULL);
column = gtk_tree_view_column_new_with_attributes
(NULL, renderer, "text", 0, NULL);
gtk_tree_view_column_set_expand (column, TRUE);
gtk_tree_view_append_column (view, column);
g_signal_connect (view, "realize", G_CALLBACK (cb_list_adjust), NULL);
......
2009-07-01 Morten Welinder <terra@gnome.org>
* handle-conf-options (make_get_conf_node): Create _get_node and
_get_dir_node functions too.
2009-06-29 Morten Welinder <terra@gnome.org>
* dumpdef.pl (parse_header): Handle the argument-as-type-only
......
......@@ -269,6 +269,21 @@ sub number_schemas {
# -----------------------------------------------------------------------------
sub make_get_conf_node {
my ($key,$var,$suffix,$phfile,$pcfile) = @_;
my $id = "gnm_conf_get_${var}_${suffix}";
${$phfile} .= "GOConfNode *$id (void);\n";
${$pcfile} .= "GOConfNode *\n";
${$pcfile} .= "$id (void)\n";
${$pcfile} .= "{\n";
${$pcfile} .= "\tconst char *key = \"$key\";\n";
${$pcfile} .= "\treturn get_node (key);\n";
${$pcfile} .= "}\n\n";
}
sub create_hcfile {
@schemas = sort { $a->{'applyto'} cmp $b->{'applyto'} } @schemas;
&number_schemas ();
......@@ -289,6 +304,8 @@ sub create_hcfile {
my $cfile = "";
my $hfile = "";
my %dirs;
foreach my $schema (@schemas) {
my $i = $schema->{'i'};
my $key = $schema->{'applyto'};
......@@ -310,6 +327,10 @@ sub create_hcfile {
my $root;
if ($key =~ s{/apps/gnumeric/}{}) {
$root = 'root';
&make_get_conf_node ($key, $var, "node", \$hfile, \$cfile);
my $dir = $key; $dir =~ s{/[^/]+$}{};
$dirs{$dir} = 1;
} else {
$root = 'NULL';
}
......@@ -320,7 +341,6 @@ sub create_hcfile {
my $get_head = "$ctype\ngnm_conf_get_$var (void)";
my $set_head = "void\ngnm_conf_set_$var (${ctypes}x)";
if ($type eq 'bool') {
$default = uc $default;
......@@ -405,6 +425,12 @@ sub create_hcfile {
}
}
for my $dir (sort keys %dirs) {
my $var = $dir;
$var =~ s{[^a-zA-Z0-9_]}{_}g;
&make_get_conf_node ($dir, $var, "dir_node", \$hfile, \$cfile);
}
print $hfile if $do_hfile;
print $cfile if $do_cfile;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment