1. 16 Nov, 2007 1 commit
    • Jody Goldberg's avatar
      add G_BEGIN_DECL/G_END_DECL around the header content. · f85b4715
      Jody Goldberg authored
              reformat the guard decls
              Add a vim/emacs fmt line
              fix namespacing of preproc flags from configure.in that go into public headers
              2007-10-12  Jody Goldberg <jody@gnome.org>
              	* libspreadsheet-1.7.pc.in : Set the cflags to include the target, and
              	  subdir until we fix the header includes and rename /src.
              	  Add LIBDIR/include to cflags
              	  Add PluginDir.
      svn path=/trunk/; revision=16149
  2. 08 Aug, 2007 1 commit
  3. 19 Jun, 2007 1 commit
    • Jody Goldberg's avatar
      Merge with into this new amalgamated file. The difference between the old · 0f7aa532
      Jody Goldberg authored
      2007-06-18  Jody Goldberg <jody@gnome.org>
      	* src/gnumeric-pane.c : Merge with
      	* src/gnumeric-canvas.c : into
      	* src/gnm-pane.c : this new amalgamated file.  The difference between
      	  the old GnmCanvas and GnumericPane was arbitrary and more of a
      	  result of history than design.  Their state was co-mingled and it
      	  was long past time to cleanup the mess and merge them.
      svn path=/trunk/; revision=15615
  4. 23 Jul, 2004 1 commit
    • Jody Goldberg's avatar
      change 'accept' into an enum and handle arrays and range fills here. · b1b8c29f
      Jody Goldberg authored
      2004-07-22  Jody Goldberg <jody@gnome.org>
      	* src/workbook-edit.c (wbcg_edit_finish) : change 'accept' into an
      	  enum and handle arrays and range fills here.
      	* src/parser.y : Add distinct productions for array elements with
      	  {1\2\3;4\5\6} vs {1,2,3;4,5,6}
      	(build_array) : add some error messages empty and asymetric arrays.
  5. 04 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      ahhh, I understand now. names with expr_len == 0 represent the · 1c9758c2
      Jody Goldberg authored
      2002-10-04  Jody Goldberg <jody@gnome.org>
      	* ms-excel-read.c (ms_excel_parse_NAME) : ahhh, I understand now.
      	  names with expr_len == 0 represent the placeholders used for unknown
      2002-10-04  Jody Goldberg <jody@gnome.org>
      	* dialog-define-names.c : port to TreeView.
      	* dialog-analysis-tools.c : Use the control from the state rather than
      	  the tool.
      2002-10-04  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control.c (wb_control_parse_and_jump) : use the new
      	  undo support and handle assigning to a placeholder.
      	* src/gnumeric-canvas.h : Clean up the naming convention to use
      	  GnmCanvas in all locations.
      	* src/expr-name.c (expr_name_add) : its ok if the expr is NULL create
      	  a placeholder.
      	(expr_name_is_placeholder) : new.
      	* src/commands.c (CmdChangeSummary) : this has no business being
      	  control specific.
      	(CmdPrintSetup) : ditto.
      	(CmdDefineName) : new.
      	* src/command-context.c (gnumeric_error_calc) : new.
      	(gnm_error_calc) : new.
      2002-10-03  Jody Goldberg <jody@gnome.org>
      	* src/format.c (format_get_currency) : convert locale's currency
      	  symbol to utf8.
      	(gnumeric_setlocale) : clear the cache currency symbol.
      2002-10-03  Jody Goldberg <jody@gnome.org>
      	* src/expr.c (gnm_expr_is_err) : new util.
  6. 15 Apr, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Declare WorkbookControlComponent and WorkbookControlStandalone. · 2ce4773c
      Jon Kåre Hellan authored
      * src/gui-gnumeric.h: Declare WorkbookControlComponent and
      * GNOME_Gnumeric.server.in.in: Add gnumeric-component /
      * src/Makefile.am: Add gnumeric-component to build, and new files.
      * src/workbook-control-gui.h (WORKBOOK_CONTROL_GUI_CLASS): Fix typo.
      * src/workbook-control-standalone.h: New file. wbcg class for
      standalone app - public header file. Dummy for now.
      * src/workbook-control-standalone.c: New file. wbcg class for
      standalone app - source file. Dummy for now.
      * src/workbook-control-standalone-priv.h: New file. wbcg class for
      standalone app - private header file. Dummy for now.
      * src/workbook-control-component.h: New file. Bonobo component
      class - public header file. Dummy for now.
      * src/workbook-control-component.c: New file. Bonobo component
      class - source file. Dummy for now.
      * src/workbook-control-component-priv.h: New file. Bonobo
      component class - private header file. Dummy for now.
      * src/main-component.c: New file. Main entry point for Bonobo
      * src/main-application.c: New file: Main entry point for
      standalone application.
  7. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      2002-02-15  Jody Goldberg <jody@gnome.org>
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      	* src/formats.c (cell_format_classify) : handle general.
      	* src/file-priv.h : Inherit from GObject.
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      	* src/Makefile.am : distribute the marshaller.list
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      2002-02-11  Jody Goldberg <jody@gnome.org>
      	* src/stf.c (stf_init) : Make the names of the text import/export
  8. 24 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
  9. 30 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      new. (sc_sheet) : const. (sc_update_cursor_pos) : delete. · 43215bb3
      Jody Goldberg authored
      2001-07-30  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-control.c (sc_wbc) : new.
      	(sc_sheet) : const.
      	(sc_update_cursor_pos) : delete.
      	* src/gnumeric-pane.c (gnm_pane_special_cursor_bound_set) : new.
      	(gnm_pane_special_cursor_start) : ditto.
      	(gnm_pane_special_cursor_start) : ditto.
      	* src/sheet-control-gui.c (scg_update_cursor_pos)  : fold into
      	(scg_resize) : reposition all of the cursors.
      	(scg_edit_start) renamed from scg_create_editor.
      	(scg_edit_stop) : renamed from scg_stop_editing.
      	(scg_special_cursor_start) : new.
      	(scg_special_cursor_stop) : new.
      	(scg_special_cursor_bound_set) : new.
      	* src/item-cursor.c (item_cursor_selection_event) : Use
      	  scg_special_cursor_start, and scg_special_cursor_bound_set.
      	(item_cursor_do_action) : use scg_special_cursor_stop.
      	(item_cursor_do_drop) : ditto.
      	(item_cursor_autofill_event) : ditto.
      	(item_cursor_set_bounds_visibly) : Doh! fix my stupidity.
      	  We need to change the visibility here because we explicitly disable
      	  doing it in the scroll handlers.  We are constraining the scroll
      	  so we need to do it manually.
      2001-07-30  Jody Goldberg <jgoldberg@home.com>
      	Move the std and rangesel cursors from GnumericSheet -> GnumericPane
      	Move the grid and editor from GnumericSheet -> GnumericPane
      2001-07-28  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : fix autoscroll
      	  from bottom/right panes into adjcant regions that do not scroll as
      	  reported by almer.
      2001-07-28  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : work towards
      	  support h only or v only freezes by using the geometry of pane 1 or 3
      	  in place of pane 2 which only exists in the h&v case.
      	(gsheet_sliding_callback) : ditto.
      	(gnumeric_sheet_slide_init: ditto.
  10. 11 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Marks are in. Having the pane corner != A1 works (thanks Federico) · 348ca635
      Jody Goldberg authored
      Marks are in.
      Having the pane corner != A1 works (thanks Federico)
      Autoscroll is still broken in some cases but the framework is in place.
      2001-07-11  Jody Goldberg <jgoldberg@home.com>
      	* src/item-grid.c (item_grid_draw) : Draw bound lines for panes.
      	* src/gnumeric-pane.c (gnumeric_pane_set_bounds) : new function.
      2001-07-10  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-control-gui.c (scg_resize) : Federico wins a dinner for
      	  pointing out the source of the bug with frozen panes starting
      	  somewhere other than 0,0.  It seems that scroll_regions are more
      	  powerful than I thought.
      	(scg_init) : the slider handling is elsewhere.
      	(bar_set_top_row) : remove debug spewage.
      	(scg_stop_sliding) : move to gnumeric_sheet.
      	(scg_sliding_callback) : ditto.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : signature change for slide callbacks.
      	(cb_control_point_event) : changes for panes.
      	* src/item-grid.c (cb_extend_cell_range) : signature change for slide
      	(cb_extend_expr_range) : ditto.
      	(item_grid_event) : use gnumeric_sheet_handle_motion.
      	(item_grid_finalize) : switch over from destroy.
      	(item_grid_class_init) : add bound args.
      	(item_grid_set_arg) : ditto.
      	(item_grid_draw) : begin using the bound arg.
      	(item_grid_init) : init the bound arg to fullsheet.
      	(item_grid_realize) : Add an extra GC for drawing the bounding lines.
      	(item_grid_unrealize) : release the new GC.
      	* src/item-cursor.c (cb_move_cursor) : signature change for slide
      	(cb_autofill_scroll) : ditto.
      	(item_cursor_handle_motion) : use gnumeric_sheet_handle_motion.
      	* src/item-bar.c (item_bar_draw) : remove debug spewage.
      	(cb_extend_selection) : signature change for slide callbacks.
      	(item_bar_event) : use gnumeric_sheet_handle_motion and simplify the
      	  code alot.
      	* src/gnumeric-sheet.c (gnumeric_sheet_init) : init the sliding members.
      	  The sliding used to be managed by the scg, but it is now handled
      	  with the gsheet (could just as easily be gpane) becuase scrolling
      	  panes needs to know _which_ pane is scrolling.
      	(gsheet_compute_visible_region) : remove the debug spewage.
      	(gnumeric_sheet_stop_sliding) : moved from scg_stop_sliding.
      	(gsheet_sliding_callback) : moved from scg_sliding_callback and
      	  revamped to support frozen panes.
      	(gnumeric_sheet_handle_motion) : new routine to merge in the old
      	  scg_start_sliding and add a pile of replicated code from all the
      	  different users of the sliding mechanism.
      	(gnumeric_sheet_new) : take max col/row as arg.
      	* src/gnumeric-pane.c (canvas_bar_adjustment_changed) : delete debug routine.
      	(gnumeric_pane_header_init) : no need for adjust_size handler.
      2001-07-10  Jody Goldberg <jgoldberg@home.com>
      	* idl/Makefile.am : improve evo handling.
      	* configure.in : Fix definition of ENABLE_EVOLUTION in makefiles.
      2001-07-09  Jody Goldberg <jgoldberg@home.com>
      	* src/item-bar.c (item_bar_event) : clip the minimum col/row size at
      	  the margins.
      	* src/sheet.c (colrow_compute_pts_from_pixels) : add some sanity
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : new function.
      	  begin the process of getting enough information to scroll
      	  effectively with frozen panes.  Also merge alot of similar code.
      	* src/item-bar.c (item_bar_event) : Use gnumeric_sheet_handle_motion.
      	* src/item-cursor.c (item_cursor_handle_motion) : ditto.
      	* src/sheet-control-gui.c (cb_slide_handler) : ditto.
  11. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
  12. 18 Jun, 2001 1 commit
  13. 15 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Follow convention that the manager is set when attached, and not before. · ad531019
      Jody Goldberg authored
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-control.c (workbook_control_set_view) : Follow
      	  convention that the manager is set when attached, and not before.
      	* src/workbook-view.c (wb_view_attach_control) : Ditto.  Set the
      	  tile on the new control.
      	* src/workbook.c (workbook_attach_view) : Ditto.
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/command-context-corba.[ch] : This is incorrectly named and used
      	  the wrong way :-( But at least it is compilable.  I'll fix this
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/colrow.c (col_row_foreach) : Use ColRowSegments
      	(col_row_restore_sizes) : Ditto.
      	* src/sheet.c (sheet_{col,row}_add) : Ditto.
      	(sheet_{col,row}_get_info) : Ditto.
      	(sheet_{col,row}_get) : Ditto.
      	(sheet_cell_foreach_range) : Ditto.
      	(sheet_{col,row}_destroy) : Ditto.
      	(sheet_regen_adjacent_spans) : Ditto.
      	(colrow_move) : Ditto.
      	(sheet_{col,row}_get_distance_pixels) : Ditto.
      	(sheet_{col,row}_get_distance_pts) : Ditto.
      	(sheet_{col,row}_set_size_pts) : Ditto.
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/Makefile.am : Add command-context-corba.[ch] temporarily
      	* configure.in : Default to non-bonobo build
  14. 09 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Initialize fully, add prepared_to_drag_flag. (item_cursor_selection_event) · a3602968
      Jody Goldberg authored
      2000-11-08  Jody Goldberg <jgoldberg@home.com>
      	* src/item-cursor.c (item_cursor_init) : Initialize fully, add
      	(item_cursor_selection_event) : Move most of the state change
      	  associated with BUTTON_PRESS into MOTION_NOTIFY.  And use the
      	  prepared_to_drag_flag flag to indicate a requirement to initiate a
      	  drag. Move most of the double click handling here.  The resone for
      	  these changes was that there was a race condition in the old
      	  version.  We were creating a new item cursor when we did a button
      	  press.  It started in exactly the same position as the current
      	  cursor.  2BUTTON_PRESS were sometimes being sent to the new cusor
      	  and sometimes showing up as PRESS events on the old with no RELEASE.
      	  This patch attempts to delay creating the new drag cursor until we
      	  are sure this is not a double click so that the proper event
      	  sequence is sent to the main cursor.
      	* src/border.c (style_border_unref) : Unref the colour.
      	(style_border_fetch) : unref the colour when needed.