aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-21 03:03:03 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-21 03:03:03 +0800
commit19c5a959120eb2fe9e0ab61d5626d9e30b18102d (patch)
treea81bacc58cfacac166951497acde9a2cbfb55025 /widgets
parentb1263f7aa849523ce2ae8ae4f8eeec442969fa03 (diff)
downloadgsoc2013-evolution-19c5a959120eb2fe9e0ab61d5626d9e30b18102d.tar.gz
gsoc2013-evolution-19c5a959120eb2fe9e0ab61d5626d9e30b18102d.tar.zst
gsoc2013-evolution-19c5a959120eb2fe9e0ab61d5626d9e30b18102d.zip
Changed some of these gbooleans to be guint : 1s.
2001-10-20 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.h: Changed some of these gbooleans to be guint : 1s. * gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Send the in event here to the new focused item instead of the old one. svn path=/trunk/; revision=13824
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-canvas.c2
-rw-r--r--widgets/text/e-text.h9
2 files changed, 6 insertions, 5 deletions
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c
index 0e374d391c..ba7015757e 100644
--- a/widgets/misc/e-canvas.c
+++ b/widgets/misc/e-canvas.c
@@ -606,7 +606,7 @@ e_canvas_item_grab_focus (GnomeCanvasItem *item, gboolean widget_too)
gtk_widget_grab_focus (GTK_WIDGET (item->canvas));
}
- if (focused_item) {
+ if (item) {
ev.focus_change.type = GDK_FOCUS_CHANGE;
ev.focus_change.window = GTK_LAYOUT (item->canvas)->bin_window;
ev.focus_change.send_event = FALSE;
diff --git a/widgets/text/e-text.h b/widgets/text/e-text.h
index f8e2968dee..06ac58299e 100644
--- a/widgets/text/e-text.h
+++ b/widgets/text/e-text.h
@@ -153,10 +153,6 @@ struct _EText {
char *ellipsis; /* The ellipsis characters. NULL = "...". */
double ellipsis_width; /* The width of the ellipsis. */
- gboolean use_ellipsis; /* Whether to use the ellipsis. */
-
- gboolean editable; /* Item is editable */
- gboolean editing; /* Item is currently being edited */
int xofs_edit; /* Offset because of editing */
int yofs_edit; /* Offset because of editing */
@@ -209,6 +205,11 @@ struct _EText {
guint tooltip_owner : 1;
guint allow_newlines : 1;
+ guint use_ellipsis : 1; /* Whether to use the ellipsis. */
+
+ guint editable : 1; /* Item is editable */
+ guint editing : 1; /* Item is currently being edited */
+
EFontStyle style;
gchar *break_characters; /* Characters to optionally break after */