aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-text.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /widgets/table/e-cell-text.h
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'widgets/table/e-cell-text.h')
-rw-r--r--widgets/table/e-cell-text.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/widgets/table/e-cell-text.h b/widgets/table/e-cell-text.h
index d92b025aa5..df4a6f827c 100644
--- a/widgets/table/e-cell-text.h
+++ b/widgets/table/e-cell-text.h
@@ -54,27 +54,27 @@ typedef struct {
ECell parent;
GtkJustification justify;
- char *font_name;
+ gchar *font_name;
double x, y; /* Position at anchor */
gulong pixel; /* Fill color */
/* Clip handling */
- char *ellipsis; /* The ellipsis characters. NULL = "...". */
+ gchar *ellipsis; /* The ellipsis characters. NULL = "...". */
guint use_ellipsis : 1; /* Whether to use the ellipsis. */
guint editable : 1; /* Whether the text can be edited. */
- int strikeout_column;
- int underline_column;
- int bold_column;
+ gint strikeout_column;
+ gint underline_column;
+ gint bold_column;
/* This column in the ETable should return a string specifying a color,
either a color name like "red" or a color spec like "rgb:F/0/0".
See the XParseColor man page for the formats available. */
- int color_column;
- int bg_color_column;
+ gint color_column;
+ gint bg_color_column;
/* This stores the colors we have allocated. */
GHashTable *colors;
@@ -83,28 +83,28 @@ typedef struct {
typedef struct {
ECellClass parent_class;
- char *(*get_text) (ECellText *cell, ETableModel *model, int col, int row);
- void (*free_text) (ECellText *cell, char *text);
- void (*set_value) (ECellText *cell, ETableModel *model, int col, int row, const char *text);
+ gchar *(*get_text) (ECellText *cell, ETableModel *model, gint col, gint row);
+ void (*free_text) (ECellText *cell, gchar *text);
+ void (*set_value) (ECellText *cell, ETableModel *model, gint col, gint row, const gchar *text);
/* signal handlers */
- void (*text_inserted) (ECellText *cell, ECellView *cell_view, int pos, int len, int row, int model_col);
- void (*text_deleted) (ECellText *cell, ECellView *cell_view, int pos, int len, int row, int model_col);
+ void (*text_inserted) (ECellText *cell, ECellView *cell_view, gint pos, gint len, gint row, gint model_col);
+ void (*text_deleted) (ECellText *cell, ECellView *cell_view, gint pos, gint len, gint row, gint model_col);
} ECellTextClass;
GType e_cell_text_get_type (void);
-ECell *e_cell_text_new (const char *fontname, GtkJustification justify);
-ECell *e_cell_text_construct(ECellText *cell, const char *fontname, GtkJustification justify);
+ECell *e_cell_text_new (const gchar *fontname, GtkJustification justify);
+ECell *e_cell_text_construct(ECellText *cell, const gchar *fontname, GtkJustification justify);
/* Gets the value from the model and converts it into a string. In ECellText
- itself, the value is assumed to be a char* and so needs no conversion.
+ itself, the value is assumed to be a gchar * and so needs no conversion.
In subclasses the ETableModel value may be a more complicated datatype. */
-char *e_cell_text_get_text (ECellText *cell, ETableModel *model, int col, int row);
+char *e_cell_text_get_text (ECellText *cell, ETableModel *model, gint col, gint row);
/* Frees the value returned by e_cell_text_get_text(). */
-void e_cell_text_free_text (ECellText *cell, char *text);
+void e_cell_text_free_text (ECellText *cell, gchar *text);
/* Sets the ETableModel value, based on the given string. */
-void e_cell_text_set_value (ECellText *cell, ETableModel *model, int col, int row, const char *text);
+void e_cell_text_set_value (ECellText *cell, ETableModel *model, gint col, gint row, const gchar *text);
/* Sets the selection of given text cell */
gboolean e_cell_text_set_selection (ECellView *cell_view, gint col, gint row, gint start, gint end);
@@ -122,7 +122,7 @@ void e_cell_text_paste_clipboard (ECellView *cell_view, gint col, gint row);
void e_cell_text_delete_selection (ECellView *cell_view, gint col, gint row);
/* get text directly from view, both col and row are model format */
-char *e_cell_text_get_text_by_view (ECellView *cell_view, gint col, gint row);
+gchar *e_cell_text_get_text_by_view (ECellView *cell_view, gint col, gint row);
G_END_DECLS