aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-selection-model.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/misc/e-selection-model.h
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.bz2
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.lz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.xz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'widgets/misc/e-selection-model.h')
-rw-r--r--widgets/misc/e-selection-model.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/widgets/misc/e-selection-model.h b/widgets/misc/e-selection-model.h
index 24eccd304f..16194000a5 100644
--- a/widgets/misc/e-selection-model.h
+++ b/widgets/misc/e-selection-model.h
@@ -40,7 +40,7 @@ extern "C" {
#ifndef _E_FOREACH_FUNC_H_
#define _E_FOREACH_FUNC_H_
-typedef void (*EForeachFunc) (int model_row,
+typedef void (*EForeachFunc) (gint model_row,
gpointer closure);
#endif
@@ -59,39 +59,39 @@ typedef struct {
GtkSelectionMode mode;
ECursorMode cursor_mode;
- int old_selection;
+ gint old_selection;
} ESelectionModel;
typedef struct {
GObjectClass parent_class;
/* Virtual methods */
- gboolean (*is_row_selected) (ESelectionModel *esm, int row);
+ gboolean (*is_row_selected) (ESelectionModel *esm, gint row);
void (*foreach) (ESelectionModel *esm, EForeachFunc callback, gpointer closure);
void (*clear) (ESelectionModel *esm);
gint (*selected_count) (ESelectionModel *esm);
void (*select_all) (ESelectionModel *esm);
void (*invert_selection) (ESelectionModel *esm);
- int (*row_count) (ESelectionModel *esm);
+ gint (*row_count) (ESelectionModel *esm);
/* Protected virtual methods. */
- void (*change_one_row) (ESelectionModel *esm, int row, gboolean on);
- void (*change_cursor) (ESelectionModel *esm, int row, int col);
- int (*cursor_row) (ESelectionModel *esm);
- int (*cursor_col) (ESelectionModel *esm);
+ void (*change_one_row) (ESelectionModel *esm, gint row, gboolean on);
+ void (*change_cursor) (ESelectionModel *esm, gint row, gint col);
+ gint (*cursor_row) (ESelectionModel *esm);
+ gint (*cursor_col) (ESelectionModel *esm);
- void (*select_single_row) (ESelectionModel *selection, int row);
- void (*toggle_single_row) (ESelectionModel *selection, int row);
- void (*move_selection_end) (ESelectionModel *selection, int row);
- void (*set_selection_end) (ESelectionModel *selection, int row);
+ void (*select_single_row) (ESelectionModel *selection, gint row);
+ void (*toggle_single_row) (ESelectionModel *selection, gint row);
+ void (*move_selection_end) (ESelectionModel *selection, gint row);
+ void (*set_selection_end) (ESelectionModel *selection, gint row);
/*
* Signals
*/
- void (*cursor_changed) (ESelectionModel *esm, int row, int col);
- void (*cursor_activated) (ESelectionModel *esm, int row, int col);
- void (*selection_row_changed) (ESelectionModel *esm, int row);
+ void (*cursor_changed) (ESelectionModel *esm, gint row, gint col);
+ void (*cursor_activated) (ESelectionModel *esm, gint row, gint col);
+ void (*selection_row_changed) (ESelectionModel *esm, gint row);
void (*selection_changed) (ESelectionModel *esm);
} ESelectionModelClass;
@@ -128,36 +128,36 @@ void e_selection_model_clear (ESelectionModel *esm);
gint e_selection_model_selected_count (ESelectionModel *esm);
void e_selection_model_select_all (ESelectionModel *esm);
void e_selection_model_invert_selection (ESelectionModel *esm);
-int e_selection_model_row_count (ESelectionModel *esm);
+gint e_selection_model_row_count (ESelectionModel *esm);
/* Private virtual Functions */
void e_selection_model_change_one_row (ESelectionModel *esm,
- int row,
+ gint row,
gboolean on);
void e_selection_model_change_cursor (ESelectionModel *esm,
- int row,
- int col);
-int e_selection_model_cursor_row (ESelectionModel *esm);
-int e_selection_model_cursor_col (ESelectionModel *esm);
+ gint row,
+ gint col);
+gint e_selection_model_cursor_row (ESelectionModel *esm);
+gint e_selection_model_cursor_col (ESelectionModel *esm);
void e_selection_model_select_single_row (ESelectionModel *selection,
- int row);
+ gint row);
void e_selection_model_toggle_single_row (ESelectionModel *selection,
- int row);
+ gint row);
void e_selection_model_move_selection_end (ESelectionModel *selection,
- int row);
+ gint row);
void e_selection_model_set_selection_end (ESelectionModel *selection,
- int row);
+ gint row);
/* Signals */
void e_selection_model_cursor_changed (ESelectionModel *selection,
- int row,
- int col);
+ gint row,
+ gint col);
void e_selection_model_cursor_activated (ESelectionModel *selection,
- int row,
- int col);
+ gint row,
+ gint col);
void e_selection_model_selection_row_changed (ESelectionModel *selection,
- int row);
+ gint row);
void e_selection_model_selection_changed (ESelectionModel *selection);
#ifdef __cplusplus