aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-27 06:34:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-27 06:34:30 +0800
commitc1527a0f74533dd131576fcfc7b23188ff1466ba (patch)
treeb12352ff73510f9e947d518b8864e3248fb29154 /widgets
parent023d4432d4d03ea13a0d7b600d2b46b308bf6772 (diff)
downloadgsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.tar
gsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.tar.gz
gsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.tar.bz2
gsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.tar.lz
gsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.tar.xz
gsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.tar.zst
gsoc2013-evolution-c1527a0f74533dd131576fcfc7b23188ff1466ba.zip
Added a "draw_background" argument. Set the default for the
2000-12-26 Christopher James Lahey <clahey@helixcode.com> * gal/e-text/e-entry.c: Added a "draw_background" argument. Set the default for the "draw_background" argument to the contained EText to TRUE. * gal/e-text/e-text.c: Changed the default for the "draw_background" argument to FALSE. svn path=/trunk/; revision=7176
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-entry.c19
-rw-r--r--widgets/text/e-text.c2
2 files changed, 19 insertions, 2 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 3bd36d7a0d..93c3ffd936 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -63,7 +63,8 @@ enum {
ARG_BREAK_CHARACTERS,
ARG_MAX_LINES,
ARG_ALLOW_NEWLINES,
- ARG_DRAW_BORDERS
+ ARG_DRAW_BORDERS,
+ ARG_DRAW_BACKGROUND,
};
static void
@@ -142,6 +143,7 @@ e_entry_init (GtkObject *object)
"fill_clip_rectangle", TRUE,
"anchor", GTK_ANCHOR_NW,
"draw_borders", TRUE,
+ "draw_background", TRUE,
NULL));
gtk_table_attach_defaults(gtk_table, GTK_WIDGET(e_entry->canvas),
0, 1, 0, 1);
@@ -275,6 +277,12 @@ et_get_arg (GtkObject *o, GtkArg *arg, guint arg_id)
"draw_borders", &GTK_VALUE_BOOL (*arg),
NULL);
break;
+
+ case ARG_DRAW_BACKGROUND:
+ gtk_object_get (item,
+ "draw_background", &GTK_VALUE_BOOL (*arg),
+ NULL);
+ break;
default:
arg->type = GTK_TYPE_INVALID;
@@ -407,7 +415,14 @@ et_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
gtk_object_set (item, "draw_borders", GTK_VALUE_BOOL (*arg), NULL);
if (need_queue)
gtk_widget_queue_resize (GTK_WIDGET (ee));
+ break;
}
+
+ case ARG_DRAW_BACKGROUND:
+ gtk_object_set (item,
+ "draw_background", GTK_VALUE_BOOL (*arg),
+ NULL);
+ break;
}
}
@@ -480,6 +495,8 @@ e_entry_class_init (GtkObjectClass *object_class)
GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_ALLOW_NEWLINES);
gtk_object_add_arg_type ("EEntry::draw_borders",
GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_DRAW_BORDERS);
+ gtk_object_add_arg_type ("EEntry::draw_background",
+ GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_DRAW_BACKGROUND);
}
E_MAKE_TYPE(e_entry, "EEntry", EEntry, e_entry_class_init, e_entry_init, PARENT_TYPE);
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 3345493ad7..e9a448b9c2 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -379,7 +379,7 @@ e_text_init (EText *text)
text->dbl_timeout = 0;
text->tpl_timeout = 0;
- text->draw_background = 1;
+ text->draw_background = FALSE;
e_canvas_item_set_reflow_callback(GNOME_CANVAS_ITEM(text), e_text_reflow);
}