Commit e3844b03 authored by Akira Higuchi's avatar Akira Higuchi Committed by Arturo Espinosa
Browse files

Extend the size of the array components[] so that it can handle very long

1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>

	* src/gnumeric-util.c (font_change_component): Extend the size of
	the array components[] so that it can handle very long fontset
	names.

	* src/style.c: Change the default font names.

	* src/workbook.c: Add gtk_widget_ensure_style() call, which is
	necessary to knowing if a fontset is supplied for the label
	widget.
parent 001b3cac
1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
* src/gnumeric-util.c (font_change_component): Extend the size of
the array components[] so that it can handle very long fontset
names.
* src/style.c: Change the default font names.
* src/workbook.c: Add gtk_widget_ensure_style() call, which is
necessary to knowing if a fontset is supplied for the label
widget.
1999-06-01 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_trimmean): Cleanup.
......
1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
* src/gnumeric-util.c (font_change_component): Extend the size of
the array components[] so that it can handle very long fontset
names.
* src/style.c: Change the default font names.
* src/workbook.c: Add gtk_widget_ensure_style() call, which is
necessary to knowing if a fontset is supplied for the label
widget.
1999-06-01 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_trimmean): Cleanup.
......
1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
* src/gnumeric-util.c (font_change_component): Extend the size of
the array components[] so that it can handle very long fontset
names.
* src/style.c: Change the default font names.
* src/workbook.c: Add gtk_widget_ensure_style() call, which is
necessary to knowing if a fontset is supplied for the label
widget.
1999-06-01 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_trimmean): Cleanup.
......
1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
* src/gnumeric-util.c (font_change_component): Extend the size of
the array components[] so that it can handle very long fontset
names.
* src/style.c: Change the default font names.
* src/workbook.c: Add gtk_widget_ensure_style() call, which is
necessary to knowing if a fontset is supplied for the label
widget.
1999-06-01 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_trimmean): Cleanup.
......
......@@ -123,7 +123,8 @@ range_contains (Range *range, int col, int row)
char *
font_change_component (const char *fontname, int idx, char *newvalue)
{
char *components [15];
/* FIXME: don't work well for a comma-sepated fontset name */
char *components [15*10];
char *new = g_strdup (fontname), *res;
char *p = new;
int n = 0, i, len;
......@@ -134,6 +135,8 @@ font_change_component (const char *fontname, int idx, char *newvalue)
*p = 0;
p++;
components [n++] = p;
if (n >= sizeof(components)/sizeof(components[0]))
break;
}
}
......
......@@ -123,7 +123,8 @@ range_contains (Range *range, int col, int row)
char *
font_change_component (const char *fontname, int idx, char *newvalue)
{
char *components [15];
/* FIXME: don't work well for a comma-sepated fontset name */
char *components [15*10];
char *new = g_strdup (fontname), *res;
char *p = new;
int n = 0, i, len;
......@@ -134,6 +135,8 @@ font_change_component (const char *fontname, int idx, char *newvalue)
*p = 0;
p++;
components [n++] = p;
if (n >= sizeof(components)/sizeof(components[0]))
break;
}
}
......
......@@ -12,9 +12,15 @@
#include "format.h"
#include "color.h"
#define DEFAULT_FONT "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"
#define DEFAULT_BOLD_FONT "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#define DEFAULT_ITALIC_FONT "-adobe-helvetica-medium-o-normal--*-120-*-*-*-*-*-*"
#define DEFAULT_FONT \
"-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*," \
"-*-*-medium-r-normal--12-*-*-*-*-*-*-*,*"
#define DEFAULT_BOLD_FONT \
"-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*," \
"-*-*-bold-r-normal--12-*-*-*-*-*-*-*,*"
#define DEFAULT_ITALIC_FONT \
"-adobe-helvetica-medium-o-normal--*-120-*-*-*-*-*-*," \
"-*-*-medium-o-normal--12-*-*-*-*-*-*-*,*"
#define DEFAULT_SIZE 12
static GHashTable *style_format_hash;
......
......@@ -1438,6 +1438,7 @@ workbook_setup_auto_calc (Workbook *wb)
canvas = gnome_canvas_new ();
l = gtk_label_new ("Info");
gtk_widget_ensure_style (l);
/* The canvas that displays text */
root = GNOME_CANVAS_GROUP (GNOME_CANVAS (canvas)->root);
......
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