Commit 29d1cc62 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg
Browse files

Remove duplicate decl.



2000-01-30  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.h (gnumeric_sheet_stop_cell_selection) : Remove
	  duplicate decl.

	* src/item-grid.c : Remove unused enum SELECTING_CELL_RANGE.

	* src/application.[ch] (application_workbook_get_by_{index,name}) :
	  New functions.

	* src/selection.c (sheet_selection_paste) : Reload the edit field when
	  finished. The current cell may have changed.
parent 08f7098e
......@@ -5,6 +5,17 @@
2000-01-29 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.h (gnumeric_sheet_stop_cell_selection) : Remove
duplicate decl.
* src/item-grid.c : Remove unused enum SELECTING_CELL_RANGE.
* src/application.[ch] (application_workbook_get_by_{index,name}) :
New functions.
* src/selection.c (sheet_selection_paste) : Reload the edit field when
finished. The current cell may have changed.
* src/sheet.c (sheet_accept_pending_input) : Use
gnumeric_sheet_destroy_editing_cursor.
......
......@@ -5,6 +5,17 @@
2000-01-29 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.h (gnumeric_sheet_stop_cell_selection) : Remove
duplicate decl.
* src/item-grid.c : Remove unused enum SELECTING_CELL_RANGE.
* src/application.[ch] (application_workbook_get_by_{index,name}) :
New functions.
* src/selection.c (sheet_selection_paste) : Reload the edit field when
finished. The current cell may have changed.
* src/sheet.c (sheet_accept_pending_input) : Use
gnumeric_sheet_destroy_editing_cursor.
......
......@@ -171,3 +171,53 @@ application_clipboard_area_get (void)
return &app.clipboard_cut_range;
return NULL;
}
struct wb_name_closure
{
Workbook *wb;
char const * name;
};
static gboolean
cb_workbook_name (Workbook * wb, gpointer closure)
{
struct wb_name_closure *dat = closure;
if (0 == strcmp (wb->filename, dat->name)) {
dat->wb = wb;
return FALSE;
}
return TRUE;
}
Workbook *
application_workbook_get_by_name (char const * const name)
{
struct wb_name_closure close;
close.wb = NULL;
close.name = name;
workbook_foreach (&cb_workbook_name, &close);
return close.wb;
}
struct wb_index_closure
{
Workbook *wb;
int index; /* 1 based */
};
static gboolean
cb_workbook_index (Workbook * wb, gpointer closure)
{
struct wb_index_closure *dat = closure;
return (--(dat->index) != 0);
}
Workbook *
application_workbook_get_by_index (int i)
{
struct wb_index_closure close;
close.wb = NULL;
close.index = i;
workbook_foreach (&cb_workbook_index, &close);
return close.wb;
}
......@@ -5,6 +5,9 @@
void application_init (void);
Workbook * application_workbook_get_by_name (char const * const name);
Workbook * application_workbook_get_by_index (int i);
void application_clipboard_clear (void);
void application_clipboard_copy (Sheet *sheet, Range const *area);
......
......@@ -33,10 +33,6 @@ enum {
ARG_SHEET_VIEW,
};
enum {
SELECTING_CELL_RANGE
};
static void
item_grid_destroy (GtkObject *object)
{
......
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