aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-08 00:14:45 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-08 00:14:45 +0800
commita25600d9b54d81f533b273716d9100c6ab35175b (patch)
tree907a6b8811b1b694a109e83322d701f3004db963
parent661cc2d0ef7f97a064543032b088d5092c36b4cb (diff)
downloadgsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.tar
gsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.tar.gz
gsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.tar.bz2
gsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.tar.lz
gsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.tar.xz
gsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.tar.zst
gsoc2013-evolution-a25600d9b54d81f533b273716d9100c6ab35175b.zip
Fixed some typos.
2000-07-07 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-entry.c: Fixed some typos. svn path=/trunk/; revision=3949
-rw-r--r--ChangeLog4
-rw-r--r--widgets/e-text/e-entry.c14
-rw-r--r--widgets/text/e-entry.c14
3 files changed, 14 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 884d47be3b..8f8edb88c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-07 Christopher James Lahey <clahey@helixcode.com>
+
+ * widgets/e-text/e-entry.c: Fixed some typos.
+
2000-07-07 Tuomas Kuosmanen <tigert@gimp.org>
* art/evolution-contacts.png: Changed icon (hi ettore)
diff --git a/widgets/e-text/e-entry.c b/widgets/e-text/e-entry.c
index aae08696d3..9e089a635a 100644
--- a/widgets/e-text/e-entry.c
+++ b/widgets/e-text/e-entry.c
@@ -22,6 +22,7 @@
#include "e-util/e-util.h"
#include "e-util/e-canvas.h"
#include "e-entry.h"
+#include "e-util/e-canvas-utils.h"
#define MIN_ENTRY_WIDTH 150
#define INNER_BORDER 2
@@ -50,17 +51,12 @@ enum {
ARG_FONT_GDK,
ARG_ANCHOR,
ARG_JUSTIFICATION,
- ARG_CLIP_WIDTH,
- ARG_CLIP_HEIGHT,
- ARG_CLIP,
ARG_X_OFFSET,
ARG_Y_OFFSET,
ARG_FILL_COLOR,
ARG_FILL_COLOR_GDK,
ARG_FILL_COLOR_RGBA,
ARG_FILL_STIPPLE,
- ARG_TEXT_WIDTH,
- ARG_TEXT_HEIGHT,
ARG_EDITABLE,
ARG_USE_ELLIPSIS,
ARG_ELLIPSIS,
@@ -79,8 +75,8 @@ canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
e_entry->canvas,
0, 0, alloc->width, alloc->height);
gtk_object_set (GTK_OBJECT (e_entry->item),
- "width", (double) alloc->width - 2 * INNER_BORDER,
- "height", (double) alloc->height - 2 * INNER_BORDER,
+ "clip_width", (double) alloc->width - 2 * INNER_BORDER,
+ "clip_height", (double) alloc->height - 2 * INNER_BORDER,
NULL);
}
@@ -89,7 +85,7 @@ canvas_size_request (GtkWidget *widget, GtkRequisition *requisition,
EEntry *e_entry)
{
g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_ENTRY (widget));
+ g_return_if_fail (GNOME_IS_CANVAS (widget));
g_return_if_fail (requisition != NULL);
requisition->width = MIN_ENTRY_WIDTH + (widget->style->klass->xthickness + INNER_BORDER) * 2;
@@ -113,7 +109,7 @@ e_entry_init (GtkObject *object)
e_text_get_type(),
"clip", TRUE,
NULL));
- e_canvas_item_move_absolute(e_entry->item,
+ e_canvas_item_move_absolute(GNOME_CANVAS_ITEM(e_entry->item),
INNER_BORDER,
INNER_BORDER);
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index aae08696d3..9e089a635a 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -22,6 +22,7 @@
#include "e-util/e-util.h"
#include "e-util/e-canvas.h"
#include "e-entry.h"
+#include "e-util/e-canvas-utils.h"
#define MIN_ENTRY_WIDTH 150
#define INNER_BORDER 2
@@ -50,17 +51,12 @@ enum {
ARG_FONT_GDK,
ARG_ANCHOR,
ARG_JUSTIFICATION,
- ARG_CLIP_WIDTH,
- ARG_CLIP_HEIGHT,
- ARG_CLIP,
ARG_X_OFFSET,
ARG_Y_OFFSET,
ARG_FILL_COLOR,
ARG_FILL_COLOR_GDK,
ARG_FILL_COLOR_RGBA,
ARG_FILL_STIPPLE,
- ARG_TEXT_WIDTH,
- ARG_TEXT_HEIGHT,
ARG_EDITABLE,
ARG_USE_ELLIPSIS,
ARG_ELLIPSIS,
@@ -79,8 +75,8 @@ canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
e_entry->canvas,
0, 0, alloc->width, alloc->height);
gtk_object_set (GTK_OBJECT (e_entry->item),
- "width", (double) alloc->width - 2 * INNER_BORDER,
- "height", (double) alloc->height - 2 * INNER_BORDER,
+ "clip_width", (double) alloc->width - 2 * INNER_BORDER,
+ "clip_height", (double) alloc->height - 2 * INNER_BORDER,
NULL);
}
@@ -89,7 +85,7 @@ canvas_size_request (GtkWidget *widget, GtkRequisition *requisition,
EEntry *e_entry)
{
g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_ENTRY (widget));
+ g_return_if_fail (GNOME_IS_CANVAS (widget));
g_return_if_fail (requisition != NULL);
requisition->width = MIN_ENTRY_WIDTH + (widget->style->klass->xthickness + INNER_BORDER) * 2;
@@ -113,7 +109,7 @@ e_entry_init (GtkObject *object)
e_text_get_type(),
"clip", TRUE,
NULL));
- e_canvas_item_move_absolute(e_entry->item,
+ e_canvas_item_move_absolute(GNOME_CANVAS_ITEM(e_entry->item),
INNER_BORDER,
INNER_BORDER);