Commit aeb2189c authored by Arturo Espinosa's avatar Arturo Espinosa

More work on the graphics wizard.



More work on the graphics wizard.

Miguel.
parent 608e03a9
AC_INIT(src/gnumeric.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnumeric,0.24)
AM_INIT_AUTOMAKE(gnumeric,0.25)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
......
......@@ -1664,7 +1664,7 @@ cell_get_content (Cell *cell)
}
/*
* If a value is set, return that text formatted
* Return the value wihtout parsing.
*/
if (cell->value)
str = value_string (cell->value);
......
......@@ -11,7 +11,9 @@ wizard_LTLIBRARIES = libwizard.la
libwizard_la_SOURCES = \
main.c \
graphic-context.c \
graphic-context.h
graphic-type.c \
graphic-context.h \
wizard.h
libwizard_la_LIBADD = \
$(GNOME_LIBDIR) \
......
/*
* Gnumeric, the GNOME spreadsheet.
*
* Graphics Wizard bootstap file
*
* Author:
* Miguel de Icaza (miguel@gnu.org)
*/
#include <config.h>
#include <gnome.h>
#include "gnumeric.h"
#include <glade/glade.h>
#include "wizard.h"
typedef struct {
char *description;
char *icon_name;
char *guppi_type_name;
} subtype_info_t;
static subtype_info_t bar_subtypes [] = {
{ N_("Plain bar display"), "icon-bar-plain.png", "bar" },
{ NULL, NULL, NULL }
};
static struct {
char *text;
char *icon_name;
subtype_info_t *subtypes;
} graphic_types [] = {
{ N_("Bar plots"), "icon-bar-generic.png", bar_subtypes },
{ NULL, NULL, NULL }
};
static void
graphic_type_selected (GtkCList *clist, gint row, gint column, GdkEvent *event, GraphicContext *gc)
{
printf ("Row selected: %d\n", row);
}
void
fill_graphic_types (GladeXML *gui, GraphicContext *gc)
{
GtkCList *clist = GTK_CLIST (glade_xml_get_widget (gui, "graphic-type-clist"));
int i;
gtk_signal_connect (GTK_OBJECT (clist), "select_row",
GTK_SIGNAL_FUNC (graphic_type_selected), gc);
for (i = 0; graphic_types [i].text; i++){
printf ("Setting text\n");
gtk_clist_set_text (clist, i, 2, _(graphic_types [i].text));
}
gtk_clist_select_row (clist, 1, 0);
}
......@@ -10,7 +10,7 @@
#include <gnome.h>
#include "gnumeric.h"
#include <glade/glade.h>
#include "graphic-context.h"
#include "wizard.h"
#define LAST_PAGE 2
......@@ -24,6 +24,8 @@ customize (GladeXML *gui, GraphicContext *gc)
/* Now, customize the GUI */
gc->steps_notebook = GTK_NOTEBOOK (glade_xml_get_widget (gui, "main-notebook"));
gtk_notebook_set_show_tabs (gc->steps_notebook, FALSE);
fill_graphic_types (gui, gc);
}
static void
......
#ifndef GNUMERIC_WIZARD_H
#define GNUMERIC_WIZARD_H
#include "graphic-context.h"
void fill_graphic_types (GladeXML *gui, GraphicContext *gc);
#endif
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