2005-06-12 Jody Goldberg * Release 0.0.2 2005-06-11 Ivan, Wong Yat Cheung * goffice/gtk/Makefile.am: Fix typos. 2005-06-09 Morten Welinder * goffice/utils/go-libxml-extras.c (xml_node_get_enum, xml_node_set_enum): New functions. (xml_node_get_int, xml_node_get_double): Improve error handling. 2005-06-08 Ivan, Wong Yat Cheung * goffice/gtk/htmlhelp-stub.c: * goffice/gtk/htmlhelp-stub.h: * goffice/gtk/libhtmlhelp-stub.def: Remove * goffice/gtk/Makefile.am: Remove libgoffice-html-help-stub.la it no longer belongs here. * goffice/Makefile.am: * goffice/gtk/goffice-gtk.c: * goffice/utils/Makefile.am: Now stubs for Win32 are placed in libgoffice-win32-stub.la * goffice/utils/goffice-win32-stub.def: * goffice/utils/win32-stub.c: * goffice/utils/win32-stub.h: New * goffice/utils/go-file.[ch] (go_get_mime_type): Use FindMimeFromData() on Win32. Fall back to "text/plain" if no mime type is matched. [#304074] 2005-06-06 Jody Goldberg * goffice/app/go-plugin.c : Don't inherit from GTypeModule contain one and use it as long as we are active. 2005-06-06 Morten Welinder * goffice/utils/go-math.c (log1p): Define if needed. 2005-06-05 Jean Brefort * goffice/graph/gog-data-set.c: (gog_dataset_dup_to_simple): add a helper function to convert data to simple data. * goffice/graph/gog-data-set.h: ditto. * goffice/graph/gog-object.c: (dataset_dup), (gog_object_dup): add an optional data converter to gog_object_dup and define a default one. * goffice/graph/gog-object.h: ditto. * goffice/graph/gog-graph.c: use new gog_object_dup syntax. 2005-06-05 Jody Goldberg * goffice/app/go-plugin.c (go_plugin_get_type_module) : new in preparation of change to GOPlugin. 2005-06-05 Jody Goldberg * goffice/app/go-plugin.c (go_plugin_activate) : add a g_type_module_use (go_plugin_deactivate) : and an unuse. Things are still broken on exit. 2005-06-04 Emmanuel Pacaud * goffice/graph/gog-object (gog_object_populate_editor): remove g_message call. 2005-06-04 Jody Goldberg * plugins/plot_xy/plot-types.xml.in : XY priority 100 * plugins/plot_barcol/plot-types.xml.in : COL priority 90 BAR priority 80 * goffice/graph/gog-guru.c (cb_plot_families_init) : select if the current item is a higher priority than anything we've seen. (graph_guru_type_selector_new) : don't connect to the signal handler until after we select the default type. Sort the list of families. We need to prune this list. * goffice/graph/gog-plot-engine.c (cb_pending_plot_types_load) : load a priority for each family to allow for a reasonable default. 2005-06-04 Jody Goldberg * goffice/gtk/go-format-sel.c (nfs_init) : suppress warning. (generate_preview) : put the args in the right order and remove the debug spew. 2005-06-04 Jean Brefort * plugins/plot_surface/gog-surface.c: (gog_contour_view_render): fixed appearance, libart warnings and a major bug. 2005-06-03 Stepan Kasal * configure.in: Require libgsf 1.12.1; GSF_DYNAMIC_CLASS has changed. 2005-06-02 Emmanuel Pacaud * goffice/graph/Makefile.am: add gog-object-prefs.glade * goffice/graph/gog-graph.c (gog_graph_class_init): position of chart and title can be manual. * goffice/graph/gog-object-prefs.glade: new. * goffice/graph/gog-object.c (gog_editor_get_notebook): first page is the default page. (gog_object_set_property): handle compass and alignment properties. (gog_object_get_property): ditto. (object_pref_state_free): new. (cb_compass_changed): new. (cb_alignment_changed): new. (gog_object_populate_editor): new. It handles only compass and alignment flags. (gog_object_class_init): install compass and alignment properties. (gog_object_get_pos): renamed to gog_object_get_position_flags. Add a mask parameter in order to get only a subset of position flags. (gog_object_set_pos): renamed to gog_object_set_position_flags. Add a mask parameter. * goffice/graph/gog-style-prefs.glade: move line widgets to the left. It improves consistency of widget position when navigating through object tree. * goffice/graph/gog-styled-object.c (styled_object_populate_editor): call parent method. 2005-06-01 Jody Goldberg * goffice/utils/go-format.c (go_format_value_gstring) : pull over from gnumeric with a simplified structure to handle only ints and doubles. (go_style_format_condition) : ditto. 2005-05-30 Jean Brefort * plugins/plot_surface/xl-surface.c: (xl_contour_plot_build_matrix): set num-elements of the first series, not the last one. 2005-05-29 Jean Brefort * goffice/graph/gog-object.c: (gog_object_dup), (gog_object_dup_with_values): rewrote to share identical code. 2005-05-28 Jean Brefort * goffice/graph/gog-object.h: added missing declaration (gog_object_dup_with_values). 2005-05-28 Jean Brefort * goffice/graph/gog-object.c: (gog_object_dup_with_values): new function aimed at export charts. 2005-05-27 Ivan, Wong Yat Cheung * goffice/utils/go-file.c (go_shell_arg_to_uri): revert changes made by me in yesterday. (go_shell_argv_to_glib_encoding): New. For Win32 we need to get argv[] in utf-16 and convert them to utf-8 under NT and use g_locale_to_utf() under Win9x. 2005-05-27 Jean Brefort * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_view_render): fixed bars width and position. * plugins/plot_barcol/plot-types.xml.in: ditto. 2005-05-27 Jean Brefort * goffice/gtk/go-format-sel.c: (nfs_init): make the shortcut for currency symbol selection work (#305635). 2005-05-27 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_val_as_str), (go_data_vector_val_from_str), (go_data_vector_str_finalize), (go_data_vector_str_dup), (go_data_vector_str_as_str), (go_data_vector_str_from_str), (go_data_vector_str_load_len), (go_data_vector_str_load_values), (go_data_vector_str_get_value), (go_data_matrix_val_as_str), (go_data_matrix_val_from_str): fixed various concerns related to the abigochart plugin. 2005-05-26 Emmanuel Pacaud [#305010] * goffice/graph/gog-error-bar-prefs.glade: remove gnome requirement. * plugins/plot_pie/gog-pie-series-prefs.glade: ditto. * plugins/plot_pie/gog-ring-prefs.glade: ditto. 2005-05-26 Ivan, Wong Yat Cheung * goffice/utils/go-file.c (go_shell_arg_to_uri): Convert file name from system codepage to utf8 (glib/win32 now uses utf8). [#304874] 2005-05-25 Stepan Kasal * configure.in (PKG_PROG_PKG_CONFIG): Rephrase the explanation. 2005-05-24 Morten Welinder * goffice/utils/format.c (format_remove_decimal): In the fallback code, remove a decimals from all subformats. (find_currency): Accept quotes around the currency. Fixes recognition of accounting formats. [#305314] [#305313] 2005-05-23 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_file_sel_dialog, go_gtk_select_image): Insist on getting a toplevel. (It determines, for one thing, what screen to use.) * goffice/graph/gog-style.c (cb_image_file_select): Provide a toplevel. Fixes #305009. 2005-05-22 Jean Brefort * plugins/plot_barcol/gog-1.5d.c: (gog_series1_5d_update): Fix a trivial bug. 2005-05-20 Morten Welinder * goffice/gtk/goffice-gtk.c (go_access): Fix return type to int as we return -1 sometimes. * configure.in (set_more_warnings): Don't use -Wcrazy. 2005-05-20 Stepan Kasal * plugins/plot_barcol/gog-dropbar.c (gog_dropbar_view_render): Remove unused variables. 2005-05-20 Jean Brefort * goffice/graph/goffice-graph.h: change GOG_MS_DIM_TYPES value and add new ones. * goffice/graph/gog-axis.c: (gog_axis_set_property): remove labels and ticks for GOG_AXIS_PSEUDO_3D (enhance export to excel). * pixmaps/Makefile.am: add icons for minmax and dropbar plots. * plugins/plot_barcol/Makefile.am: add minmx and dropbar support. * plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_update), (gog_series1_5d_update), (gog_series1_5d_populate_editor), (go_plugin_init): ditto. * plugins/plot_barcol/gog-barcol.c: ditto. (gog_barcol_plot_populate_editor): ditto. * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_plot_type_name), (gog_dropbar_plot_class_init), (barcol_draw_rect), (gog_dropbar_view_render), (gog_dropbar_view_info_at_point), (gog_dropbar_view_class_init): ditto. * plugins/plot_barcol/gog-dropbar.h: ditto. * plugins/plot_barcol/gog-minmax-prefs.glade: ditto. * plugins/plot_barcol/gog-minmax.c: (gog_minmax_series_init_style), (gog_minmax_series_class_init), (gog_minmax_plot_set_property), (gog_minmax_plot_get_property), (gog_minmax_plot_type_name), (gog_minmax_axis_get_bounds), (cb_gap_changed), (gog_minmax_plot_populate_editor), (gog_minmax_swap_x_and_y), (gog_minmax_plot_class_init), (gog_minmax_plot_init), (gog_minmax_view_render), (gog_minmax_view_info_at_point), (gog_minmax_view_class_init): ditto. * plugins/plot_barcol/gog-minmax.h: ditto. * plugins/plot_barcol/plot-types.xml.in: ditto. * plugins/plot_barcol/plugin.xml.in: ditto. 2005-05-19 Jody Goldberg * goffice/data/go-data-simple.c (go_data_vector_val_as_str) : use format_get_row_sep. 2005-05-19 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete_calc_ticks): remove kludge by using center_on_ticks. * goffice/graph/gog-plot.c (gog_plot_get_axis_bounds): defaults center_on_ticks to TRUE. * plugins/plot_barcol/gog-barcol.c (gog_barcol_axis_get_bounds): center_on_ticks = FALSE. 2005-05-18 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete_init): scale doesn't depend on center_on_ticks. (map_discrete): ditto. (map_discrete_to_view): ditto. (map_discrete_from_view): ditto. (map_discrete_calc_ticks): tick_nbr doesn't depend on center_on_ticks. * goffice/graph/gog-axis-line.c (gog_axis_base_populate_editor): don't show layout page for GOG_AXIS_PSEUDO_3D. Call inherited populate_editor if gui==NULL. * plugins/plot_surface/gog-surface.c (gog_contour_plot_axis_get_bounds): maxima = num_elements - 1.0 * plugins/plot_surface/xl-surface.c (xl_contour_plot_axis_get_bounds): ditto. 2005-05-17 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_val_get_value), (go_data_vector_val_get_str): check args to avoid a segfault. 2005-05-16 Stepan Kasal * goffice/graph/gog-reg-curve.c (gog_reg_curve_get_value_at): Make this function static, without any declaration at the top. * goffice/utils/go-file.h (go_get_mime_type): Change the return type to `const gchar *'. * goffice/utils/go-file.c: ditto. * goffice/utils/format.c (beyond_precision, beyond_precisionl): Move the declarations to the top, into an #ifdef DEFINE_COMMON. * plugins/plot_surface/xl-surface.c (xl_contour_plot_axis_get_bounds): Make this more readable by moving part of the body ... (get_y_vector): ... to this new function. * tests/pie-demo.c (main): Adapt to the changed type of arg 1 of go_data_vector_str_new. 2005-05-14 J.H.M. Dassen (Ray) * configure.in: Supply GOFFICE_PLUGIN_LIBADD on all platforms, not just win32, in order to get complete dependency information in the plugins. Use -no-undefined in GOFFICE_PLUGIN_LDFLAGS on all platforms to ensure complete dependency information at link time. Update the BUG-REPORT argument to AC_INIT now that bugzilla.gnome.org has a "libgoffice" product. Enable a number of additional warnings (when available) for which the current code base is already virtually clean. 2005-05-12 Stepan Kasal * goffice/data/go-data-simple.h (go_data_vector_str_new): Change the type of the first parameter from (char**) back to (char const*const*) * goffice/data/go-data-simple.c: Do the same and adapt the code. 2005-05-12 Morten Welinder * goffice/utils/go-marker.c (go_marker_selector): Plug leak. Avoid const for non-const parameter. * goffice/gtk/go-action-combo-pixmaps.c (go_action_combo_pixmaps_create_tool_item): Take toolbar settings into account. * goffice/gtk/go-action-combo-color.c (make_icon): Multihead fix. * goffice/gtk/goffice-gtk.c (update_preview_cb): Multihead fix. * goffice/gtk/go-action-combo-stack.c (go_action_combo_stack_create_tool_item): Take theme into account. 2005-05-12 Jean Brefort * goffice/data/go-data-simple.c: (go_data_matrix_val_as_str), (go_data_matrix_val_from_str): always use a semicolon as row separator. 2005-05-11 Jean Brefort * pixmaps/chart_dropbar_1_1.png: update icon. * pixmaps/chart_dropbar_1_1.svg: ditto. * pixmaps/chart_dropbar_1_2.png: ditto. * pixmaps/chart_dropbar_1_2.svg: ditto. * pixmaps/chart_minmax_1_1.png: ditto. * pixmaps/chart_minmax_1_1.svg: ditto. * pixmaps/chart_minmax_1_2.png: ditto. * pixmaps/chart_minmax_1_2.svg: ditto. * pixmaps/chart_minmax_2_1.png: new icon. * pixmaps/chart_minmax_2_1.svg: ditto. * pixmaps/chart_minmax_2_2.png: ditto. * pixmaps/chart_minmax_2_2.svg: ditto. 2005-05-11 Jean Brefort * pixmaps/chart_dropbar_1_1.png: New icon. * pixmaps/chart_dropbar_1_1.svg: ditto. * pixmaps/chart_dropbar_1_2.png: ditto. * pixmaps/chart_dropbar_1_2.svg: ditto. * pixmaps/chart_minmax_1_1.png: ditto. * pixmaps/chart_minmax_1_1.svg: ditto. * pixmaps/chart_minmax_1_2.png: ditto. * pixmaps/chart_minmax_1_2.svg: ditto. * pixmaps/dropbar.xpm: ditto. * pixmaps/minmax.xpm: ditto. 2005-05-11 Jean Brefort * plugins/plot_surface/gog-surface.c: (gog_contour_plot_class_init): limit series number to 1. 2005-05-10 Emmanuel Pacaud * goffice/graph/gog-chart.c (gog_chart_map_free): unref map::chart. 2005-05-10 Jean Brefort * configure.in: add linear regressions in scatter plots. * goffice/goffice.c: (libgoffice_init): ditto. * goffice/graph/Makefile.am: ditto. * goffice/graph/goffice-graph.h: ditto. * goffice/graph/gog-guru.c: (cb_graph_guru_add_reg_curve), (cb_reg_curve_type_menu_create), (reg_curve_type_menu_create), (cb_attr_tree_selection_change): ditto. * goffice/graph/gog-object-xml.c: (gog_object_new_from_xml): ditto. * goffice/graph/gog-plot-engine.c: ditto. (gog_reg_curve_engine_service_get_description), (gog_reg_curve_engine_service_class_init), (gog_reg_curve_new_by_name), (cb_pending_reg_curve_types_load), (pending_reg_curves_types_load), (gog_reg_curve_service_read_xml), (gog_reg_curve_service_get_description), (gog_reg_curve_service_init), (gog_reg_curve_service_class_init), (gog_plugin_services_init), (gog_reg_curve_type_free), (create_reg_curve_types), (gog_reg_curve_types): ditto. * goffice/graph/gog-plot-engine.h: ditto. * goffice/graph/gog-reg-curve-prefs.glade: ditto. * goffice/graph/gog-reg-curve.c: (gog_reg_curve_init_style), (gog_reg_curve_populate_editor), (gog_reg_curve_finalize), (gog_reg_curve_type_name), (gog_reg_curve_class_init), (gog_reg_curve_init), (gog_reg_curve_dataset_dims), (gog_reg_curve_dataset_get_elem), (gog_reg_curve_dataset_dim_changed), (gog_reg_curve_dataset_init), (gog_reg_curve_new_by_type), (gog_reg_curve_get_value_at), (gog_reg_curve_get_equation), (gog_reg_curve_get_R2), (gog_reg_curve_get_bounds), (gog_reg_curve_view_render), (gog_reg_curve_view_size_allocate), (gog_reg_curve_view_class_init): ditto. * goffice/graph/gog-reg-curve.h: ditto. * goffice/graph/gog-reg-eqn-prefs.glade: ditto. * goffice/graph/gog-reg-eqn.c: (cb_text_pos_changed), (cb_text_visibility_changed), (gog_reg_eqn_set_property), (gog_reg_eqn_get_property), (gog_reg_eqn_init_style), (gog_reg_eqn_populate_editor), (gog_reg_eqn_type_name), (gog_reg_eqn_class_init), (gog_reg_eqn_init), (gog_reg_eqn_view_render), (gog_reg_eqn_view_class_init): ditto. * goffice/graph/gog-reg-eqn.h: ditto. * goffice/graph/gog-series-impl.h: ditto. * goffice/graph/gog-series.c: (regression_curve_can_add), (regression_curve_post_add), (regression_curve_pre_remove), (gog_series_class_init), (gog_series_init): ditto. * goffice/graph/gog-theme.c: (gog_themes_init): ditto. * plugins/Makefile.am: ditto. * plugins/plot_xy/gog-xy.c: (gog_xy_view_render), (gog_xy_view_size_allocate), (gog_xy_view_class_init), (gog_xy_series_view_render), (gog_xy_series_view_size_allocate), (gog_xy_series_view_class_init), (gog_xy_series_update), (gog_xy_series_init), (gog_xy_series_class_init): ditto. * plugins/reg_linear/Makefile.am: ditto. * plugins/reg_linear/gog-lin-reg.c: (gog_lin_reg_curve_update), (gog_lin_reg_curve_get_value_at), (gog_lin_reg_curve_get_equation), (gog_lin_reg_curve_get_R2), (gog_lin_reg_curve_finalize), (gog_lin_reg_curve_class_init), (gog_lin_reg_curve_init), (go_plugin_init), (go_plugin_shutdown): ditto. * plugins/reg_linear/gog-lin-reg.h: ditto. * plugins/reg_linear/plugin.xml.in: ditto. * plugins/reg_linear/reg-types.xml.in: ditto. * po/POTFILES.in: ditto. * plugins/plot_surface/xl-surface.c: (xl_contour_plot_axis_get_bounds): fixed a compilation warning. 2005-05-10 Jody Goldberg * configure.in : post release version bump