aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/shortcut-bar
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-21 13:37:37 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-21 13:37:37 +0800
commitdad705c65cc4da62ed23ad917321d274246a05a5 (patch)
tree7ec0209301cce4e8911068ce927ec0122bfc79bc /widgets/shortcut-bar
parent5df817c875f094ca6477e54cabb2c5cffffda5c5 (diff)
downloadgsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.tar
gsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.tar.gz
gsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.tar.bz2
gsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.tar.lz
gsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.tar.xz
gsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.tar.zst
gsoc2013-evolution-dad705c65cc4da62ed23ad917321d274246a05a5.zip
Removed the usage of "x" and "y" arguments to EText.
2000-06-21 Christopher James Lahey <clahey@helixcode.com> * notes/e-note.c, widgets/meeting-time-sel/e-meeting-time-sel.c, widgets/shortcut-bar/e-icon-bar.c: Removed the usage of "x" and "y" arguments to EText. * widgets/e-text/e-text.c, widgets/e-text/e-text.h: Removed the "x" and "y" arguments to EText. Added vertical scrolling. svn path=/trunk/; revision=3670
Diffstat (limited to 'widgets/shortcut-bar')
-rw-r--r--widgets/shortcut-bar/e-icon-bar.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/widgets/shortcut-bar/e-icon-bar.c b/widgets/shortcut-bar/e-icon-bar.c
index dae19b6590..73346b8535 100644
--- a/widgets/shortcut-bar/e-icon-bar.c
+++ b/widgets/shortcut-bar/e-icon-bar.c
@@ -33,6 +33,7 @@
#include "e-icon-bar.h"
#include "e-icon-bar-bg-item.h"
#include "../e-text/e-text.h"
+#include "e-util/e-canvas-utils.h"
/* These are the offsets of the icons & text in both views. Note that the
shadow around icons is drawn in the space between items (as is the
@@ -437,9 +438,9 @@ e_icon_bar_recalc_item_positions (EIconBar *icon_bar)
"anchor", anchor,
"max_lines", max_lines,
"line_wrap", line_wrap,
- "x", text_x,
- "y", (gdouble) item->text_y,
NULL);
+ e_canvas_item_move_absolute(item->text,
+ text_x, item->text_y);
/* Get the text item's height. */
gnome_canvas_item_get_bounds (item->text, &x1, &y1, &x2, &y2);
@@ -622,13 +623,13 @@ e_icon_bar_add_item (EIconBar *icon_bar,
"justification", justify,
"line_wrap", TRUE,
"max_lines", max_lines,
- "x", text_x,
- "y", (gdouble) 0,
"clip", TRUE,
"clip_width", (gdouble) (icon_bar->text_w),
"clip_height", clip_height,
"text", text,
NULL);
+ e_canvas_item_move_absolute(item.text,
+ text_x, 0);
gtk_signal_connect (GTK_OBJECT (item.text), "event",
GTK_SIGNAL_FUNC (e_icon_bar_on_item_event),