Commit f218f1a8 authored by Arturo Espinosa's avatar Arturo Espinosa

Couple of extra touches, names dont work yet -mig

parent 4443c9f4
......@@ -28,6 +28,7 @@ GNUMERIC_BASE_SOURCES = \
dialog-cell-format.c \
dialog-goto-cell.c \
dialog-insert-cells.c \
dialog-define-names.c \
dialog-delete-cells.c \
dialog-paste-special.c \
dialog-zoom.c \
......
......@@ -15,7 +15,7 @@ void
dialog_define_names (Workbook *wb)
{
static GtkWidget *dialog;
GtkWidget *l;
GtkWidget *l, *box;
GtkCList *clist;
GtkEntry *name, *refers;
......@@ -46,6 +46,9 @@ dialog_define_names (Workbook *wb)
gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (box), l, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (box), GTK_WIDGET (refers), TRUE, TRUE, 0);
gtk_box_pack_start_defaults (GTK_BOX (GNOME_DIALOG (dialog)->vbox),
box);
}
gtk_widget_show_all (dialog);
......
......@@ -15,7 +15,7 @@ void
dialog_define_names (Workbook *wb)
{
static GtkWidget *dialog;
GtkWidget *l;
GtkWidget *l, *box;
GtkCList *clist;
GtkEntry *name, *refers;
......@@ -46,6 +46,9 @@ dialog_define_names (Workbook *wb)
gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (box), l, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (box), GTK_WIDGET (refers), TRUE, TRUE, 0);
gtk_box_pack_start_defaults (GTK_BOX (GNOME_DIALOG (dialog)->vbox),
box);
}
gtk_widget_show_all (dialog);
......
......@@ -417,6 +417,12 @@ goto_cell_cmd (GtkWidget *widget, Workbook *wb)
dialog_goto_cell (wb);
}
static void
define_cell_cmd (GtkWidget *widget, Workbook *wb)
{
dialog_define_names (wb);
}
static void
insert_cells_cmd (GtkWidget *widget, Workbook *wb)
{
......@@ -611,6 +617,9 @@ static GnomeUIInfo workbook_menu_edit [] = {
GNOMEUIINFO_SEPARATOR,
{ GNOME_APP_UI_ITEM, N_("_Define cell names"), NULL, define_cell_cmd },
GNOMEUIINFO_SEPARATOR,
{ GNOME_APP_UI_ITEM, N_("_Recalculate"), NULL, recalc_cmd, NULL, NULL,
0, 0, GDK_F9, 0 },
GNOMEUIINFO_END
......
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