diff options
Diffstat (limited to 'gtk/a11y')
37 files changed, 760 insertions, 760 deletions
diff --git a/gtk/a11y/gtkbooleancellaccessible.c b/gtk/a11y/gtkbooleancellaccessible.c index 694f86710d..3074c9f65f 100644 --- a/gtk/a11y/gtkbooleancellaccessible.c +++ b/gtk/a11y/gtkbooleancellaccessible.c @@ -29,7 +29,7 @@ struct _GtkBooleanCellAccessiblePrivate static AtkActionIface *parent_action_iface; -static gint +static int gtk_boolean_cell_accessible_get_n_actions (AtkAction *action) { return parent_action_iface->get_n_actions (action) + 1; @@ -37,7 +37,7 @@ gtk_boolean_cell_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_boolean_cell_accessible_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Toggles the cell"); @@ -47,7 +47,7 @@ gtk_boolean_cell_accessible_get_description (AtkAction *action, static const gchar * gtk_boolean_cell_accessible_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "toggle"; @@ -57,7 +57,7 @@ gtk_boolean_cell_accessible_action_get_name (AtkAction *action, static const gchar * gtk_boolean_cell_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Toggle"); @@ -67,7 +67,7 @@ gtk_boolean_cell_accessible_action_get_localized_name (AtkAction *action, static gboolean gtk_boolean_cell_accessible_do_action (AtkAction *action, - gint i) + int i) { if (i == 0) return parent_action_iface->do_action (action, 2); diff --git a/gtk/a11y/gtkbuttonaccessible.c b/gtk/a11y/gtkbuttonaccessible.c index 3c1385dc78..3afd64644f 100644 --- a/gtk/a11y/gtkbuttonaccessible.c +++ b/gtk/a11y/gtkbuttonaccessible.c @@ -137,7 +137,7 @@ gtk_button_accessible_get_name (AtkObject *obj) return name; } -static gint +static int gtk_button_accessible_get_n_children (AtkObject* obj) { return 0; @@ -145,7 +145,7 @@ gtk_button_accessible_get_n_children (AtkObject* obj) static AtkObject * gtk_button_accessible_ref_child (AtkObject *obj, - gint i) + int i) { return NULL; } @@ -204,7 +204,7 @@ gtk_button_accessible_init (GtkButtonAccessible *button) static gboolean gtk_button_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -222,7 +222,7 @@ gtk_button_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_button_accessible_get_n_actions (AtkAction *action) { return 1; @@ -230,7 +230,7 @@ gtk_button_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_button_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { gchar *return_value = NULL; GtkWidget *widget; @@ -284,7 +284,7 @@ gtk_button_accessible_get_keybinding (AtkAction *action, static const gchar * gtk_button_accessible_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "click"; @@ -293,7 +293,7 @@ gtk_button_accessible_action_get_name (AtkAction *action, static const gchar * gtk_button_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Click"); @@ -302,7 +302,7 @@ gtk_button_accessible_action_get_localized_name (AtkAction *action, static const gchar * gtk_button_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Clicks the button"); @@ -343,8 +343,8 @@ gtk_button_accessible_get_image_description (AtkImage *image) static void gtk_button_accessible_get_image_position (AtkImage *image, - gint *x, - gint *y, + int *x, + int *y, AtkCoordType coord_type) { GtkWidget *widget; @@ -375,8 +375,8 @@ gtk_button_accessible_get_image_position (AtkImage *image, static void gtk_button_accessible_get_image_size (AtkImage *image, - gint *width, - gint *height) + int *width, + int *height) { GtkWidget *widget; GtkWidget *button_image; diff --git a/gtk/a11y/gtkcellaccessible.c b/gtk/a11y/gtkcellaccessible.c index e55144ba02..51bff40d29 100644 --- a/gtk/a11y/gtkcellaccessible.c +++ b/gtk/a11y/gtkcellaccessible.c @@ -54,7 +54,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkCellAccessible, gtk_cell_accessible, GTK_TYPE_ACCESS G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init) G_IMPLEMENT_INTERFACE (ATK_TYPE_TABLE_CELL, atk_table_cell_interface_init)) -static gint +static int gtk_cell_accessible_get_index_in_parent (AtkObject *obj) { GtkCellAccessible *cell; @@ -224,7 +224,7 @@ _gtk_cell_accessible_remove_state (GtkCellAccessible *cell, return TRUE; } -static gint +static int gtk_cell_accessible_action_get_n_actions (AtkAction *action) { return 3; @@ -232,7 +232,7 @@ gtk_cell_accessible_action_get_n_actions (AtkAction *action) static const gchar * gtk_cell_accessible_action_get_name (AtkAction *action, - gint index) + int index) { switch (index) { @@ -249,7 +249,7 @@ gtk_cell_accessible_action_get_name (AtkAction *action, static const gchar * gtk_cell_accessible_action_get_localized_name (AtkAction *action, - gint index) + int index) { switch (index) { @@ -266,7 +266,7 @@ gtk_cell_accessible_action_get_localized_name (AtkAction *action, static const gchar * gtk_cell_accessible_action_get_description (AtkAction *action, - gint index) + int index) { switch (index) { @@ -283,14 +283,14 @@ gtk_cell_accessible_action_get_description (AtkAction *action, static const gchar * gtk_cell_accessible_action_get_keybinding (AtkAction *action, - gint index) + int index) { return NULL; } static gboolean gtk_cell_accessible_action_do_action (AtkAction *action, - gint index) + int index) { GtkCellAccessible *cell = GTK_CELL_ACCESSIBLE (action); GtkCellAccessibleParent *parent; @@ -331,10 +331,10 @@ atk_action_interface_init (AtkActionIface *iface) static void gtk_cell_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkCellAccessible *cell; @@ -388,8 +388,8 @@ gtk_cell_accessible_get_column_header_cells (AtkTableCell *table_cell) static gboolean gtk_cell_accessible_get_position (AtkTableCell *table_cell, - gint *row, - gint *column) + int *row, + int *column) { GtkCellAccessible *cell; AtkObject *parent; diff --git a/gtk/a11y/gtkcellaccessibleparent.c b/gtk/a11y/gtkcellaccessibleparent.c index 535d907d09..f0389fc486 100644 --- a/gtk/a11y/gtkcellaccessibleparent.c +++ b/gtk/a11y/gtkcellaccessibleparent.c @@ -52,10 +52,10 @@ gtk_cell_accessible_parent_get_type (void) void gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkCellAccessibleParentIface *iface; @@ -207,8 +207,8 @@ gtk_cell_accessible_parent_update_relationset (GtkCellAccessibleParent *parent, void gtk_cell_accessible_parent_get_cell_position (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *row, - gint *column) + int *row, + int *column) { GtkCellAccessibleParentIface *iface; diff --git a/gtk/a11y/gtkcellaccessibleparent.h b/gtk/a11y/gtkcellaccessibleparent.h index 1a8c2c62fb..b724f71188 100644 --- a/gtk/a11y/gtkcellaccessibleparent.h +++ b/gtk/a11y/gtkcellaccessibleparent.h @@ -49,10 +49,10 @@ struct _GtkCellAccessibleParentIface GTypeInterface parent; void ( *get_cell_extents) (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type); void ( *get_cell_area) (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, @@ -77,8 +77,8 @@ struct _GtkCellAccessibleParentIface AtkRelationSet *relationset); void ( *get_cell_position) (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *row, - gint *column); + int *row, + int *column); GPtrArray * ( *get_column_header_cells) (GtkCellAccessibleParent *parent, GtkCellAccessible *cell); GPtrArray * ( *get_row_header_cells) (GtkCellAccessibleParent *parent, @@ -91,10 +91,10 @@ GType gtk_cell_accessible_parent_get_type (void); GDK_AVAILABLE_IN_ALL void gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type); GDK_AVAILABLE_IN_ALL void gtk_cell_accessible_parent_get_cell_area (GtkCellAccessibleParent *parent, @@ -126,8 +126,8 @@ void gtk_cell_accessible_parent_update_relationset (GtkCellAccessibleParent GDK_AVAILABLE_IN_ALL void gtk_cell_accessible_parent_get_cell_position(GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *row, - gint *column); + int *row, + int *column); GDK_AVAILABLE_IN_ALL GPtrArray *gtk_cell_accessible_parent_get_column_header_cells (GtkCellAccessibleParent *parent, GtkCellAccessible *cell); diff --git a/gtk/a11y/gtkcolorswatchaccessible.c b/gtk/a11y/gtkcolorswatchaccessible.c index 1c52fda18c..5ee14822b8 100644 --- a/gtk/a11y/gtkcolorswatchaccessible.c +++ b/gtk/a11y/gtkcolorswatchaccessible.c @@ -116,7 +116,7 @@ _gtk_color_swatch_accessible_init (GtkColorSwatchAccessible *self) ATK_OBJECT (self)->role = ATK_ROLE_RADIO_BUTTON; } -static gint +static int gtk_color_swatch_accessible_get_n_actions (AtkAction *action) { return 3; @@ -124,14 +124,14 @@ gtk_color_swatch_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_color_swatch_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { return NULL; } static const gchar * gtk_color_swatch_accessible_get_name (AtkAction *action, - gint i) + int i) { switch (i) { @@ -144,7 +144,7 @@ gtk_color_swatch_accessible_get_name (AtkAction *action, static const gchar * gtk_color_swatch_accessible_get_localized_name (AtkAction *action, - gint i) + int i) { switch (i) { @@ -157,7 +157,7 @@ gtk_color_swatch_accessible_get_localized_name (AtkAction *action, static const gchar * gtk_color_swatch_accessible_get_description (AtkAction *action, - gint i) + int i) { switch (i) { @@ -170,7 +170,7 @@ gtk_color_swatch_accessible_get_description (AtkAction *action, static gboolean gtk_color_swatch_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; diff --git a/gtk/a11y/gtkcomboboxaccessible.c b/gtk/a11y/gtkcomboboxaccessible.c index bb9f7c9acf..2b29ad7457 100644 --- a/gtk/a11y/gtkcomboboxaccessible.c +++ b/gtk/a11y/gtkcomboboxaccessible.c @@ -24,7 +24,7 @@ struct _GtkComboBoxAccessiblePrivate { gchar *name; - gint old_selection; + int old_selection; gboolean popup_set; }; @@ -42,7 +42,7 @@ changed_cb (GtkWidget *widget) GtkComboBox *combo_box; AtkObject *obj; GtkComboBoxAccessible *accessible; - gint index; + int index; combo_box = GTK_COMBO_BOX (widget); @@ -104,8 +104,8 @@ gtk_combo_box_accessible_get_name (AtkObject *obj) GtkTreeIter iter; const gchar *name; GtkTreeModel *model; - gint n_columns; - gint i; + int n_columns; + int i; name = ATK_OBJECT_CLASS (gtk_combo_box_accessible_parent_class)->get_name (obj); if (name) @@ -140,10 +140,10 @@ gtk_combo_box_accessible_get_name (AtkObject *obj) return accessible->priv->name; } -static gint +static int gtk_combo_box_accessible_get_n_children (AtkObject* obj) { - gint n_children = 0; + int n_children = 0; GtkWidget *widget; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); @@ -159,7 +159,7 @@ gtk_combo_box_accessible_get_n_children (AtkObject* obj) static AtkObject * gtk_combo_box_accessible_ref_child (AtkObject *obj, - gint i) + int i) { GtkWidget *widget; AtkObject *child; @@ -216,7 +216,7 @@ gtk_combo_box_accessible_init (GtkComboBoxAccessible *combo_box) static gboolean gtk_combo_box_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkComboBox *combo_box; GtkWidget *widget; @@ -242,7 +242,7 @@ gtk_combo_box_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_combo_box_accessible_get_n_actions (AtkAction *action) { return 1; @@ -250,7 +250,7 @@ gtk_combo_box_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_combo_box_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { GtkComboBoxAccessible *combo_box; GtkWidget *widget; @@ -295,7 +295,7 @@ gtk_combo_box_accessible_get_keybinding (AtkAction *action, static const gchar * gtk_combo_box_accessible_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "press"; @@ -304,7 +304,7 @@ gtk_combo_box_accessible_action_get_name (AtkAction *action, static const gchar * gtk_combo_box_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Press"); @@ -313,7 +313,7 @@ gtk_combo_box_accessible_action_get_localized_name (AtkAction *action, static const gchar * gtk_combo_box_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Presses the combobox"); @@ -333,7 +333,7 @@ atk_action_interface_init (AtkActionIface *iface) static gboolean gtk_combo_box_accessible_add_selection (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; @@ -362,12 +362,12 @@ gtk_combo_box_accessible_clear_selection (AtkSelection *selection) static AtkObject * gtk_combo_box_accessible_ref_selection (AtkSelection *selection, - gint i) + int i) { GtkComboBox *combo_box; GtkWidget *widget; AtkObject *obj; - gint index; + int index; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (widget == NULL) @@ -384,7 +384,7 @@ gtk_combo_box_accessible_ref_selection (AtkSelection *selection, return atk_object_ref_accessible_child (obj, index); } -static gint +static int gtk_combo_box_accessible_get_selection_count (AtkSelection *selection) { GtkWidget *widget; @@ -398,10 +398,10 @@ gtk_combo_box_accessible_get_selection_count (AtkSelection *selection) static gboolean gtk_combo_box_accessible_is_child_selected (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; - gint j; + int j; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); @@ -415,7 +415,7 @@ gtk_combo_box_accessible_is_child_selected (AtkSelection *selection, static gboolean gtk_combo_box_accessible_remove_selection (AtkSelection *selection, - gint i) + int i) { if (atk_selection_is_child_selected (selection, i)) atk_selection_clear_selection (selection); diff --git a/gtk/a11y/gtkcontainercellaccessible.c b/gtk/a11y/gtkcontainercellaccessible.c index a756e3cadf..e581d98afc 100644 --- a/gtk/a11y/gtkcontainercellaccessible.c +++ b/gtk/a11y/gtkcontainercellaccessible.c @@ -24,7 +24,7 @@ struct _GtkContainerCellAccessiblePrivate { GList *children; - gint n_children; + int n_children; }; G_DEFINE_TYPE_WITH_PRIVATE (GtkContainerCellAccessible, gtk_container_cell_accessible, GTK_TYPE_CELL_ACCESSIBLE) @@ -41,7 +41,7 @@ gtk_container_cell_accessible_finalize (GObject *obj) } -static gint +static int gtk_container_cell_accessible_get_n_children (AtkObject *obj) { GtkContainerCellAccessible *cell = GTK_CONTAINER_CELL_ACCESSIBLE (obj); @@ -51,7 +51,7 @@ gtk_container_cell_accessible_get_n_children (AtkObject *obj) static AtkObject * gtk_container_cell_accessible_ref_child (AtkObject *obj, - gint child) + int child) { GtkContainerCellAccessible *cell = GTK_CONTAINER_CELL_ACCESSIBLE (obj); GList *l; diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c index f8a874833c..88a7ffcbcc 100644 --- a/gtk/a11y/gtkentryaccessible.c +++ b/gtk/a11y/gtkentryaccessible.c @@ -39,8 +39,8 @@ struct _GtkEntryAccessiblePrivate { - gint cursor_position; - gint selection_bound; + int cursor_position; + int selection_bound; AtkObject *icons[2]; }; @@ -219,7 +219,7 @@ gtk_entry_icon_accessible_class_init (GtkEntryIconAccessibleClass *klass) static gboolean gtk_entry_icon_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkEntryIconAccessible *icon = (GtkEntryIconAccessible *)action; GtkWidget *widget; @@ -245,7 +245,7 @@ gtk_entry_icon_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_entry_icon_accessible_get_n_actions (AtkAction *action) { GtkEntryIconAccessible *icon = GTK_ENTRY_ICON_ACCESSIBLE (action); @@ -257,7 +257,7 @@ gtk_entry_icon_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_entry_icon_accessible_get_name (AtkAction *action, - gint i) + int i) { GtkEntryIconAccessible *icon = GTK_ENTRY_ICON_ACCESSIBLE (action); GtkWidget *widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (icon->entry)); @@ -281,10 +281,10 @@ icon_atk_action_interface_init (AtkActionIface *iface) static void gtk_entry_icon_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkEntryIconAccessible *icon = GTK_ENTRY_ICON_ACCESSIBLE (component); @@ -309,8 +309,8 @@ gtk_entry_icon_accessible_get_extents (AtkComponent *component, static void gtk_entry_icon_accessible_get_position (AtkComponent *component, - gint *x, - gint *y, + int *x, + int *y, AtkCoordType coord_type) { GtkEntryIconAccessible *icon = GTK_ENTRY_ICON_ACCESSIBLE (component); @@ -333,8 +333,8 @@ gtk_entry_icon_accessible_get_position (AtkComponent *component, static void gtk_entry_icon_accessible_get_size (AtkComponent *component, - gint *width, - gint *height) + int *width, + int *height) { GtkEntryIconAccessible *icon = GTK_ENTRY_ICON_ACCESSIBLE (component); GdkRectangle icon_area; @@ -389,7 +389,7 @@ check_for_selection_change (GtkEntryAccessible *accessible, GtkEditable *editable) { gboolean ret_val = FALSE; - gint start, end; + int start, end; if (gtk_editable_get_selection_bounds (editable, &start, &end)) { @@ -419,8 +419,8 @@ check_for_selection_change (GtkEntryAccessible *accessible, static void insert_text_cb (GtkEditable *editable, gchar *new_text, - gint new_text_length, - gint *position, + int new_text_length, + int *position, GtkEntryAccessible *self) { int length; @@ -443,8 +443,8 @@ insert_text_cb (GtkEditable *editable, */ static void delete_text_cb (GtkEditable *editable, - gint start, - gint end, + int start, + int end, GtkEntryAccessible *self) { GtkText *textw; @@ -535,7 +535,7 @@ on_notify (GObject *gobject, } else if (g_strcmp0 (pspec->name, "secondary-icon-storage-type") == 0) { - gint index = (priv->icons[GTK_ENTRY_ICON_PRIMARY] ? 1 : 0); + int index = (priv->icons[GTK_ENTRY_ICON_PRIMARY] ? 1 : 0); if (gtk_entry_get_icon_storage_type (GTK_ENTRY (widget), GTK_ENTRY_ICON_SECONDARY) != GTK_IMAGE_EMPTY && !priv->icons[GTK_ENTRY_ICON_SECONDARY]) { @@ -705,7 +705,7 @@ gtk_entry_accessible_initialize (AtkObject *obj, { GtkWidget *widget; GtkEntryAccessible *gtk_entry_accessible; - gint start_pos, end_pos; + int start_pos, end_pos; ATK_OBJECT_CLASS (gtk_entry_accessible_parent_class)->initialize (obj, data); @@ -722,7 +722,7 @@ gtk_entry_accessible_initialize (AtkObject *obj, g_signal_connect (widget, "notify", G_CALLBACK (on_notify), obj); } -static gint +static int gtk_entry_accessible_get_index_in_parent (AtkObject *accessible) { /* @@ -736,11 +736,11 @@ gtk_entry_accessible_get_index_in_parent (AtkObject *accessible) return ATK_OBJECT_CLASS (gtk_entry_accessible_parent_class)->get_index_in_parent (accessible); } -static gint +static int gtk_entry_accessible_get_n_children (AtkObject* obj) { GtkWidget *widget; - gint count = 0; + int count = 0; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); if (widget == NULL) @@ -756,7 +756,7 @@ gtk_entry_accessible_get_n_children (AtkObject* obj) static AtkObject * gtk_entry_accessible_ref_child (AtkObject *obj, - gint i) + int i) { GtkEntryAccessible *accessible = GTK_ENTRY_ACCESSIBLE (obj); GtkEntryAccessiblePrivate *priv = accessible->priv; @@ -833,8 +833,8 @@ gtk_entry_accessible_init (GtkEntryAccessible *entry) static gchar * gtk_entry_accessible_get_text (AtkText *atk_text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkText *text; @@ -848,10 +848,10 @@ gtk_entry_accessible_get_text (AtkText *atk_text, static gchar * gtk_entry_accessible_get_text_before_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkText *text; @@ -867,10 +867,10 @@ gtk_entry_accessible_get_text_before_offset (AtkText *atk_text, static gchar * gtk_entry_accessible_get_text_at_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkText *text; @@ -886,10 +886,10 @@ gtk_entry_accessible_get_text_at_offset (AtkText *atk_text, static gchar * gtk_entry_accessible_get_text_after_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkText *text; @@ -903,7 +903,7 @@ gtk_entry_accessible_get_text_after_offset (AtkText *atk_text, start_offset, end_offset); } -static gint +static int gtk_entry_accessible_get_character_count (AtkText *atk_text) { GtkText *text; @@ -927,7 +927,7 @@ gtk_entry_accessible_get_character_count (AtkText *atk_text) return char_count; } -static gint +static int gtk_entry_accessible_get_caret_offset (AtkText *text) { GtkWidget *widget; @@ -947,7 +947,7 @@ gtk_entry_accessible_get_caret_offset (AtkText *text) static gboolean gtk_entry_accessible_set_caret_offset (AtkText *text, - gint offset) + int offset) { GtkWidget *widget; @@ -963,7 +963,7 @@ gtk_entry_accessible_set_caret_offset (AtkText *text, static AtkAttributeSet * add_text_attribute (AtkAttributeSet *attributes, AtkTextAttribute attr, - gint i) + int i) { AtkAttribute *at; @@ -976,9 +976,9 @@ add_text_attribute (AtkAttributeSet *attributes, static AtkAttributeSet * gtk_entry_accessible_get_run_attributes (AtkText *atk_text, - gint offset, - gint *start_offset, - gint *end_offset) + int offset, + int *start_offset, + int *end_offset) { GtkText *text; AtkAttributeSet *attributes; @@ -1024,17 +1024,17 @@ gtk_entry_accessible_get_default_attributes (AtkText *atk_text) static void gtk_entry_accessible_get_character_extents (AtkText *atk_text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords) { GtkText *textw; PangoRectangle char_rect; gchar *entry_text; - gint index, x_layout, y_layout; + int index, x_layout, y_layout; GtkAllocation allocation; textw = get_text (atk_text); @@ -1058,16 +1058,16 @@ gtk_entry_accessible_get_character_extents (AtkText *atk_text, *height = char_rect.height; } -static gint +static int gtk_entry_accessible_get_offset_at_point (AtkText *atk_text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { GtkText *textw; gchar *text; - gint index, x_layout, y_layout; - gint x_local, y_local; + int index, x_layout, y_layout; + int x_local, y_local; glong offset; textw = get_text (atk_text); @@ -1102,11 +1102,11 @@ gtk_entry_accessible_get_offset_at_point (AtkText *atk_text, return offset; } -static gint +static int gtk_entry_accessible_get_n_selections (AtkText *text) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -1120,9 +1120,9 @@ gtk_entry_accessible_get_n_selections (AtkText *text) static gchar * gtk_entry_accessible_get_selection (AtkText *text, - gint selection_num, - gint *start_pos, - gint *end_pos) + int selection_num, + int *start_pos, + int *end_pos) { GtkWidget *widget; @@ -1141,12 +1141,12 @@ gtk_entry_accessible_get_selection (AtkText *text, static gboolean gtk_entry_accessible_add_selection (AtkText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkEntry *entry; GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -1165,10 +1165,10 @@ gtk_entry_accessible_add_selection (AtkText *text, static gboolean gtk_entry_accessible_remove_selection (AtkText *text, - gint selection_num) + int selection_num) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -1188,12 +1188,12 @@ gtk_entry_accessible_remove_selection (AtkText *text, static gboolean gtk_entry_accessible_set_selection (AtkText *text, - gint selection_num, - gint start_pos, - gint end_pos) + int selection_num, + int start_pos, + int end_pos) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -1213,7 +1213,7 @@ gtk_entry_accessible_set_selection (AtkText *text, static gunichar gtk_entry_accessible_get_character_at_offset (AtkText *atk_text, - gint offset) + int offset) { GtkText *textw; gchar *text; @@ -1282,8 +1282,8 @@ gtk_entry_accessible_set_text_contents (AtkEditableText *text, static void gtk_entry_accessible_insert_text (AtkEditableText *text, const gchar *string, - gint length, - gint *position) + int length, + int *position) { GtkWidget *widget; GtkEditable *editable; @@ -1302,8 +1302,8 @@ gtk_entry_accessible_insert_text (AtkEditableText *text, static void gtk_entry_accessible_copy_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -1323,8 +1323,8 @@ gtk_entry_accessible_copy_text (AtkEditableText *text, static void gtk_entry_accessible_cut_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -1347,8 +1347,8 @@ gtk_entry_accessible_cut_text (AtkEditableText *text, static void gtk_entry_accessible_delete_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -1367,7 +1367,7 @@ gtk_entry_accessible_delete_text (AtkEditableText *text, typedef struct { GtkEntry* entry; - gint position; + int position; } PasteData; static void @@ -1390,7 +1390,7 @@ paste_received_cb (GObject *clipboard, static void gtk_entry_accessible_paste_text (AtkEditableText *text, - gint position) + int position) { GtkWidget *widget; GtkEditable *editable; @@ -1428,7 +1428,7 @@ atk_editable_text_interface_init (AtkEditableTextIface *iface) static gboolean gtk_entry_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -1447,7 +1447,7 @@ gtk_entry_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_entry_accessible_get_n_actions (AtkAction *action) { return 1; @@ -1455,7 +1455,7 @@ gtk_entry_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_entry_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { GtkWidget *widget; GtkWidget *label; @@ -1500,7 +1500,7 @@ gtk_entry_accessible_get_keybinding (AtkAction *action, static const gchar* gtk_entry_accessible_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "activate"; @@ -1509,7 +1509,7 @@ gtk_entry_accessible_action_get_name (AtkAction *action, static const gchar* gtk_entry_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Activate"); @@ -1518,7 +1518,7 @@ gtk_entry_accessible_action_get_localized_name (AtkAction *action, static const gchar* gtk_entry_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Activates the entry"); diff --git a/gtk/a11y/gtkexpanderaccessible.c b/gtk/a11y/gtkexpanderaccessible.c index a4d323df15..8644675d11 100644 --- a/gtk/a11y/gtkexpanderaccessible.c +++ b/gtk/a11y/gtkexpanderaccessible.c @@ -57,7 +57,7 @@ gtk_expander_accessible_get_name (AtkObject *obj) return gtk_expander_accessible_get_full_text (GTK_EXPANDER (widget)); } -static gint +static int gtk_expander_accessible_get_n_children (AtkObject *obj) { GtkWidget *widget; @@ -74,7 +74,7 @@ gtk_expander_accessible_get_n_children (AtkObject *obj) static AtkObject * gtk_expander_accessible_ref_child (AtkObject *obj, - gint i) + int i) { AtkObject *accessible; GtkWidget *widget; @@ -160,7 +160,7 @@ gtk_expander_accessible_init (GtkExpanderAccessible *self) static gboolean gtk_expander_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -178,7 +178,7 @@ gtk_expander_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_expander_accessible_get_n_actions (AtkAction *action) { return 1; @@ -186,7 +186,7 @@ gtk_expander_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_expander_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { gchar *return_value = NULL; GtkWidget *widget; @@ -214,7 +214,7 @@ gtk_expander_accessible_get_keybinding (AtkAction *action, static const gchar * gtk_expander_accessible_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "activate"; @@ -223,7 +223,7 @@ gtk_expander_accessible_action_get_name (AtkAction *action, static const gchar * gtk_expander_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Activate"); @@ -232,7 +232,7 @@ gtk_expander_accessible_action_get_localized_name (AtkAction *action, static const gchar * gtk_expander_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Activates the expander"); diff --git a/gtk/a11y/gtkflowboxaccessible.c b/gtk/a11y/gtkflowboxaccessible.c index 40b65857fc..4b0a07d5f8 100644 --- a/gtk/a11y/gtkflowboxaccessible.c +++ b/gtk/a11y/gtkflowboxaccessible.c @@ -66,7 +66,7 @@ gtk_flow_box_accessible_class_init (GtkFlowBoxAccessibleClass *klass) static gboolean gtk_flow_box_accessible_add_selection (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; GtkWidget *child; @@ -91,7 +91,7 @@ gtk_flow_box_accessible_add_selection (AtkSelection *selection, static gboolean gtk_flow_box_accessible_remove_selection (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; GtkWidget *child; @@ -142,7 +142,7 @@ gtk_flow_box_accessible_select_all (AtkSelection *selection) typedef struct { - gint idx; + int idx; GtkWidget *child; } FindSelectedData; @@ -164,7 +164,7 @@ find_selected_child (GtkFlowBox *box, static AtkObject * gtk_flow_box_accessible_ref_selection (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; AtkObject *accessible; @@ -191,15 +191,15 @@ count_selected (GtkFlowBox *box, GtkFlowBoxChild *child, gpointer data) { - gint *count = data; + int *count = data; *count += 1; } -static gint +static int gtk_flow_box_accessible_get_selection_count (AtkSelection *selection) { GtkWidget *box; - gint count; + int count; box = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (box == NULL) @@ -213,7 +213,7 @@ gtk_flow_box_accessible_get_selection_count (AtkSelection *selection) static gboolean gtk_flow_box_accessible_is_child_selected (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; GtkFlowBoxChild *child; diff --git a/gtk/a11y/gtkiconviewaccessible.c b/gtk/a11y/gtkiconviewaccessible.c index db2d56d079..4a4fd8e9a1 100644 --- a/gtk/a11y/gtkiconviewaccessible.c +++ b/gtk/a11y/gtkiconviewaccessible.c @@ -96,7 +96,7 @@ idle_do_action (gpointer data) static gboolean gtk_icon_view_item_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkIconViewItemAccessible *item; @@ -120,7 +120,7 @@ gtk_icon_view_item_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_icon_view_item_accessible_get_n_actions (AtkAction *action) { return 1; @@ -128,7 +128,7 @@ gtk_icon_view_item_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_icon_view_item_accessible_get_description (AtkAction *action, - gint i) + int i) { GtkIconViewItemAccessible *item; @@ -145,7 +145,7 @@ gtk_icon_view_item_accessible_get_description (AtkAction *action, static const gchar * gtk_icon_view_item_accessible_get_name (AtkAction *action, - gint i) + int i) { if (i != 0) return NULL; @@ -155,7 +155,7 @@ gtk_icon_view_item_accessible_get_name (AtkAction *action, static gboolean gtk_icon_view_item_accessible_set_description (AtkAction *action, - gint i, + int i, const gchar *description) { GtkIconViewItemAccessible *item; @@ -273,8 +273,8 @@ get_text (GtkIconView *icon_view, static void gtk_icon_view_item_accessible_get_image_size (AtkImage *image, - gint *width, - gint *height) + int *width, + int *height) { GtkIconViewItemAccessible *item; GdkRectangle box; @@ -299,8 +299,8 @@ gtk_icon_view_item_accessible_get_image_size (AtkImage *image, static void gtk_icon_view_item_accessible_get_image_position (AtkImage *image, - gint *x, - gint *y, + int *x, + int *y, AtkCoordType coord_type) { GtkIconViewItemAccessible *item; @@ -336,8 +336,8 @@ atk_image_item_interface_init (AtkImageIface *iface) static gchar * gtk_icon_view_item_accessible_get_text (AtkText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkIconViewItemAccessible *item; @@ -353,7 +353,7 @@ gtk_icon_view_item_accessible_get_text (AtkText *text, static gunichar gtk_icon_view_item_accessible_get_character_at_offset (AtkText *text, - gint offset) + int offset) { GtkIconViewItemAccessible *item; gchar *string; @@ -388,10 +388,10 @@ create_pango_layout (GtkIconViewItemAccessible *item) static gchar * gtk_icon_view_item_accessible_get_text_before_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkIconViewItemAccessible *item; PangoLayout *layout; @@ -410,10 +410,10 @@ gtk_icon_view_item_accessible_get_text_before_offset (AtkText *atk_text, static gchar * gtk_icon_view_item_accessible_get_text_at_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkIconViewItemAccessible *item; PangoLayout *layout; @@ -432,10 +432,10 @@ gtk_icon_view_item_accessible_get_text_at_offset (AtkText *atk_text, static gchar * gtk_icon_view_item_accessible_get_text_after_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkIconViewItemAccessible *item; PangoLayout *layout; @@ -452,7 +452,7 @@ gtk_icon_view_item_accessible_get_text_after_offset (AtkText *atk_text, return text; } -static gint +static int gtk_icon_view_item_accessible_get_character_count (AtkText *text) { GtkIconViewItemAccessible *item; @@ -469,11 +469,11 @@ gtk_icon_view_item_accessible_get_character_count (AtkText *text) static void gtk_icon_view_item_accessible_get_character_extents (AtkText *text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkIconViewItemAccessible *item; @@ -481,7 +481,7 @@ gtk_icon_view_item_accessible_get_character_extents (AtkText *text, GtkIconView *icon_view; PangoRectangle char_rect; const gchar *item_text; - gint index; + int index; #endif item = GTK_ICON_VIEW_ITEM_ACCESSIBLE (text); @@ -510,19 +510,19 @@ gtk_icon_view_item_accessible_get_character_extents (AtkText *text, #endif } -static gint +static int gtk_icon_view_item_accessible_get_offset_at_point (AtkText *text, - gint x, - gint y, + int x, + int y, AtkCoordType coord_type) { GtkIconViewItemAccessible *item; - gint offset = 0; + int offset = 0; #if 0 GtkIconView *icon_view; const gchar *item_text; - gint index; - gint l_x, l_y; + int index; + int l_x, l_y; #endif item = GTK_ICON_VIEW_ITEM_ACCESSIBLE (text); @@ -575,15 +575,15 @@ atk_text_item_interface_init (AtkTextIface *iface) static void gtk_icon_view_item_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkIconViewItemAccessible *item; AtkObject *parent_obj; - gint l_x, l_y; + int l_x, l_y; g_return_if_fail (GTK_IS_ICON_VIEW_ITEM_ACCESSIBLE (component)); @@ -799,7 +799,7 @@ _gtk_icon_view_item_accessible_get_parent (AtkObject *obj) return NULL; } -static gint +static int _gtk_icon_view_item_accessible_get_index_in_parent (AtkObject *obj) { GtkIconViewItemAccessible *item; @@ -892,7 +892,7 @@ gtk_icon_view_item_accessible_info_new (GtkIconViewAccessible *self, priv->items = g_list_insert_before (priv->items, items, info); } -static gint +static int gtk_icon_view_accessible_get_n_children (AtkObject *accessible) { GtkIconView *icon_view; @@ -909,7 +909,7 @@ gtk_icon_view_accessible_get_n_children (AtkObject *accessible) static GtkIconViewItemAccessible * gtk_icon_view_accessible_find_child (GtkIconViewAccessible *self, - gint index) + int index) { GtkIconViewAccessiblePrivate *priv = gtk_icon_view_accessible_get_instance_private (self); GList *items; @@ -932,7 +932,7 @@ gtk_icon_view_accessible_find_child (GtkIconViewAccessible *self, static AtkObject * gtk_icon_view_accessible_ref_child (AtkObject *accessible, - gint index) + int index) { GtkIconViewAccessible *self = GTK_ICON_VIEW_ACCESSIBLE (accessible); GtkIconViewItemAccessible *a11y_item; @@ -1148,7 +1148,7 @@ gtk_icon_view_accessible_model_row_deleted (GtkTreeModel *tree_model, gtk_icon_view_accessible_traverse_items (self, tmp_list); } -static gint +static int gtk_icon_view_accessible_item_compare (ItemAccessibleInfo *i1, ItemAccessibleInfo *i2) { @@ -1159,7 +1159,7 @@ static void gtk_icon_view_accessible_model_rows_reordered (GtkTreeModel *tree_model, GtkTreePath *path, GtkTreeIter *iter, - gint *new_order, + int *new_order, gpointer user_data) { GtkIconViewAccessible *self = user_data; @@ -1327,14 +1327,14 @@ gtk_icon_view_accessible_init (GtkIconViewAccessible *accessible) static AtkObject* gtk_icon_view_accessible_ref_accessible_at_point (AtkComponent *component, - gint x, - gint y, + int x, + int y, AtkCoordType coord_type) { GtkWidget *widget; GtkIconView *icon_view; GtkIconViewItem *item; - gint x_pos, y_pos; + int x_pos, y_pos; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component)); if (widget == NULL) @@ -1357,7 +1357,7 @@ atk_component_interface_init (AtkComponentIface *iface) static gboolean gtk_icon_view_accessible_add_selection (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; GtkIconView *icon_view; @@ -1396,7 +1396,7 @@ gtk_icon_view_accessible_clear_selection (AtkSelection *selection) static AtkObject* gtk_icon_view_accessible_ref_selection (AtkSelection *selection, - gint i) + int i) { GList *l; GtkWidget *widget; @@ -1426,14 +1426,14 @@ gtk_icon_view_accessible_ref_selection (AtkSelection *selection, return NULL; } -static gint +static int gtk_icon_view_accessible_get_selection_count (AtkSelection *selection) { GtkWidget *widget; GtkIconView *icon_view; GtkIconViewItem *item; GList *l; - gint count; + int count; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (widget == NULL) @@ -1458,7 +1458,7 @@ gtk_icon_view_accessible_get_selection_count (AtkSelection *selection) static gboolean gtk_icon_view_accessible_is_child_selected (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; GtkIconView *icon_view; @@ -1479,13 +1479,13 @@ gtk_icon_view_accessible_is_child_selected (AtkSelection *selection, static gboolean gtk_icon_view_accessible_remove_selection (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; GtkIconView *icon_view; GtkIconViewItem *item; GList *l; - gint count; + int count; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (widget == NULL) diff --git a/gtk/a11y/gtkimageaccessible.c b/gtk/a11y/gtkimageaccessible.c index e299f3d4cc..98e6d5843d 100644 --- a/gtk/a11y/gtkimageaccessible.c +++ b/gtk/a11y/gtkimageaccessible.c @@ -177,7 +177,7 @@ name_from_icon_name (const gchar *icon_name) { gchar *name; const gchar *label; - gint i; + int i; name = g_strdup (icon_name); if (g_str_has_suffix (name, "-symbolic")) @@ -281,8 +281,8 @@ gtk_image_accessible_get_image_description (AtkImage *image) static void gtk_image_accessible_get_image_position (AtkImage *image, - gint *x, - gint *y, + int *x, + int *y, AtkCoordType coord_type) { atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL, @@ -291,8 +291,8 @@ gtk_image_accessible_get_image_position (AtkImage *image, static void gtk_image_accessible_get_image_size (AtkImage *image, - gint *width, - gint *height) + int *width, + int *height) { GtkWidget* widget; GtkImage *gtk_image; diff --git a/gtk/a11y/gtkimagecellaccessible.c b/gtk/a11y/gtkimagecellaccessible.c index 152c456c26..56827237f7 100644 --- a/gtk/a11y/gtkimagecellaccessible.c +++ b/gtk/a11y/gtkimagecellaccessible.c @@ -79,8 +79,8 @@ gtk_image_cell_accessible_set_image_description (AtkImage *image, static void gtk_image_cell_accessible_get_image_position (AtkImage *image, - gint *x, - gint *y, + int *x, + int *y, AtkCoordType coord_type) { atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL, @@ -89,8 +89,8 @@ gtk_image_cell_accessible_get_image_position (AtkImage *image, static void gtk_image_cell_accessible_get_image_size (AtkImage *image, - gint *width, - gint *height) + int *width, + int *height) { GtkImageCellAccessible *cell = GTK_IMAGE_CELL_ACCESSIBLE (image); GtkCellRenderer *cell_renderer; diff --git a/gtk/a11y/gtklabelaccessible.c b/gtk/a11y/gtklabelaccessible.c index 2048a7c0b3..7c53c309f0 100644 --- a/gtk/a11y/gtklabelaccessible.c +++ b/gtk/a11y/gtklabelaccessible.c @@ -29,8 +29,8 @@ struct _GtkLabelAccessiblePrivate { - gint cursor_position; - gint selection_bound; + int cursor_position; + int selection_bound; GList *links; }; @@ -43,7 +43,7 @@ struct _GtkLabelAccessibleLink AtkHyperlink parent; GtkLabelAccessible *label; - gint index; + int index; gboolean focused; }; @@ -53,7 +53,7 @@ struct _GtkLabelAccessibleLinkClass }; static GtkLabelAccessibleLink *gtk_label_accessible_link_new (GtkLabelAccessible *label, - gint idx); + int idx); typedef struct _GtkLabelAccessibleLinkImpl GtkLabelAccessibleLinkImpl; typedef struct _GtkLabelAccessibleLinkImplClass GtkLabelAccessibleLinkImplClass; @@ -153,7 +153,7 @@ _gtk_label_accessible_link_impl_class_init (GtkLabelAccessibleLinkImplClass *cla static GtkLabelAccessibleLinkImpl * gtk_label_accessible_link_impl_new (GtkLabelAccessible *label, - gint idx) + int idx) { GtkLabelAccessibleLinkImpl *impl; @@ -175,7 +175,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkLabelAccessibleLink, _gtk_label_accessible_link, ATK static gchar * gtk_label_accessible_link_get_uri (AtkHyperlink *atk_link, - gint i) + int i) { GtkLabelAccessibleLink *link = (GtkLabelAccessibleLink *)atk_link; GtkWidget *widget; @@ -192,7 +192,7 @@ gtk_label_accessible_link_get_uri (AtkHyperlink *atk_link, return g_strdup (uri); } -static gint +static int gtk_label_accessible_link_get_n_anchors (AtkHyperlink *atk_link) { return 1; @@ -206,7 +206,7 @@ gtk_label_accessible_link_is_valid (AtkHyperlink *atk_link) static AtkObject * gtk_label_accessible_link_get_object (AtkHyperlink *atk_link, - gint i) + int i) { GtkLabelAccessibleLink *link = (GtkLabelAccessibleLink *)atk_link; @@ -215,12 +215,12 @@ gtk_label_accessible_link_get_object (AtkHyperlink *atk_link, return ATK_OBJECT (link->label); } -static gint +static int gtk_label_accessible_link_get_start_index (AtkHyperlink *atk_link) { GtkLabelAccessibleLink *link = (GtkLabelAccessibleLink *)atk_link; GtkWidget *widget; - gint start, end; + int start, end; if (link->label == NULL) return 0; @@ -231,12 +231,12 @@ gtk_label_accessible_link_get_start_index (AtkHyperlink *atk_link) return start; } -static gint +static int gtk_label_accessible_link_get_end_index (AtkHyperlink *atk_link) { GtkLabelAccessibleLink *link = (GtkLabelAccessibleLink *)atk_link; GtkWidget *widget; - gint start, end; + int start, end; if (link->label == NULL) return 0; @@ -269,7 +269,7 @@ _gtk_label_accessible_link_class_init (GtkLabelAccessibleLinkClass *class) static GtkLabelAccessibleLink * gtk_label_accessible_link_new (GtkLabelAccessible *label, - gint idx) + int idx) { GtkLabelAccessibleLink *link; @@ -284,7 +284,7 @@ gtk_label_accessible_link_new (GtkLabelAccessible *label, static gboolean gtk_label_accessible_link_do_action (AtkAction *action, - gint i) + int i) { GtkLabelAccessibleLink *link = (GtkLabelAccessibleLink *)action; GtkWidget *widget; @@ -307,7 +307,7 @@ gtk_label_accessible_link_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_label_accessible_link_get_n_actions (AtkAction *action) { return 1; @@ -315,7 +315,7 @@ gtk_label_accessible_link_get_n_actions (AtkAction *action) static const gchar * gtk_label_accessible_link_get_name (AtkAction *action, - gint i) + int i) { if (i != 0) return NULL; @@ -380,7 +380,7 @@ check_for_selection_change (GtkLabelAccessible *accessible, GtkLabel *label) { gboolean ret_val = FALSE; - gint start, end; + int start, end; if (gtk_label_get_selection_bounds (label, &start, &end)) { @@ -485,7 +485,7 @@ gtk_label_accessible_get_name (AtkObject *accessible) } } -static gint +static int gtk_label_accessible_get_n_children (AtkObject *obj) { GtkLabelAccessible *accessible = GTK_LABEL_ACCESSIBLE (obj); @@ -495,7 +495,7 @@ gtk_label_accessible_get_n_children (AtkObject *obj) static AtkObject * gtk_label_accessible_ref_child (AtkObject *obj, - gint idx) + int idx) { GtkLabelAccessible *accessible = GTK_LABEL_ACCESSIBLE (obj); AtkObject *child; @@ -612,7 +612,7 @@ static void clear_links (GtkLabelAccessible *accessible) { GList *l; - gint i; + int i; GtkLabelAccessibleLinkImpl *impl; for (l = accessible->priv->links, i = 0; l; l = l->next, i++) @@ -630,7 +630,7 @@ static void create_links (GtkLabelAccessible *accessible) { GtkWidget *widget; - gint n, i; + int n, i; GtkLabelAccessibleLinkImpl *impl; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (accessible)); @@ -688,8 +688,8 @@ _gtk_label_accessible_focus_link_changed (GtkLabel *label) static gchar* gtk_label_accessible_get_text (AtkText *atk_text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; const gchar *text; @@ -722,10 +722,10 @@ gtk_label_accessible_get_text (AtkText *atk_text, static gchar * gtk_label_accessible_get_text_before_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; @@ -740,10 +740,10 @@ gtk_label_accessible_get_text_before_offset (AtkText *text, static gchar* gtk_label_accessible_get_text_at_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; @@ -758,10 +758,10 @@ gtk_label_accessible_get_text_at_offset (AtkText *text, static gchar* gtk_label_accessible_get_text_after_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; @@ -774,7 +774,7 @@ gtk_label_accessible_get_text_after_offset (AtkText *text, start_offset, end_offset); } -static gint +static int gtk_label_accessible_get_character_count (AtkText *atk_text) { GtkWidget *widget; @@ -792,7 +792,7 @@ gtk_label_accessible_get_character_count (AtkText *atk_text) return 0; } -static gint +static int gtk_label_accessible_get_caret_offset (AtkText *text) { GtkWidget *widget; @@ -810,7 +810,7 @@ gtk_label_accessible_get_caret_offset (AtkText *text) static gboolean gtk_label_accessible_set_caret_offset (AtkText *text, - gint offset) + int offset) { GtkWidget *widget; GtkLabel *label; @@ -829,7 +829,7 @@ gtk_label_accessible_set_caret_offset (AtkText *text, return TRUE; } -static gint +static int gtk_label_accessible_get_n_selections (AtkText *text) { GtkWidget *widget; @@ -846,9 +846,9 @@ gtk_label_accessible_get_n_selections (AtkText *text) static gchar * gtk_label_accessible_get_selection (AtkText *atk_text, - gint selection_num, - gint *start_pos, - gint *end_pos) + int selection_num, + int *start_pos, + int *end_pos) { GtkWidget *widget; GtkLabel *label; @@ -877,12 +877,12 @@ gtk_label_accessible_get_selection (AtkText *atk_text, static gboolean gtk_label_accessible_add_selection (AtkText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkLabel *label; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -904,11 +904,11 @@ gtk_label_accessible_add_selection (AtkText *text, static gboolean gtk_label_accessible_remove_selection (AtkText *text, - gint selection_num) + int selection_num) { GtkWidget *widget; GtkLabel *label; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -933,13 +933,13 @@ gtk_label_accessible_remove_selection (AtkText *text, static gboolean gtk_label_accessible_set_selection (AtkText *text, - gint selection_num, - gint start_pos, - gint end_pos) + int selection_num, + int start_pos, + int end_pos) { GtkWidget *widget; GtkLabel *label; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -964,18 +964,18 @@ gtk_label_accessible_set_selection (AtkText *text, static void gtk_label_accessible_get_character_extents (AtkText *text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords) { GtkWidget *widget; GtkLabel *label; PangoRectangle char_rect; const gchar *label_text; - gint index, x_layout, y_layout; + int index, x_layout, y_layout; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -995,17 +995,17 @@ gtk_label_accessible_get_character_extents (AtkText *text, *height = char_rect.height; } -static gint +static int gtk_label_accessible_get_offset_at_point (AtkText *atk_text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { GtkWidget *widget; GtkLabel *label; const gchar *text; - gint index, x_layout, y_layout; - gint x_local, y_local; + int index, x_layout, y_layout; + int x_local, y_local; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (atk_text)); if (widget == NULL) @@ -1054,9 +1054,9 @@ add_attribute (AtkAttributeSet *attributes, static AtkAttributeSet* gtk_label_accessible_get_run_attributes (AtkText *text, - gint offset, - gint *start_offset, - gint *end_offset) + int offset, + int *start_offset, + int *end_offset) { GtkWidget *widget; AtkAttributeSet *attributes; @@ -1102,7 +1102,7 @@ gtk_label_accessible_get_default_attributes (AtkText *text) static gunichar gtk_label_accessible_get_character_at_offset (AtkText *atk_text, - gint offset) + int offset) { GtkWidget *widget; const gchar *text; @@ -1147,7 +1147,7 @@ atk_text_interface_init (AtkTextIface *iface) static AtkHyperlink * gtk_label_accessible_get_link (AtkHypertext *hypertext, - gint idx) + int idx) { GtkLabelAccessible *label = GTK_LABEL_ACCESSIBLE (hypertext); GtkLabelAccessibleLinkImpl *impl; @@ -1160,7 +1160,7 @@ gtk_label_accessible_get_link (AtkHypertext *hypertext, return NULL; } -static gint +static int gtk_label_accessible_get_n_links (AtkHypertext *hypertext) { GtkWidget *widget; @@ -1170,9 +1170,9 @@ gtk_label_accessible_get_n_links (AtkHypertext *hypertext) return _gtk_label_get_n_links (GTK_LABEL (widget)); } -static gint +static int gtk_label_accessible_get_link_index (AtkHypertext *hypertext, - gint char_index) + int char_index) { GtkWidget *widget; diff --git a/gtk/a11y/gtklinkbuttonaccessible.c b/gtk/a11y/gtklinkbuttonaccessible.c index 6953cef85e..1a218940a1 100644 --- a/gtk/a11y/gtklinkbuttonaccessible.c +++ b/gtk/a11y/gtklinkbuttonaccessible.c @@ -60,7 +60,7 @@ gtk_link_button_accessible_link_new (GtkLinkButtonAccessible *button) static gchar * gtk_link_button_accessible_link_get_uri (AtkHyperlink *atk_link, - gint i) + int i) { GtkLinkButtonAccessibleLink *l = (GtkLinkButtonAccessibleLink *)atk_link; GtkWidget *widget; @@ -72,7 +72,7 @@ gtk_link_button_accessible_link_get_uri (AtkHyperlink *atk_link, return g_strdup (uri); } -static gint +static int gtk_link_button_accessible_link_get_n_anchors (AtkHyperlink *atk_link) { return 1; @@ -86,7 +86,7 @@ gtk_link_button_accessible_link_is_valid (AtkHyperlink *atk_link) static AtkObject * gtk_link_button_accessible_link_get_object (AtkHyperlink *atk_link, - gint i) + int i) { GtkLinkButtonAccessibleLink *l = (GtkLinkButtonAccessibleLink *)atk_link; @@ -111,7 +111,7 @@ _gtk_link_button_accessible_link_class_init (GtkLinkButtonAccessibleLinkClass *c static gboolean gtk_link_button_accessible_link_do_action (AtkAction *action, - gint i) + int i) { GtkLinkButtonAccessibleLink *l = (GtkLinkButtonAccessibleLink *)action; GtkWidget *widget; @@ -131,7 +131,7 @@ gtk_link_button_accessible_link_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_link_button_accessible_link_get_n_actions (AtkAction *action) { return 1; @@ -139,7 +139,7 @@ gtk_link_button_accessible_link_get_n_actions (AtkAction *action) static const gchar * gtk_link_button_accessible_link_get_name (AtkAction *action, - gint i) + int i) { if (i != 0) return NULL; diff --git a/gtk/a11y/gtklistboxaccessible.c b/gtk/a11y/gtklistboxaccessible.c index f28581fd70..6ee7801337 100644 --- a/gtk/a11y/gtklistboxaccessible.c +++ b/gtk/a11y/gtklistboxaccessible.c @@ -66,7 +66,7 @@ gtk_list_box_accessible_class_init (GtkListBoxAccessibleClass *klass) static gboolean gtk_list_box_accessible_add_selection (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; GtkListBoxRow *row; @@ -86,7 +86,7 @@ gtk_list_box_accessible_add_selection (AtkSelection *selection, static gboolean gtk_list_box_accessible_remove_selection (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; GtkListBoxRow *row; @@ -132,7 +132,7 @@ gtk_list_box_accessible_select_all (AtkSelection *selection) typedef struct { - gint idx; + int idx; GtkWidget *row; } FindSelectedData; @@ -154,7 +154,7 @@ find_selected_row (GtkListBox *box, static AtkObject * gtk_list_box_accessible_ref_selection (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; AtkObject *accessible; @@ -181,15 +181,15 @@ count_selected (GtkListBox *box, GtkListBoxRow *row, gpointer data) { - gint *count = data; + int *count = data; *count += 1; } -static gint +static int gtk_list_box_accessible_get_selection_count (AtkSelection *selection) { GtkWidget *box; - gint count; + int count; box = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (box == NULL) @@ -203,7 +203,7 @@ gtk_list_box_accessible_get_selection_count (AtkSelection *selection) static gboolean gtk_list_box_accessible_is_child_selected (AtkSelection *selection, - gint idx) + int idx) { GtkWidget *box; GtkListBoxRow *row; diff --git a/gtk/a11y/gtkmenubuttonaccessible.c b/gtk/a11y/gtkmenubuttonaccessible.c index 75482cfc21..914fa704f5 100644 --- a/gtk/a11y/gtkmenubuttonaccessible.c +++ b/gtk/a11y/gtkmenubuttonaccessible.c @@ -33,11 +33,11 @@ gtk_menu_button_accessible_initialize (AtkObject *accessible, accessible->role = ATK_ROLE_TOGGLE_BUTTON; } -static gint +static int gtk_menu_button_accessible_get_n_children (AtkObject* obj) { GtkWidget *widget; - gint count = 0; + int count = 0; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); if (widget == NULL) @@ -48,7 +48,7 @@ gtk_menu_button_accessible_get_n_children (AtkObject* obj) static AtkObject * gtk_menu_button_accessible_ref_child (AtkObject *obj, - gint i) + int i) { AtkObject *accessible = NULL; GtkWidget *widget; diff --git a/gtk/a11y/gtknotebookaccessible.c b/gtk/a11y/gtknotebookaccessible.c index 468e2a4206..9fb930cd4e 100644 --- a/gtk/a11y/gtknotebookaccessible.c +++ b/gtk/a11y/gtknotebookaccessible.c @@ -33,7 +33,7 @@ struct _GtkNotebookAccessiblePrivate * need to be created */ GHashTable * pages; - gint selected_page; + int selected_page; }; static void atk_selection_interface_init (AtkSelectionIface *iface); @@ -46,7 +46,7 @@ static void create_notebook_page_accessible (GtkNotebookAccessible *accessible, GtkNotebook *notebook, GtkWidget *child, - gint page_num) + int page_num) { AtkObject *obj; @@ -96,7 +96,7 @@ gtk_notebook_accessible_initialize (AtkObject *obj, { GtkNotebookAccessible *accessible; GtkNotebook *notebook; - gint i; + int i; ATK_OBJECT_CLASS (gtk_notebook_accessible_parent_class)->initialize (obj, data); @@ -131,7 +131,7 @@ gtk_notebook_accessible_finalize (GObject *object) static AtkObject * gtk_notebook_accessible_ref_child (AtkObject *obj, - gint i) + int i) { AtkObject *child; GtkNotebookAccessible *accessible; @@ -199,7 +199,7 @@ gtk_notebook_accessible_update_page (GtkNotebookAccessible *self, */ static gboolean gtk_notebook_accessible_add_selection (AtkSelection *selection, - gint i) + int i) { GtkNotebook *notebook; GtkWidget *widget; @@ -238,12 +238,12 @@ gtk_notebook_accessible_init (GtkNotebookAccessible *notebook) static AtkObject * gtk_notebook_accessible_ref_selection (AtkSelection *selection, - gint i) + int i) { AtkObject *accessible; GtkWidget *widget; GtkNotebook *notebook; - gint pagenum; + int pagenum; if (i != 0) return NULL; @@ -264,7 +264,7 @@ gtk_notebook_accessible_ref_selection (AtkSelection *selection, /* Always return 1 because there can only be one page * selected at any time */ -static gint +static int gtk_notebook_accessible_get_selection_count (AtkSelection *selection) { GtkWidget *widget; @@ -283,11 +283,11 @@ gtk_notebook_accessible_get_selection_count (AtkSelection *selection) static gboolean gtk_notebook_accessible_is_child_selected (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; GtkNotebook *notebook; - gint pagenumber; + int pagenumber; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (widget == NULL) diff --git a/gtk/a11y/gtknotebookpageaccessible.c b/gtk/a11y/gtknotebookpageaccessible.c index 09d089ebe3..dfa199ad51 100644 --- a/gtk/a11y/gtknotebookpageaccessible.c +++ b/gtk/a11y/gtknotebookpageaccessible.c @@ -103,7 +103,7 @@ gtk_notebook_page_accessible_get_parent (AtkObject *accessible) return ATK_OBJECT (page->priv->notebook); } -static gint +static int gtk_notebook_page_accessible_get_n_children (AtkObject *accessible) { return 1; @@ -111,7 +111,7 @@ gtk_notebook_page_accessible_get_n_children (AtkObject *accessible) static AtkObject * gtk_notebook_page_accessible_ref_child (AtkObject *accessible, - gint i) + int i) { AtkObject *child_obj; GtkNotebookPageAccessible *page = NULL; @@ -185,7 +185,7 @@ gtk_notebook_page_accessible_ref_state_set (AtkObject *accessible) return merged_state_set; } -static gint +static int gtk_notebook_page_accessible_get_index_in_parent (AtkObject *accessible) { GtkNotebookPageAccessible *page; @@ -278,8 +278,8 @@ gtk_notebook_page_accessible_invalidate (GtkNotebookPageAccessible *page) static AtkObject* gtk_notebook_page_accessible_ref_accessible_at_point (AtkComponent *component, - gint x, - gint y, + int x, + int y, AtkCoordType coord_type) { /* There is only one child so we return it */ @@ -292,10 +292,10 @@ gtk_notebook_page_accessible_ref_accessible_at_point (AtkComponent *component, static void gtk_notebook_page_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkWidget *label; diff --git a/gtk/a11y/gtkpanedaccessible.c b/gtk/a11y/gtkpanedaccessible.c index ba574485d8..8d2791166a 100644 --- a/gtk/a11y/gtkpanedaccessible.c +++ b/gtk/a11y/gtkpanedaccessible.c @@ -64,7 +64,7 @@ gtk_paned_accessible_get_current_value (AtkValue *obj, GValue *value) { GtkWidget* widget; - gint current_value; + int current_value; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); if (widget == NULL) @@ -81,7 +81,7 @@ gtk_paned_accessible_get_maximum_value (AtkValue *obj, GValue *value) { GtkWidget* widget; - gint maximum_value; + int maximum_value; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); if (widget == NULL) @@ -100,7 +100,7 @@ gtk_paned_accessible_get_minimum_value (AtkValue *obj, GValue *value) { GtkWidget* widget; - gint minimum_value; + int minimum_value; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); if (widget == NULL) @@ -124,7 +124,7 @@ gtk_paned_accessible_set_current_value (AtkValue *obj, const GValue *value) { GtkWidget* widget; - gint new_value; + int new_value; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); if (widget == NULL) @@ -160,8 +160,8 @@ static AtkRange * gtk_paned_accessible_get_range (AtkValue *obj) { GtkWidget *widget; - gint minimum_value; - gint maximum_value; + int minimum_value; + int maximum_value; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); @@ -183,7 +183,7 @@ gtk_paned_accessible_set_value (AtkValue *obj, widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)); paned = GTK_PANED (widget); - gtk_paned_set_position (paned, (gint)(value + 0.5)); + gtk_paned_set_position (paned, (int)(value + 0.5)); } static void diff --git a/gtk/a11y/gtkpasswordentryaccessible.c b/gtk/a11y/gtkpasswordentryaccessible.c index 3b3236767f..9cb060ad22 100644 --- a/gtk/a11y/gtkpasswordentryaccessible.c +++ b/gtk/a11y/gtkpasswordentryaccessible.c @@ -63,7 +63,7 @@ get_text_widget (GtkAccessible *accessible) static gunichar gtk_password_entry_accessible_get_character_at_offset (AtkText *atk_text, - gint offset) + int offset) { GtkText *text; char *contents, *index; @@ -89,7 +89,7 @@ gtk_password_entry_accessible_get_character_at_offset (AtkText *atk_text, return result; } -static gint +static int gtk_password_entry_accessible_get_caret_offset (AtkText *atk_text) { GtkWidget *widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (atk_text)); @@ -107,7 +107,7 @@ gtk_password_entry_accessible_get_caret_offset (AtkText *atk_text) static gboolean gtk_password_entry_accessible_set_caret_offset (AtkText *atk_text, - gint offset) + int offset) { GtkWidget *widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (atk_text)); if (widget == NULL) @@ -118,7 +118,7 @@ gtk_password_entry_accessible_set_caret_offset (AtkText *atk_text, return TRUE; } -static gint +static int gtk_password_entry_accessible_get_character_count (AtkText *atk_text) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -137,10 +137,10 @@ gtk_password_entry_accessible_get_character_count (AtkText *atk_text) return char_count; } -static gint +static int gtk_password_entry_accessible_get_offset_at_point (AtkText *atk_text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -207,8 +207,8 @@ gtk_password_entry_accessible_set_text_contents (AtkEditableText *text, static void gtk_password_entry_accessible_insert_text (AtkEditableText *text, const gchar *string, - gint length, - gint *position) + int length, + int *position) { GtkWidget *widget; GtkEditable *editable; @@ -234,8 +234,8 @@ gtk_password_entry_accessible_insert_text (AtkEditableText *text, static void gtk_password_entry_accessible_delete_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -278,7 +278,7 @@ paste_received_cb (GObject *clipboard, static void gtk_password_entry_accessible_paste_text (AtkEditableText *text, - gint position) + int position) { GtkWidget *widget; GtkEditable *editable; @@ -316,7 +316,7 @@ atk_editable_text_interface_init (AtkEditableTextIface *iface) static gboolean gtk_password_entry_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -346,7 +346,7 @@ gtk_password_entry_accessible_do_action (AtkAction *action, return FALSE; } -static gint +static int gtk_password_entry_accessible_get_n_actions (AtkAction *action) { GtkAccessible *accessible = GTK_ACCESSIBLE (action); @@ -364,7 +364,7 @@ gtk_password_entry_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_password_entry_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { GtkWidget *widget; GtkWidget *label; @@ -409,7 +409,7 @@ gtk_password_entry_accessible_get_keybinding (AtkAction *action, static const gchar * gtk_password_entry_accessible_action_get_name (AtkAction *action, - gint i) + int i) { switch (i) { @@ -428,7 +428,7 @@ gtk_password_entry_accessible_action_get_name (AtkAction *action, static const gchar* gtk_password_entry_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Activate"); @@ -440,7 +440,7 @@ gtk_password_entry_accessible_action_get_localized_name (AtkAction *action, static const gchar * gtk_password_entry_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Activates the entry"); @@ -494,7 +494,7 @@ check_for_selection_change (GtkPasswordEntryAccessible *self, GtkEditable *editable) { gboolean ret_val = FALSE; - gint start, end; + int start, end; if (gtk_editable_get_selection_bounds (editable, &start, &end)) { @@ -552,8 +552,8 @@ on_selection_bound_changed (GObject *gobject, static void insert_text_cb (GtkEditable *editable, gchar *new_text, - gint new_text_length, - gint *position, + int new_text_length, + int *position, GtkPasswordEntryAccessible *self) { int length; @@ -571,8 +571,8 @@ insert_text_cb (GtkEditable *editable, static void delete_text_cb (GtkEditable *editable, - gint start, - gint end, + int start, + int end, GtkPasswordEntryAccessible *self) { GtkText *text; diff --git a/gtk/a11y/gtkpictureaccessible.c b/gtk/a11y/gtkpictureaccessible.c index 9f49eaf855..ce8b449557 100644 --- a/gtk/a11y/gtkpictureaccessible.c +++ b/gtk/a11y/gtkpictureaccessible.c @@ -47,8 +47,8 @@ gtk_picture_accessible_get_image_description (AtkImage *image) static void gtk_picture_accessible_get_image_position (AtkImage *image, - gint *x, - gint *y, + int *x, + int *y, AtkCoordType coord_type) { atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL, @@ -57,8 +57,8 @@ gtk_picture_accessible_get_image_position (AtkImage *image, static void gtk_picture_accessible_get_image_size (AtkImage *image, - gint *width, - gint *height) + int *width, + int *height) { GtkWidget* widget; GdkPaintable *paintable; diff --git a/gtk/a11y/gtkradiobuttonaccessible.c b/gtk/a11y/gtkradiobuttonaccessible.c index df5392bb36..4670d14f7a 100644 --- a/gtk/a11y/gtkradiobuttonaccessible.c +++ b/gtk/a11y/gtkradiobuttonaccessible.c @@ -75,7 +75,7 @@ gtk_radio_button_accessible_ref_relation_set (AtkObject *obj) AtkObject **accessible_array; guint list_length; AtkRelation* relation; - gint i = 0; + int i = 0; list_length = g_slist_length (list); accessible_array = g_new (AtkObject *, list_length); diff --git a/gtk/a11y/gtkscalebuttonaccessible.c b/gtk/a11y/gtkscalebuttonaccessible.c index caf8fff4af..33e01b2150 100644 --- a/gtk/a11y/gtkscalebuttonaccessible.c +++ b/gtk/a11y/gtkscalebuttonaccessible.c @@ -128,7 +128,7 @@ gtk_scale_button_accessible_init (GtkScaleButtonAccessible *self) static gboolean gtk_scale_button_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -152,7 +152,7 @@ gtk_scale_button_accessible_do_action (AtkAction *action, } } -static gint +static int gtk_scale_button_accessible_get_n_actions (AtkAction *action) { return 2; @@ -160,7 +160,7 @@ gtk_scale_button_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_scale_button_accessible_get_description (AtkAction *action, - gint i) + int i) { switch (i) { @@ -175,7 +175,7 @@ gtk_scale_button_accessible_get_description (AtkAction *action, static const gchar * gtk_scale_button_accessible_action_get_name (AtkAction *action, - gint i) + int i) { switch (i) { @@ -190,7 +190,7 @@ gtk_scale_button_accessible_action_get_name (AtkAction *action, static const gchar * gtk_scale_button_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { switch (i) { diff --git a/gtk/a11y/gtkscrolledwindowaccessible.c b/gtk/a11y/gtkscrolledwindowaccessible.c index fc2822686e..9856f858b2 100644 --- a/gtk/a11y/gtkscrolledwindowaccessible.c +++ b/gtk/a11y/gtkscrolledwindowaccessible.c @@ -30,8 +30,8 @@ visibility_changed (GObject *object, { if (!g_strcmp0 (pspec->name, "visible")) { - gint index; - gint n_children; + int index; + int n_children; gboolean child_added = FALSE; AtkObject *child; GtkWidget *widget; @@ -104,7 +104,7 @@ gtk_scrolled_window_accessible_get_n_children (AtkObject *object) { GtkWidget *widget; GtkScrolledWindow *scrolled_window; - gint n_children; + int n_children; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (object)); if (widget == NULL) @@ -125,7 +125,7 @@ gtk_scrolled_window_accessible_get_n_children (AtkObject *object) static AtkObject * gtk_scrolled_window_accessible_ref_child (AtkObject *obj, - gint child) + int child) { GtkWidget *widget; GtkScrolledWindow *scrolled_window; diff --git a/gtk/a11y/gtksearchentryaccessible.c b/gtk/a11y/gtksearchentryaccessible.c index eab4012e53..47b23e1167 100644 --- a/gtk/a11y/gtksearchentryaccessible.c +++ b/gtk/a11y/gtksearchentryaccessible.c @@ -65,7 +65,7 @@ check_for_selection_change (GtkSearchEntryAccessible *self, GtkEditable *editable) { gboolean ret_val = FALSE; - gint start, end; + int start, end; if (gtk_editable_get_selection_bounds (editable, &start, &end)) { @@ -95,8 +95,8 @@ check_for_selection_change (GtkSearchEntryAccessible *self, static void insert_text_cb (GtkEditable *editable, gchar *new_text, - gint new_text_length, - gint *position, + int new_text_length, + int *position, GtkSearchEntryAccessible *self) { int length; @@ -114,8 +114,8 @@ insert_text_cb (GtkEditable *editable, static void delete_text_cb (GtkEditable *editable, - gint start, - gint end, + int start, + int end, GtkSearchEntryAccessible *self) { GtkText *text; @@ -280,8 +280,8 @@ gtk_search_entry_accessible_init (GtkSearchEntryAccessible *self) static gchar * gtk_search_entry_accessible_get_text (AtkText *atk_text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -293,10 +293,10 @@ gtk_search_entry_accessible_get_text (AtkText *atk_text, static gchar * gtk_search_entry_accessible_get_text_before_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -310,10 +310,10 @@ gtk_search_entry_accessible_get_text_before_offset (AtkText *atk_text, static gchar * gtk_search_entry_accessible_get_text_at_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -327,10 +327,10 @@ gtk_search_entry_accessible_get_text_at_offset (AtkText *atk_text, static gchar * gtk_search_entry_accessible_get_text_after_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -342,7 +342,7 @@ gtk_search_entry_accessible_get_text_after_offset (AtkText *atk_text, start_offset, end_offset); } -static gint +static int gtk_search_entry_accessible_get_character_count (AtkText *atk_text) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -361,7 +361,7 @@ gtk_search_entry_accessible_get_character_count (AtkText *atk_text) return char_count; } -static gint +static int gtk_search_entry_accessible_get_caret_offset (AtkText *atk_text) { GtkWidget *widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (atk_text)); @@ -379,7 +379,7 @@ gtk_search_entry_accessible_get_caret_offset (AtkText *atk_text) static gboolean gtk_search_entry_accessible_set_caret_offset (AtkText *atk_text, - gint offset) + int offset) { GtkWidget *widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (atk_text)); if (widget == NULL) @@ -393,7 +393,7 @@ gtk_search_entry_accessible_set_caret_offset (AtkText *atk_text, static AtkAttributeSet * add_text_attribute (AtkAttributeSet *attributes, AtkTextAttribute attr, - gint i) + int i) { AtkAttribute *at; @@ -406,9 +406,9 @@ add_text_attribute (AtkAttributeSet *attributes, static AtkAttributeSet * gtk_search_entry_accessible_get_run_attributes (AtkText *atk_text, - gint offset, - gint *start_offset, - gint *end_offset) + int offset, + int *start_offset, + int *end_offset) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -448,11 +448,11 @@ gtk_search_entry_accessible_get_default_attributes (AtkText *atk_text) static void gtk_search_entry_accessible_get_character_extents (AtkText *atk_text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -480,10 +480,10 @@ gtk_search_entry_accessible_get_character_extents (AtkText *atk_text, *height = char_rect.height; } -static gint +static int gtk_search_entry_accessible_get_offset_at_point (AtkText *atk_text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text)); @@ -521,11 +521,11 @@ gtk_search_entry_accessible_get_offset_at_point (AtkText *atk_text, return offset; } -static gint +static int gtk_search_entry_accessible_get_n_selections (AtkText *text) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -539,9 +539,9 @@ gtk_search_entry_accessible_get_n_selections (AtkText *text) static gchar * gtk_search_entry_accessible_get_selection (AtkText *text, - gint selection_num, - gint *start_pos, - gint *end_pos) + int selection_num, + int *start_pos, + int *end_pos) { GtkEditable *editable; GtkWidget *widget; @@ -570,8 +570,8 @@ gtk_search_entry_accessible_get_selection (AtkText *text, static gboolean gtk_search_entry_accessible_add_selection (AtkText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkEntry *entry; GtkWidget *widget; @@ -594,10 +594,10 @@ gtk_search_entry_accessible_add_selection (AtkText *text, static gboolean gtk_search_entry_accessible_remove_selection (AtkText *text, - gint selection_num) + int selection_num) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -617,12 +617,12 @@ gtk_search_entry_accessible_remove_selection (AtkText *text, static gboolean gtk_search_entry_accessible_set_selection (AtkText *text, - gint selection_num, - gint start_pos, - gint end_pos) + int selection_num, + int start_pos, + int end_pos) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -642,7 +642,7 @@ gtk_search_entry_accessible_set_selection (AtkText *text, static gunichar gtk_search_entry_accessible_get_character_at_offset (AtkText *atk_text, - gint offset) + int offset) { GtkText *text; char *contents; @@ -710,8 +710,8 @@ gtk_search_entry_accessible_set_text_contents (AtkEditableText *text, static void gtk_search_entry_accessible_insert_text (AtkEditableText *text, const gchar *string, - gint length, - gint *position) + int length, + int *position) { GtkWidget *widget; GtkEditable *editable; @@ -737,8 +737,8 @@ gtk_search_entry_accessible_insert_text (AtkEditableText *text, static void gtk_search_entry_accessible_copy_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -758,8 +758,8 @@ gtk_search_entry_accessible_copy_text (AtkEditableText *text, static void gtk_search_entry_accessible_cut_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -782,8 +782,8 @@ gtk_search_entry_accessible_cut_text (AtkEditableText *text, static void gtk_search_entry_accessible_delete_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -826,7 +826,7 @@ paste_received_cb (GObject *clipboard, static void gtk_search_entry_accessible_paste_text (AtkEditableText *text, - gint position) + int position) { GtkWidget *widget; GtkEditable *editable; @@ -864,7 +864,7 @@ atk_editable_text_interface_init (AtkEditableTextIface *iface) static gboolean gtk_search_entry_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -890,7 +890,7 @@ gtk_search_entry_accessible_do_action (AtkAction *action, return FALSE; } -static gint +static int gtk_search_entry_accessible_get_n_actions (AtkAction *action) { GtkAccessible *accessible = GTK_ACCESSIBLE (action); @@ -911,7 +911,7 @@ gtk_search_entry_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_search_entry_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { GtkWidget *widget; GtkWidget *label; @@ -956,7 +956,7 @@ gtk_search_entry_accessible_get_keybinding (AtkAction *action, static const gchar * gtk_search_entry_accessible_action_get_name (AtkAction *action, - gint i) + int i) { switch (i) { @@ -975,7 +975,7 @@ gtk_search_entry_accessible_action_get_name (AtkAction *action, static const gchar* gtk_search_entry_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Activate"); @@ -987,7 +987,7 @@ gtk_search_entry_accessible_action_get_localized_name (AtkAction *action, static const gchar * gtk_search_entry_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Activates the entry"); diff --git a/gtk/a11y/gtkspinneraccessible.c b/gtk/a11y/gtkspinneraccessible.c index 16b02e2d4f..cb055db7ad 100644 --- a/gtk/a11y/gtkspinneraccessible.c +++ b/gtk/a11y/gtkspinneraccessible.c @@ -56,8 +56,8 @@ gtk_spinner_accessible_init (GtkSpinnerAccessible *self) static void gtk_spinner_accessible_image_get_size (AtkImage *image, - gint *width, - gint *height) + int *width, + int *height) { GtkWidget *widget; diff --git a/gtk/a11y/gtkstatusbaraccessible.c b/gtk/a11y/gtkstatusbaraccessible.c index b4d2f38505..95e2f02c98 100644 --- a/gtk/a11y/gtkstatusbaraccessible.c +++ b/gtk/a11y/gtkstatusbaraccessible.c @@ -69,7 +69,7 @@ gtk_statusbar_accessible_get_name (AtkObject *obj) return gtk_statusbar_get_message (GTK_STATUSBAR (widget)); } -static gint +static int gtk_statusbar_accessible_get_n_children (AtkObject *obj) { return 0; @@ -77,7 +77,7 @@ gtk_statusbar_accessible_get_n_children (AtkObject *obj) static AtkObject* gtk_statusbar_accessible_ref_child (AtkObject *obj, - gint i) + int i) { return NULL; } diff --git a/gtk/a11y/gtkswitchaccessible.c b/gtk/a11y/gtkswitchaccessible.c index 669ba1f3ca..985321499f 100644 --- a/gtk/a11y/gtkswitchaccessible.c +++ b/gtk/a11y/gtkswitchaccessible.c @@ -66,7 +66,7 @@ gtk_switch_accessible_init (GtkSwitchAccessible *self) { } -static gint +static int gtk_switch_action_get_n_actions (AtkAction *action) { return 1; @@ -74,7 +74,7 @@ gtk_switch_action_get_n_actions (AtkAction *action) static const gchar * gtk_switch_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "toggle"; @@ -83,7 +83,7 @@ gtk_switch_action_get_name (AtkAction *action, static const gchar * gtk_switch_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Toggle"); @@ -92,7 +92,7 @@ gtk_switch_action_get_localized_name (AtkAction *action, static const gchar * gtk_switch_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Toggles the switch"); @@ -101,7 +101,7 @@ gtk_switch_action_get_description (AtkAction *action, static gboolean gtk_switch_action_do_action (AtkAction *action, - gint i) + int i) { GtkSwitch *sw; GtkWidget *widget; diff --git a/gtk/a11y/gtktextaccessible.c b/gtk/a11y/gtktextaccessible.c index 7a3b396b1a..d71a7869b6 100644 --- a/gtk/a11y/gtktextaccessible.c +++ b/gtk/a11y/gtktextaccessible.c @@ -31,19 +31,19 @@ struct _GtkTextAccessiblePrivate { - gint cursor_position; - gint selection_bound; + int cursor_position; + int selection_bound; }; /* Callbacks */ static void insert_text_cb (GtkEditable *editable, gchar *new_text, - gint new_text_length, - gint *position); + int new_text_length, + int *position); static void delete_text_cb (GtkEditable *editable, - gint start, - gint end); + int start, + int end); static gboolean check_for_selection_change (GtkTextAccessible *entry, GtkText *gtk_text); @@ -171,7 +171,7 @@ gtk_text_accessible_initialize (AtkObject *obj, { GtkText *entry; GtkTextAccessible *gtk_text_accessible; - gint start_pos, end_pos; + int start_pos, end_pos; ATK_OBJECT_CLASS (gtk_text_accessible_parent_class)->initialize (obj, data); @@ -197,7 +197,7 @@ gtk_text_accessible_initialize (AtkObject *obj, obj->role = ATK_ROLE_PASSWORD_TEXT; } -static gint +static int gtk_text_accessible_get_index_in_parent (AtkObject *accessible) { /* If the parent widget is a combo box then the index is 1 @@ -231,8 +231,8 @@ gtk_text_accessible_init (GtkTextAccessible *entry) static gchar * gtk_text_accessible_get_text (AtkText *atk_text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; @@ -245,10 +245,10 @@ gtk_text_accessible_get_text (AtkText *atk_text, static gchar * gtk_text_accessible_get_text_before_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; @@ -263,10 +263,10 @@ gtk_text_accessible_get_text_before_offset (AtkText *text, static gchar * gtk_text_accessible_get_text_at_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; @@ -281,10 +281,10 @@ gtk_text_accessible_get_text_at_offset (AtkText *text, static gchar * gtk_text_accessible_get_text_after_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; @@ -297,7 +297,7 @@ gtk_text_accessible_get_text_after_offset (AtkText *text, start_offset, end_offset); } -static gint +static int gtk_text_accessible_get_character_count (AtkText *atk_text) { GtkWidget *widget; @@ -320,7 +320,7 @@ gtk_text_accessible_get_character_count (AtkText *atk_text) return char_count; } -static gint +static int gtk_text_accessible_get_caret_offset (AtkText *text) { GtkWidget *widget; @@ -340,7 +340,7 @@ gtk_text_accessible_get_caret_offset (AtkText *text) static gboolean gtk_text_accessible_set_caret_offset (AtkText *text, - gint offset) + int offset) { GtkWidget *widget; @@ -356,7 +356,7 @@ gtk_text_accessible_set_caret_offset (AtkText *text, static AtkAttributeSet * add_text_attribute (AtkAttributeSet *attributes, AtkTextAttribute attr, - gint i) + int i) { AtkAttribute *at; @@ -369,9 +369,9 @@ add_text_attribute (AtkAttributeSet *attributes, static AtkAttributeSet * gtk_text_accessible_get_run_attributes (AtkText *text, - gint offset, - gint *start_offset, - gint *end_offset) + int offset, + int *start_offset, + int *end_offset) { GtkWidget *widget; AtkAttributeSet *attributes; @@ -415,18 +415,18 @@ gtk_text_accessible_get_default_attributes (AtkText *text) static void gtk_text_accessible_get_character_extents (AtkText *text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords) { GtkWidget *widget; GtkText *entry; PangoRectangle char_rect; gchar *entry_text; - gint index, x_layout, y_layout; + int index, x_layout, y_layout; GtkAllocation allocation; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); @@ -451,17 +451,17 @@ gtk_text_accessible_get_character_extents (AtkText *text, *height = char_rect.height; } -static gint +static int gtk_text_accessible_get_offset_at_point (AtkText *atk_text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { GtkWidget *widget; GtkText *entry; gchar *text; - gint index, x_layout, y_layout; - gint x_local, y_local; + int index, x_layout, y_layout; + int x_local, y_local; glong offset; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (atk_text)); @@ -497,11 +497,11 @@ gtk_text_accessible_get_offset_at_point (AtkText *atk_text, return offset; } -static gint +static int gtk_text_accessible_get_n_selections (AtkText *text) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -515,9 +515,9 @@ gtk_text_accessible_get_n_selections (AtkText *text) static gchar * gtk_text_accessible_get_selection (AtkText *text, - gint selection_num, - gint *start_pos, - gint *end_pos) + int selection_num, + int *start_pos, + int *end_pos) { GtkWidget *widget; @@ -536,12 +536,12 @@ gtk_text_accessible_get_selection (AtkText *text, static gboolean gtk_text_accessible_add_selection (AtkText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkText *entry; GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -560,10 +560,10 @@ gtk_text_accessible_add_selection (AtkText *text, static gboolean gtk_text_accessible_remove_selection (AtkText *text, - gint selection_num) + int selection_num) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -583,12 +583,12 @@ gtk_text_accessible_remove_selection (AtkText *text, static gboolean gtk_text_accessible_set_selection (AtkText *text, - gint selection_num, - gint start_pos, - gint end_pos) + int selection_num, + int start_pos, + int end_pos) { GtkWidget *widget; - gint start, end; + int start, end; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); if (widget == NULL) @@ -608,7 +608,7 @@ gtk_text_accessible_set_selection (AtkText *text, static gunichar gtk_text_accessible_get_character_at_offset (AtkText *atk_text, - gint offset) + int offset) { GtkWidget *widget; gchar *text; @@ -676,8 +676,8 @@ gtk_text_accessible_set_text_contents (AtkEditableText *text, static void gtk_text_accessible_insert_text (AtkEditableText *text, const gchar *string, - gint length, - gint *position) + int length, + int *position) { GtkWidget *widget; GtkEditable *editable; @@ -696,8 +696,8 @@ gtk_text_accessible_insert_text (AtkEditableText *text, static void gtk_text_accessible_copy_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -717,8 +717,8 @@ gtk_text_accessible_copy_text (AtkEditableText *text, static void gtk_text_accessible_cut_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -741,8 +741,8 @@ gtk_text_accessible_cut_text (AtkEditableText *text, static void gtk_text_accessible_delete_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkEditable *editable; @@ -761,7 +761,7 @@ gtk_text_accessible_delete_text (AtkEditableText *text, typedef struct { GtkText* entry; - gint position; + int position; } PasteData; static void @@ -784,7 +784,7 @@ paste_received_cb (GObject *clipboard, static void gtk_text_accessible_paste_text (AtkEditableText *text, - gint position) + int position) { GtkWidget *widget; GtkEditable *editable; @@ -823,11 +823,11 @@ atk_editable_text_interface_init (AtkEditableTextIface *iface) static void insert_text_cb (GtkEditable *editable, gchar *new_text, - gint new_text_length, - gint *position) + int new_text_length, + int *position) { GtkTextAccessible *accessible; - gint length; + int length; if (new_text_length == 0) return; @@ -848,8 +848,8 @@ insert_text_cb (GtkEditable *editable, */ static void delete_text_cb (GtkEditable *editable, - gint start, - gint end) + int start, + int end) { GtkTextAccessible *accessible; @@ -878,7 +878,7 @@ check_for_selection_change (GtkTextAccessible *accessible, GtkText *entry) { gboolean ret_val = FALSE; - gint start, end; + int start, end; if (gtk_editable_get_selection_bounds (GTK_EDITABLE (entry), &start, &end)) { @@ -907,7 +907,7 @@ check_for_selection_change (GtkTextAccessible *accessible, static gboolean gtk_text_accessible_do_action (AtkAction *action, - gint i) + int i) { GtkWidget *widget; @@ -926,7 +926,7 @@ gtk_text_accessible_do_action (AtkAction *action, return TRUE; } -static gint +static int gtk_text_accessible_get_n_actions (AtkAction *action) { return 1; @@ -934,7 +934,7 @@ gtk_text_accessible_get_n_actions (AtkAction *action) static const gchar * gtk_text_accessible_get_keybinding (AtkAction *action, - gint i) + int i) { GtkWidget *widget; GtkWidget *label; @@ -979,7 +979,7 @@ gtk_text_accessible_get_keybinding (AtkAction *action, static const gchar* gtk_text_accessible_action_get_name (AtkAction *action, - gint i) + int i) { if (i == 0) return "activate"; @@ -988,7 +988,7 @@ gtk_text_accessible_action_get_name (AtkAction *action, static const gchar* gtk_text_accessible_action_get_localized_name (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action name", "Activate"); @@ -997,7 +997,7 @@ gtk_text_accessible_action_get_localized_name (AtkAction *action, static const gchar* gtk_text_accessible_action_get_description (AtkAction *action, - gint i) + int i) { if (i == 0) return C_("Action description", "Activates the entry"); diff --git a/gtk/a11y/gtktextcellaccessible.c b/gtk/a11y/gtktextcellaccessible.c index ea638743fc..9df1f41a20 100644 --- a/gtk/a11y/gtktextcellaccessible.c +++ b/gtk/a11y/gtktextcellaccessible.c @@ -27,8 +27,8 @@ struct _GtkTextCellAccessiblePrivate { gchar *cell_text; - gint caret_pos; - gint cell_length; + int caret_pos; + int cell_length; PangoLayout *layout; }; @@ -38,45 +38,45 @@ static const gchar* gtk_text_cell_accessible_get_name (AtkObject *atk_ob /* atktext.h */ static gchar* gtk_text_cell_accessible_get_text (AtkText *text, - gint start_pos, - gint end_pos); + int start_pos, + int end_pos); static gunichar gtk_text_cell_accessible_get_character_at_offset (AtkText *text, - gint offset); + int offset); static gchar* gtk_text_cell_accessible_get_text_before_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset); + int *start_offset, + int *end_offset); static gchar* gtk_text_cell_accessible_get_text_at_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset); + int *start_offset, + int *end_offset); static gchar* gtk_text_cell_accessible_get_text_after_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset); -static gint gtk_text_cell_accessible_get_character_count (AtkText *text); -static gint gtk_text_cell_accessible_get_caret_offset (AtkText *text); + int *start_offset, + int *end_offset); +static int gtk_text_cell_accessible_get_character_count (AtkText *text); +static int gtk_text_cell_accessible_get_caret_offset (AtkText *text); static gboolean gtk_text_cell_accessible_set_caret_offset (AtkText *text, - gint offset); + int offset); static void gtk_text_cell_accessible_get_character_extents (AtkText *text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords); -static gint gtk_text_cell_accessible_get_offset_at_point (AtkText *text, - gint x, - gint y, +static int gtk_text_cell_accessible_get_offset_at_point (AtkText *text, + int x, + int y, AtkCoordType coords); static AtkAttributeSet* gtk_text_cell_accessible_get_run_attributes (AtkText *text, - gint offset, - gint *start_offset, - gint *end_offset); + int offset, + int *start_offset, + int *end_offset); static AtkAttributeSet* gtk_text_cell_accessible_get_default_attributes (AtkText *text); @@ -138,7 +138,7 @@ gtk_text_cell_accessible_update_cache (GtkCellAccessible *cell, { GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (cell); AtkObject *obj = ATK_OBJECT (cell); - gint text_length; + int text_length; gchar *text; GtkCellRenderer *renderer; @@ -203,8 +203,8 @@ gtk_text_cell_accessible_init (GtkTextCellAccessible *text_cell) static gchar * gtk_text_cell_accessible_get_text (AtkText *atk_text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { gchar *text; @@ -217,10 +217,10 @@ gtk_text_cell_accessible_get_text (AtkText *atk_text, static gchar * gtk_text_cell_accessible_get_text_before_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (atk_text); gchar *text; @@ -232,10 +232,10 @@ gtk_text_cell_accessible_get_text_before_offset (AtkText *atk_text, static gchar * gtk_text_cell_accessible_get_text_at_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (atk_text); gchar *text; @@ -247,10 +247,10 @@ gtk_text_cell_accessible_get_text_at_offset (AtkText *atk_text, static gchar * gtk_text_cell_accessible_get_text_after_offset (AtkText *atk_text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (atk_text); gchar *text; @@ -260,7 +260,7 @@ gtk_text_cell_accessible_get_text_after_offset (AtkText *atk_text, return text; } -static gint +static int gtk_text_cell_accessible_get_character_count (AtkText *text) { if (GTK_TEXT_CELL_ACCESSIBLE (text)->priv->cell_text != NULL) @@ -269,7 +269,7 @@ gtk_text_cell_accessible_get_character_count (AtkText *text) return 0; } -static gint +static int gtk_text_cell_accessible_get_caret_offset (AtkText *text) { return GTK_TEXT_CELL_ACCESSIBLE (text)->priv->caret_pos; @@ -277,7 +277,7 @@ gtk_text_cell_accessible_get_caret_offset (AtkText *text) static gboolean gtk_text_cell_accessible_set_caret_offset (AtkText *text, - gint offset) + int offset) { GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (text); @@ -303,9 +303,9 @@ gtk_text_cell_accessible_set_caret_offset (AtkText *text, static AtkAttributeSet * gtk_text_cell_accessible_get_run_attributes (AtkText *text, - gint offset, - gint *start_offset, - gint *end_offset) + int offset, + int *start_offset, + int *end_offset) { AtkAttributeSet *attrib_set = NULL; GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (text); @@ -378,7 +378,7 @@ create_pango_layout (GtkTextCellAccessible *text) gboolean scale_set, underline_set, rise_set; gchar *renderer_text; gdouble scale; - gint rise; + int rise; GtkRendererCellAccessible *gail_renderer; GtkCellRendererText *gtk_renderer; @@ -479,11 +479,11 @@ add_attr (PangoAttrList *attr_list, static void gtk_text_cell_accessible_get_character_extents (AtkText *text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords) { GtkRendererCellAccessible *gail_renderer; @@ -496,8 +496,8 @@ gtk_text_cell_accessible_get_character_extents (AtkText *text, GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (text); gchar *renderer_text; gfloat xalign, yalign; - gint x_offset, y_offset, index; - gint xpad, ypad; + int x_offset, y_offset, index; + int xpad, ypad; if (!GTK_TEXT_CELL_ACCESSIBLE (text)->priv->cell_text) { @@ -559,10 +559,10 @@ gtk_text_cell_accessible_get_character_extents (AtkText *text, g_object_unref (gtk_renderer); } -static gint +static int gtk_text_cell_accessible_get_offset_at_point (AtkText *text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { AtkObject *parent; @@ -574,9 +574,9 @@ gtk_text_cell_accessible_get_offset_at_point (AtkText *text, GtkTextCellAccessible *text_cell = GTK_TEXT_CELL_ACCESSIBLE (text); gchar *renderer_text; gfloat xalign, yalign; - gint x_offset, y_offset, index; - gint xpad, ypad; - gint x_temp, y_temp; + int x_offset, y_offset, index; + int xpad, ypad; + int x_temp, y_temp; gboolean ret; if (!GTK_TEXT_CELL_ACCESSIBLE (text)->priv->cell_text) @@ -665,7 +665,7 @@ gtk_text_cell_accessible_get_offset_at_point (AtkText *text, static gunichar gtk_text_cell_accessible_get_character_at_offset (AtkText *text, - gint offset) + int offset) { gchar *index; gchar *string; diff --git a/gtk/a11y/gtktextviewaccessible.c b/gtk/a11y/gtktextviewaccessible.c index 9962c23607..a937d88ab5 100644 --- a/gtk/a11y/gtktextviewaccessible.c +++ b/gtk/a11y/gtktextviewaccessible.c @@ -35,14 +35,14 @@ struct _GtkTextViewAccessiblePrivate { - gint insert_offset; - gint selection_bound; + int insert_offset; + int selection_bound; }; static void insert_text_cb (GtkTextBuffer *buffer, GtkTextIter *arg1, gchar *arg2, - gint arg3, + int arg3, gpointer user_data); static void delete_range_cb (GtkTextBuffer *buffer, GtkTextIter *arg1, @@ -180,8 +180,8 @@ gtk_text_view_accessible_init (GtkTextViewAccessible *accessible) static gchar * gtk_text_view_accessible_get_text (AtkText *text, - gint start_offset, - gint end_offset) + int start_offset, + int end_offset) { GtkTextView *view; GtkTextBuffer *buffer; @@ -202,10 +202,10 @@ gtk_text_view_accessible_get_text (AtkText *text, static gchar * gtk_text_view_accessible_get_text_after_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; GtkTextView *view; @@ -245,10 +245,10 @@ gtk_text_view_accessible_get_text_after_offset (AtkText *text, static gchar * gtk_text_view_accessible_get_text_at_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; GtkTextView *view; @@ -290,10 +290,10 @@ gtk_text_view_accessible_get_text_at_offset (AtkText *text, static gchar * gtk_text_view_accessible_get_text_before_offset (AtkText *text, - gint offset, + int offset, AtkTextBoundary boundary_type, - gint *start_offset, - gint *end_offset) + int *start_offset, + int *end_offset) { GtkWidget *widget; GtkTextView *view; @@ -347,7 +347,7 @@ gtk_text_view_accessible_get_text_before_offset (AtkText *text, static gunichar gtk_text_view_accessible_get_character_at_offset (AtkText *text, - gint offset) + int offset) { GtkWidget *widget; GtkTextIter start, end; @@ -373,7 +373,7 @@ gtk_text_view_accessible_get_character_at_offset (AtkText *text, return unichar; } -static gint +static int gtk_text_view_accessible_get_character_count (AtkText *text) { GtkWidget *widget; @@ -387,7 +387,7 @@ gtk_text_view_accessible_get_character_count (AtkText *text) return gtk_text_buffer_get_char_count (buffer); } -static gint +static int get_insert_offset (GtkTextBuffer *buffer) { GtkTextMark *insert; @@ -398,7 +398,7 @@ get_insert_offset (GtkTextBuffer *buffer) return gtk_text_iter_get_offset (&iter); } -static gint +static int gtk_text_view_accessible_get_caret_offset (AtkText *text) { GtkWidget *widget; @@ -414,7 +414,7 @@ gtk_text_view_accessible_get_caret_offset (AtkText *text) static gboolean gtk_text_view_accessible_set_caret_offset (AtkText *text, - gint offset) + int offset) { GtkTextView *view; GtkWidget *widget; @@ -435,15 +435,15 @@ gtk_text_view_accessible_set_caret_offset (AtkText *text, return TRUE; } -static gint +static int gtk_text_view_accessible_get_offset_at_point (AtkText *text, - gint x, - gint y, + int x, + int y, AtkCoordType coords) { GtkTextView *view; GtkTextIter iter; - gint buff_x, buff_y; + int buff_x, buff_y; GtkWidget *widget; GdkRectangle rect; @@ -477,11 +477,11 @@ gtk_text_view_accessible_get_offset_at_point (AtkText *text, static void gtk_text_view_accessible_get_character_extents (AtkText *text, - gint offset, - gint *x, - gint *y, - gint *width, - gint *height, + int offset, + int *x, + int *y, + int *width, + int *height, AtkCoordType coords) { GtkTextView *view; @@ -535,7 +535,7 @@ add_text_attribute (AtkAttributeSet *attributes, static AtkAttributeSet * add_text_int_attribute (AtkAttributeSet *attributes, AtkTextAttribute attr, - gint i) + int i) { gchar *value; @@ -547,9 +547,9 @@ add_text_int_attribute (AtkAttributeSet *attributes, static AtkAttributeSet * gtk_text_view_accessible_get_run_attributes (AtkText *text, - gint offset, - gint *start_offset, - gint *end_offset) + int offset, + int *start_offset, + int *end_offset) { GtkTextView *view; GtkTextBuffer *buffer; @@ -766,7 +766,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, if (val_set) { - gint weight; + int weight; gchar *value; g_object_get (tag, "weight", &weight, NULL); value = g_strdup_printf ("%d", weight); @@ -811,7 +811,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "size-set", &val_set, NULL); if (val_set) { - gint size; + int size; gchar *value; g_object_get (tag, "size", &size, NULL); value = g_strdup_printf ("%i", size); @@ -861,7 +861,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "rise-set", &val_set, NULL); if (val_set) { - gint rise; + int rise; gchar *value; g_object_get (tag, "rise", &rise, NULL); value = g_strdup_printf ("%i", rise); @@ -895,7 +895,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "pixels-inside-wrap-set", &val_set, NULL); if (val_set) { - gint pixels; + int pixels; gchar *value; g_object_get (tag, "pixels-inside-wrap", &pixels, NULL); value = g_strdup_printf ("%i", pixels); @@ -913,7 +913,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "pixels-below-lines-set", &val_set, NULL); if (val_set) { - gint pixels; + int pixels; gchar *value; g_object_get (tag, "pixels-below-lines", &pixels, NULL); value = g_strdup_printf ("%i", pixels); @@ -931,7 +931,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "pixels-above-lines-set", &val_set, NULL); if (val_set) { - gint pixels; + int pixels; gchar *value; g_object_get (tag, "pixels-above-lines", &pixels, NULL); value = g_strdup_printf ("%i", pixels); @@ -981,7 +981,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "indent-set", &val_set, NULL); if (val_set) { - gint indent; + int indent; gchar *value; g_object_get (tag, "indent", &indent, NULL); value = g_strdup_printf ("%i", indent); @@ -999,7 +999,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "right-margin-set", &val_set, NULL); if (val_set) { - gint margin; + int margin; gchar *value; g_object_get (tag, "right-margin", &margin, NULL); value = g_strdup_printf ("%i", margin); @@ -1017,7 +1017,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text, g_object_get (tag, "left-margin-set", &val_set, NULL); if (val_set) { - gint margin; + int margin; gchar *value; g_object_get (tag, "left-margin", &margin, NULL); value = g_strdup_printf ("%i", margin); @@ -1128,7 +1128,7 @@ gtk_text_view_accessible_get_default_attributes (AtkText *text) return attributes; } -static gint +static int gtk_text_view_accessible_get_n_selections (AtkText *text) { GtkWidget *widget; @@ -1147,9 +1147,9 @@ gtk_text_view_accessible_get_n_selections (AtkText *text) static gchar * gtk_text_view_accessible_get_selection (AtkText *atk_text, - gint selection_num, - gint *start_pos, - gint *end_pos) + int selection_num, + int *start_pos, + int *end_pos) { GtkTextView *view; GtkWidget *widget; @@ -1180,8 +1180,8 @@ gtk_text_view_accessible_get_selection (AtkText *atk_text, static gboolean gtk_text_view_accessible_add_selection (AtkText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkTextBuffer *buffer; @@ -1207,7 +1207,7 @@ gtk_text_view_accessible_add_selection (AtkText *text, static gboolean gtk_text_view_accessible_remove_selection (AtkText *text, - gint selection_num) + int selection_num) { GtkWidget *widget; GtkTextBuffer *buffer; @@ -1237,9 +1237,9 @@ gtk_text_view_accessible_remove_selection (AtkText *text, static gboolean gtk_text_view_accessible_set_selection (AtkText *text, - gint selection_num, - gint start_pos, - gint end_pos) + int selection_num, + int start_pos, + int end_pos) { GtkWidget *widget; GtkTextBuffer *buffer; @@ -1293,8 +1293,8 @@ atk_text_interface_init (AtkTextIface *iface) static gboolean gtk_text_view_accessible_set_run_attributes (AtkEditableText *text, AtkAttributeSet *attributes, - gint start_offset, - gint end_offset) + int start_offset, + int end_offset) { GtkTextView *view; GtkTextBuffer *buffer; @@ -1302,7 +1302,7 @@ gtk_text_view_accessible_set_run_attributes (AtkEditableText *text, GtkTextTag *tag; GtkTextIter start; GtkTextIter end; - gint j; + int j; GdkRGBA *color; gchar** RGB_vals; GSList *l; @@ -1533,8 +1533,8 @@ gtk_text_view_accessible_set_text_contents (AtkEditableText *text, static void gtk_text_view_accessible_insert_text (AtkEditableText *text, const gchar *string, - gint length, - gint *position) + int length, + int *position) { GtkTextView *view; GtkWidget *widget; @@ -1556,8 +1556,8 @@ gtk_text_view_accessible_insert_text (AtkEditableText *text, static void gtk_text_view_accessible_copy_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkWidget *widget; GtkTextBuffer *buffer; @@ -1581,8 +1581,8 @@ gtk_text_view_accessible_copy_text (AtkEditableText *text, static void gtk_text_view_accessible_cut_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkTextView *view; GtkWidget *widget; @@ -1610,8 +1610,8 @@ gtk_text_view_accessible_cut_text (AtkEditableText *text, static void gtk_text_view_accessible_delete_text (AtkEditableText *text, - gint start_pos, - gint end_pos) + int start_pos, + int end_pos) { GtkTextView *view; GtkWidget *widget; @@ -1636,7 +1636,7 @@ gtk_text_view_accessible_delete_text (AtkEditableText *text, typedef struct { GtkTextBuffer* buffer; - gint position; + int position; } PasteData; static void @@ -1661,7 +1661,7 @@ paste_received (GObject *clipboard, static void gtk_text_view_accessible_paste_text (AtkEditableText *text, - gint position) + int position) { GtkTextView *view; GtkWidget *widget; @@ -1733,12 +1733,12 @@ static void insert_text_cb (GtkTextBuffer *buffer, GtkTextIter *iter, gchar *text, - gint len, + int len, gpointer data) { GtkTextViewAccessible *accessible = data; - gint position; - gint length; + int position; + int length; position = gtk_text_iter_get_offset (iter); length = g_utf8_strlen (text, len); @@ -1755,7 +1755,7 @@ delete_range_cb (GtkTextBuffer *buffer, gpointer data) { GtkTextViewAccessible *accessible = data; - gint offset, length; + int offset, length; offset = gtk_text_iter_get_offset (start); length = gtk_text_iter_get_offset (end) - offset; diff --git a/gtk/a11y/gtktoplevelaccessible.c b/gtk/a11y/gtktoplevelaccessible.c index a7d07fec2f..f010bea86e 100644 --- a/gtk/a11y/gtktoplevelaccessible.c +++ b/gtk/a11y/gtktoplevelaccessible.c @@ -55,7 +55,7 @@ gtk_toplevel_accessible_object_finalize (GObject *obj) G_OBJECT_CLASS (gtk_toplevel_accessible_parent_class)->finalize (obj); } -static gint +static int gtk_toplevel_accessible_get_n_children (AtkObject *obj) { GtkToplevelAccessible *toplevel = GTK_TOPLEVEL_ACCESSIBLE (obj); @@ -65,7 +65,7 @@ gtk_toplevel_accessible_get_n_children (AtkObject *obj) static AtkObject * gtk_toplevel_accessible_ref_child (AtkObject *obj, - gint i) + int i) { GtkToplevelAccessible *toplevel; GtkWidget *widget; @@ -147,7 +147,7 @@ show_event_watcher (GSignalInvocationHint *ihint, AtkObject *atk_obj = ATK_OBJECT (toplevel); GObject *object; GtkWidget *widget; - gint n_children; + int n_children; AtkObject *child; object = g_value_get_object (param_values + 0); diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c index 3ea1daca19..8956dfa1bc 100644 --- a/gtk/a11y/gtktreeviewaccessible.c +++ b/gtk/a11y/gtktreeviewaccessible.c @@ -59,11 +59,11 @@ static void cell_info_new (GtkTreeViewAccessible GtkTreeRBNode *node, GtkTreeViewColumn *tv_col, GtkCellAccessible *cell); -static gint get_column_number (GtkTreeView *tree_view, +static int get_column_number (GtkTreeView *tree_view, GtkTreeViewColumn *column); static gboolean get_rbtree_column_from_index (GtkTreeView *tree_view, - gint index, + int index, GtkTreeRBTree **tree, GtkTreeRBNode **node, GtkTreeViewColumn **column); @@ -216,7 +216,7 @@ gtk_tree_view_accessible_widget_unset (GtkAccessible *gtkaccessible) GTK_ACCESSIBLE_CLASS (gtk_tree_view_accessible_parent_class)->widget_unset (gtkaccessible); } -static gint +static int get_n_rows (GtkTreeView *tree_view) { GtkTreeRBTree *tree; @@ -229,7 +229,7 @@ get_n_rows (GtkTreeView *tree_view) return tree->root->total_count; } -static gint +static int get_n_columns (GtkTreeView *tree_view) { guint i, visible_columns; @@ -247,7 +247,7 @@ get_n_columns (GtkTreeView *tree_view) return visible_columns; } -static gint +static int gtk_tree_view_accessible_get_n_children (AtkObject *obj) { GtkWidget *widget; @@ -421,7 +421,7 @@ create_cell (GtkTreeView *treeview, static AtkObject * gtk_tree_view_accessible_ref_child (AtkObject *obj, - gint i) + int i) { GtkWidget *widget; GtkTreeViewAccessible *accessible; @@ -502,16 +502,16 @@ gtk_tree_view_accessible_init (GtkTreeViewAccessible *view) static AtkObject * gtk_tree_view_accessible_ref_accessible_at_point (AtkComponent *component, - gint x, - gint y, + int x, + int y, AtkCoordType coord_type) { GtkWidget *widget; GtkTreeView *tree_view; GtkTreePath *path; GtkTreeViewColumn *column; - gint x_pos, y_pos; - gint bx, by; + int x_pos, y_pos; + int bx, by; GtkCellAccessible *cell; GtkTreeRBTree *tree; GtkTreeRBNode *node; @@ -550,13 +550,13 @@ atk_component_interface_init (AtkComponentIface *iface) /* atktable.h */ -static gint +static int gtk_tree_view_accessible_get_index_at (AtkTable *table, - gint row, - gint column) + int row, + int column) { GtkWidget *widget; - gint n_cols, n_rows; + int n_cols, n_rows; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (table)); if (widget == NULL) @@ -571,12 +571,12 @@ gtk_tree_view_accessible_get_index_at (AtkTable *table, return (row + 1) * n_cols + column; } -static gint +static int gtk_tree_view_accessible_get_column_at_index (AtkTable *table, - gint index) + int index) { GtkWidget *widget; - gint n_columns; + int n_columns; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (table)); if (widget == NULL) @@ -593,9 +593,9 @@ gtk_tree_view_accessible_get_column_at_index (AtkTable *table, return index % n_columns; } -static gint +static int gtk_tree_view_accessible_get_row_at_index (AtkTable *table, - gint index) + int index) { GtkWidget *widget; GtkTreeView *tree_view; @@ -616,10 +616,10 @@ gtk_tree_view_accessible_get_row_at_index (AtkTable *table, static AtkObject * gtk_tree_view_accessible_table_ref_at (AtkTable *table, - gint row, - gint column) + int row, + int column) { - gint index; + int index; index = gtk_tree_view_accessible_get_index_at (table, row, column); if (index == -1) @@ -628,7 +628,7 @@ gtk_tree_view_accessible_table_ref_at (AtkTable *table, return gtk_tree_view_accessible_ref_child (ATK_OBJECT (table), index); } -static gint +static int gtk_tree_view_accessible_get_n_rows (AtkTable *table) { GtkWidget *widget; @@ -640,7 +640,7 @@ gtk_tree_view_accessible_get_n_rows (AtkTable *table) return get_n_rows (GTK_TREE_VIEW (widget)); } -static gint +static int gtk_tree_view_accessible_get_n_columns (AtkTable *table) { GtkWidget *widget; @@ -654,7 +654,7 @@ gtk_tree_view_accessible_get_n_columns (AtkTable *table) static gboolean gtk_tree_view_accessible_is_row_selected (AtkTable *table, - gint row) + int row) { GtkWidget *widget; GtkTreeRBTree *tree; @@ -678,8 +678,8 @@ gtk_tree_view_accessible_is_row_selected (AtkTable *table, static gboolean gtk_tree_view_accessible_is_selected (AtkTable *table, - gint row, - gint column) + int row, + int column) { return gtk_tree_view_accessible_is_row_selected (table, row); } @@ -712,13 +712,13 @@ get_selected_rows (GtkTreeModel *model, g_array_append_val (data->array, id); } -static gint +static int gtk_tree_view_accessible_get_selected_rows (AtkTable *table, - gint **rows_selected) + int **rows_selected) { SelectedRowsData data; GtkWidget *widget; - gint n_rows; + int n_rows; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (table)); if (widget == NULL) @@ -729,7 +729,7 @@ gtk_tree_view_accessible_get_selected_rows (AtkTable *table, } data.treeview = GTK_TREE_VIEW (widget); - data.array = g_array_new (FALSE, FALSE, sizeof (gint)); + data.array = g_array_new (FALSE, FALSE, sizeof (int)); gtk_tree_selection_selected_foreach (gtk_tree_view_get_selection (data.treeview), get_selected_rows, @@ -737,7 +737,7 @@ gtk_tree_view_accessible_get_selected_rows (AtkTable *table, n_rows = data.array->len; if (rows_selected) - *rows_selected = (gint *) g_array_free (data.array, FALSE); + *rows_selected = (int *) g_array_free (data.array, FALSE); else g_array_free (data.array, TRUE); @@ -746,7 +746,7 @@ gtk_tree_view_accessible_get_selected_rows (AtkTable *table, static gboolean gtk_tree_view_accessible_add_row_selection (AtkTable *table, - gint row) + int row) { GtkTreeView *treeview; GtkTreePath *path; @@ -778,7 +778,7 @@ gtk_tree_view_accessible_add_row_selection (AtkTable *table, static gboolean gtk_tree_view_accessible_remove_row_selection (AtkTable *table, - gint row) + int row) { GtkTreeView *treeview; GtkTreePath *path; @@ -810,7 +810,7 @@ gtk_tree_view_accessible_remove_row_selection (AtkTable *table, static AtkObject * gtk_tree_view_accessible_get_column_header (AtkTable *table, - gint in_col) + int in_col) { GtkWidget *widget; GtkTreeView *tree_view; @@ -830,7 +830,7 @@ gtk_tree_view_accessible_get_column_header (AtkTable *table, static const gchar * gtk_tree_view_accessible_get_column_description (AtkTable *table, - gint in_col) + int in_col) { GtkWidget *widget; GtkTreeView *tree_view; @@ -872,11 +872,11 @@ atk_table_interface_init (AtkTableIface *iface) static gboolean gtk_tree_view_accessible_add_selection (AtkSelection *selection, - gint i) + int i) { AtkTable *table; - gint n_columns; - gint row; + int n_columns; + int row; table = ATK_TABLE (selection); n_columns = gtk_tree_view_accessible_get_n_columns (table); @@ -907,13 +907,13 @@ gtk_tree_view_accessible_clear_selection (AtkSelection *selection) static AtkObject * gtk_tree_view_accessible_ref_selection (AtkSelection *selection, - gint i) + int i) { AtkTable *table; - gint row; - gint n_selected; - gint n_columns; - gint *selected; + int row; + int n_selected; + int n_columns; + int *selected; table = ATK_TABLE (selection); n_columns = gtk_tree_view_accessible_get_n_columns (table); @@ -927,11 +927,11 @@ gtk_tree_view_accessible_ref_selection (AtkSelection *selection, return gtk_tree_view_accessible_table_ref_at (table, row, i % n_columns); } -static gint +static int gtk_tree_view_accessible_get_selection_count (AtkSelection *selection) { AtkTable *table; - gint n_selected; + int n_selected; table = ATK_TABLE (selection); n_selected = gtk_tree_view_accessible_get_selected_rows (table, NULL); @@ -942,10 +942,10 @@ gtk_tree_view_accessible_get_selection_count (AtkSelection *selection) static gboolean gtk_tree_view_accessible_is_child_selected (AtkSelection *selection, - gint i) + int i) { GtkWidget *widget; - gint row; + int row; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection)); if (widget == NULL) @@ -1012,7 +1012,7 @@ gtk_tree_view_accessible_get_cell_area (GtkCellAccessibleParent *parent, /* Values from gtktreeview.c ... */ #define _TREE_VIEW_EXPANDER_SIZE 16 #define _TREE_VIEW_HORIZONTAL_SEPARATOR 4 - gint expander_size = _TREE_VIEW_EXPANDER_SIZE + (_TREE_VIEW_HORIZONTAL_SEPARATOR / 2); + int expander_size = _TREE_VIEW_EXPANDER_SIZE + (_TREE_VIEW_HORIZONTAL_SEPARATOR / 2); cell_rect->x += expander_size + EXTRA_EXPANDER_PADDING; cell_rect->width -= expander_size + EXTRA_EXPANDER_PADDING; } @@ -1024,10 +1024,10 @@ gtk_tree_view_accessible_get_cell_area (GtkCellAccessibleParent *parent, */ if (top_cell != cell) { - gint cell_index; + int cell_index; gboolean found; - gint cell_start; - gint cell_width; + int cell_start; + int cell_width; GList *renderers; GtkCellRenderer *renderer; @@ -1050,16 +1050,16 @@ gtk_tree_view_accessible_get_cell_area (GtkCellAccessibleParent *parent, static void gtk_tree_view_accessible_get_cell_extents (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkWidget *widget; GtkTreeView *tree_view; GdkRectangle cell_rect; - gint w_x, w_y; + int w_x, w_y; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (parent)); if (widget == NULL) @@ -1098,7 +1098,7 @@ gtk_tree_view_accessible_grab_cell_focus (GtkCellAccessibleParent *parent, GtkTreeViewAccessibleCellInfo *cell_info; GtkCellRenderer *renderer = NULL; GtkWidget *toplevel; - gint index; + int index; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (parent)); if (widget == NULL) @@ -1356,8 +1356,8 @@ gtk_tree_view_accessible_update_relationset (GtkCellAccessibleParent *parent, static void gtk_tree_view_accessible_get_cell_position (GtkCellAccessibleParent *parent, GtkCellAccessible *cell, - gint *row, - gint *column) + int *row, + int *column) { GtkWidget *widget; GtkTreeView *tree_view; @@ -1437,7 +1437,7 @@ is_cell_showing (GtkTreeView *tree_view, { GdkRectangle rect, *visible_rect; GdkRectangle rect1, *tree_cell_rect; - gint bx, by; + int bx, by; gboolean is_showing; /* A cell is considered "SHOWING" if any part of the cell is @@ -1514,7 +1514,7 @@ cell_info_new (GtkTreeViewAccessible *self, /* Returns the column number of the specified GtkTreeViewColumn * The column must be visible. */ -static gint +static int get_column_number (GtkTreeView *treeview, GtkTreeViewColumn *column) { @@ -1543,7 +1543,7 @@ get_column_number (GtkTreeView *treeview, static gboolean get_rbtree_column_from_index (GtkTreeView *tree_view, - gint index, + int index, GtkTreeRBTree **tree, GtkTreeRBNode **node, GtkTreeViewColumn **column) diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c index fe334e3d8b..1941952e79 100644 --- a/gtk/a11y/gtkwidgetaccessible.c +++ b/gtk/a11y/gtkwidgetaccessible.c @@ -230,7 +230,7 @@ gtk_widget_accessible_get_parent (AtkObject *accessible) */ if (GTK_IS_NOTEBOOK (parent_widget)) { - gint page_num; + int page_num; GtkWidget *child; GtkNotebook *notebook; @@ -465,12 +465,12 @@ gtk_widget_accessible_ref_state_set (AtkObject *accessible) return state_set; } -static gint +static int gtk_widget_accessible_get_index_in_parent (AtkObject *accessible) { GtkWidget *widget; GtkWidget *parent_widget; - gint index; + int index; GtkWidget *ch; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (accessible)); @@ -488,7 +488,7 @@ gtk_widget_accessible_get_index_in_parent (AtkObject *accessible) return 0; else { - gint n_children, i; + int n_children, i; gboolean found = FALSE; n_children = atk_object_get_n_accessible_children (parent); @@ -592,10 +592,10 @@ gtk_widget_accessible_init (GtkWidgetAccessible *accessible) static void gtk_widget_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkWidget *widget; @@ -663,10 +663,10 @@ gtk_widget_accessible_grab_focus (AtkComponent *component) static gboolean gtk_widget_accessible_set_extents (AtkComponent *component, - gint x, - gint y, - gint width, - gint height, + int x, + int y, + int width, + int height, AtkCoordType coord_type) { return FALSE; @@ -674,8 +674,8 @@ gtk_widget_accessible_set_extents (AtkComponent *component, static gboolean gtk_widget_accessible_set_position (AtkComponent *component, - gint x, - gint y, + int x, + int y, AtkCoordType coord_type) { return FALSE; @@ -683,8 +683,8 @@ gtk_widget_accessible_set_position (AtkComponent *component, static gboolean gtk_widget_accessible_set_size (AtkComponent *component, - gint width, - gint height) + int width, + int height) { return FALSE; } diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c index 6485cf8e69..594ad6ca57 100644 --- a/gtk/a11y/gtkwindowaccessible.c +++ b/gtk/a11y/gtkwindowaccessible.c @@ -32,14 +32,14 @@ /* atkcomponent.h */ static void gtk_window_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type); static void gtk_window_accessible_get_size (AtkComponent *component, - gint *width, - gint *height); + int *width, + int *height); static void atk_component_interface_init (AtkComponentIface *iface); static void atk_window_interface_init (AtkWindowIface *iface); @@ -94,12 +94,12 @@ gtk_window_accessible_get_name (AtkObject *accessible) return name; } -static gint +static int gtk_window_accessible_get_index_in_parent (AtkObject *accessible) { GtkWidget* widget; AtkObject* atk_obj; - gint index = -1; + int index = -1; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (accessible)); if (widget == NULL) @@ -121,7 +121,7 @@ gtk_window_accessible_get_index_in_parent (AtkObject *accessible) } else { - gint i, sibling_count; + int i, sibling_count; sibling_count = atk_object_get_n_accessible_children (atk_obj); for (i = 0; i < sibling_count && index == -1; ++i) @@ -204,12 +204,12 @@ gtk_window_accessible_ref_state_set (AtkObject *accessible) return state_set; } -static gint +static int gtk_window_accessible_get_n_children (AtkObject *object) { GtkWidget *window; GtkWidget *child; - gint count = 0; + int count = 0; window = gtk_accessible_get_widget (GTK_ACCESSIBLE (object)); for (child = gtk_widget_get_first_child (GTK_WIDGET (window)); @@ -222,7 +222,7 @@ gtk_window_accessible_get_n_children (AtkObject *object) static AtkObject * gtk_window_accessible_ref_child (AtkObject *object, - gint i) + int i) { GtkWidget *window, *child; int pos; @@ -270,10 +270,10 @@ gtk_window_accessible_init (GtkWindowAccessible *accessible) static void gtk_window_accessible_get_extents (AtkComponent *component, - gint *x, - gint *y, - gint *width, - gint *height, + int *x, + int *y, + int *width, + int *height, AtkCoordType coord_type) { GtkWidget *widget; @@ -301,8 +301,8 @@ gtk_window_accessible_get_extents (AtkComponent *component, static void gtk_window_accessible_get_size (AtkComponent *component, - gint *width, - gint *height) + int *width, + int *height) { GtkWidget *widget; GdkSurface *surface; |