From 05217d5ace4a0e216ea6a0c107224db7e3b55baf Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 25 Dec 2000 22:15:34 +0000 Subject: Always have some text. Fixes crash. 2000-12-25 Miguel de Icaza * gal/e-text/e-text.c (e_text_init): Always have some text. Fixes crash. * gal/widgets/e-reflow.c (set_empty): Set draw_background to FALSE. svn path=/trunk/; revision=7172 --- widgets/misc/e-reflow.c | 1 + widgets/text/e-entry.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c index bbfd37fa10..88e9dc590a 100644 --- a/widgets/misc/e-reflow.c +++ b/widgets/misc/e-reflow.c @@ -771,6 +771,7 @@ set_empty(EReflow *e_reflow) "fill_color", "black", "justification", GTK_JUSTIFY_CENTER, "text", e_reflow->empty_message, + "draw_background", FALSE, NULL); e_canvas_item_move_absolute(e_reflow->empty_text, e_reflow->minimum_width / 2, diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index bbf65c76ff..d899af045d 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -131,7 +131,6 @@ e_entry_init (GtkObject *object) "anchor", GTK_ANCHOR_NW, "draw_borders", TRUE, NULL)); - gtk_table_attach_defaults(gtk_table, GTK_WIDGET(e_entry->canvas), 0, 1, 0, 1); gtk_widget_show(GTK_WIDGET(e_entry->canvas)); -- cgit