summaryrefslogtreecommitdiff
path: root/gtk/gtkpango.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-07-24 15:54:49 +0200
committerBenjamin Otte <otte@redhat.com>2020-07-25 00:47:36 +0200
commitd7266b25ba5f2f21a5bd19d0fb88aca530e4d265 (patch)
tree8dc515efd6e0c0b0da1d7e02049f284edd6050ff /gtk/gtkpango.c
parent46423e614d4fcf142d9578d4788dde664ea280f9 (diff)
downloadgtk+-d7266b25ba5f2f21a5bd19d0fb88aca530e4d265.tar.gz
Replace "gint" with "int"
Diffstat (limited to 'gtk/gtkpango.c')
-rw-r--r--gtk/gtkpango.c96
1 files changed, 48 insertions, 48 deletions
diff --git a/gtk/gtkpango.c b/gtk/gtkpango.c
index 28341813a7..bce931cdf0 100644
--- a/gtk/gtkpango.c
+++ b/gtk/gtkpango.c
@@ -61,7 +61,7 @@ _gtk_pango_get_default_attributes (AtkAttributeSet *attributes,
PangoLayout *layout)
{
PangoContext *context;
- gint i;
+ int i;
PangoWrapMode mode;
context = pango_layout_get_context (layout);
@@ -169,9 +169,9 @@ _gtk_pango_get_default_attributes (AtkAttributeSet *attributes,
AtkAttributeSet *
_gtk_pango_get_run_attributes (AtkAttributeSet *attributes,
PangoLayout *layout,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
PangoAttrIterator *iter;
PangoAttrList *attr;
@@ -180,7 +180,7 @@ _gtk_pango_get_run_attributes (AtkAttributeSet *attributes,
PangoAttrColor *pango_color;
PangoAttrLanguage *pango_lang;
PangoAttrFloat *pango_float;
- gint index, start_index, end_index;
+ int index, start_index, end_index;
gboolean is_next;
glong len;
const gchar *text;
@@ -336,13 +336,13 @@ _gtk_pango_get_run_attributes (AtkAttributeSet *attributes,
*
* Returns: the new position
*/
-static gint
+static int
_gtk_pango_move_chars (PangoLayout *layout,
- gint offset,
- gint count)
+ int offset,
+ int count)
{
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
attrs = pango_layout_get_log_attrs_readonly (layout, &n_attrs);
@@ -382,13 +382,13 @@ _gtk_pango_move_chars (PangoLayout *layout,
*
* Returns: the new position
*/
-static gint
+static int
_gtk_pango_move_words (PangoLayout *layout,
- gint offset,
- gint count)
+ int offset,
+ int count)
{
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
attrs = pango_layout_get_log_attrs_readonly (layout, &n_attrs);
@@ -428,13 +428,13 @@ _gtk_pango_move_words (PangoLayout *layout,
*
* Returns: the new position
*/
-static gint
+static int
_gtk_pango_move_sentences (PangoLayout *layout,
- gint offset,
- gint count)
+ int offset,
+ int count)
{
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
attrs = pango_layout_get_log_attrs_readonly (layout, &n_attrs);
@@ -470,10 +470,10 @@ _gtk_pango_move_sentences (PangoLayout *layout,
*/
static gboolean
_gtk_pango_is_inside_word (PangoLayout *layout,
- gint offset)
+ int offset)
{
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
attrs = pango_layout_get_log_attrs_readonly (layout, &n_attrs);
@@ -499,10 +499,10 @@ _gtk_pango_is_inside_word (PangoLayout *layout,
*/
static gboolean
_gtk_pango_is_inside_sentence (PangoLayout *layout,
- gint offset)
+ int offset)
{
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
attrs = pango_layout_get_log_attrs_readonly (layout, &n_attrs);
@@ -519,13 +519,13 @@ _gtk_pango_is_inside_sentence (PangoLayout *layout,
static void
pango_layout_get_line_before (PangoLayout *layout,
AtkTextBoundary boundary_type,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
PangoLayoutIter *iter;
PangoLayoutLine *line, *prev_line = NULL, *prev_prev_line = NULL;
- gint index, start_index, end_index;
+ int index, start_index, end_index;
const gchar *text;
gboolean found = FALSE;
@@ -592,13 +592,13 @@ pango_layout_get_line_before (PangoLayout *layout,
static void
pango_layout_get_line_at (PangoLayout *layout,
AtkTextBoundary boundary_type,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
PangoLayoutIter *iter;
PangoLayoutLine *line, *prev_line = NULL;
- gint index, start_index, end_index;
+ int index, start_index, end_index;
const gchar *text;
gboolean found = FALSE;
@@ -656,13 +656,13 @@ pango_layout_get_line_at (PangoLayout *layout,
static void
pango_layout_get_line_after (PangoLayout *layout,
AtkTextBoundary boundary_type,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
PangoLayoutIter *iter;
PangoLayoutLine *line, *prev_line = NULL;
- gint index, start_index, end_index;
+ int index, start_index, end_index;
const gchar *text;
gboolean found = FALSE;
@@ -746,14 +746,14 @@ pango_layout_get_line_after (PangoLayout *layout,
gchar *
_gtk_pango_get_text_before (PangoLayout *layout,
AtkTextBoundary boundary_type,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
const gchar *text;
- gint start, end;
+ int start, end;
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
text = pango_layout_get_text (layout);
@@ -851,14 +851,14 @@ _gtk_pango_get_text_before (PangoLayout *layout,
gchar *
_gtk_pango_get_text_after (PangoLayout *layout,
AtkTextBoundary boundary_type,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
const gchar *text;
- gint start, end;
+ int start, end;
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
text = pango_layout_get_text (layout);
@@ -962,14 +962,14 @@ _gtk_pango_get_text_after (PangoLayout *layout,
gchar *
_gtk_pango_get_text_at (PangoLayout *layout,
AtkTextBoundary boundary_type,
- gint offset,
- gint *start_offset,
- gint *end_offset)
+ int offset,
+ int *start_offset,
+ int *end_offset)
{
const gchar *text;
- gint start, end;
+ int start, end;
const PangoLogAttr *attrs;
- gint n_attrs;
+ int n_attrs;
text = pango_layout_get_text (layout);