diff options
author | Benjamin Otte <otte@redhat.com> | 2020-07-24 15:54:49 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-07-25 00:47:36 +0200 |
commit | d7266b25ba5f2f21a5bd19d0fb88aca530e4d265 (patch) | |
tree | 8dc515efd6e0c0b0da1d7e02049f284edd6050ff /gtk/gtkmenutracker.c | |
parent | 46423e614d4fcf142d9578d4788dde664ea280f9 (diff) | |
download | gtk+-d7266b25ba5f2f21a5bd19d0fb88aca530e4d265.tar.gz |
Replace "gint" with "int"
Diffstat (limited to 'gtk/gtkmenutracker.c')
-rw-r--r-- | gtk/gtkmenutracker.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gtk/gtkmenutracker.c b/gtk/gtkmenutracker.c index c9b59d183b..ba3bbfc6aa 100644 --- a/gtk/gtkmenutracker.c +++ b/gtk/gtkmenutracker.c @@ -87,14 +87,14 @@ static GtkMenuTrackerSection * gtk_menu_tracker_section_new (GtkMenuTracker GMenuModel *model, gboolean with_separators, gboolean separator_label, - gint offset, + int offset, const gchar *action_namespace); static void gtk_menu_tracker_section_free (GtkMenuTrackerSection *section); static GtkMenuTrackerSection * gtk_menu_tracker_section_find_model (GtkMenuTrackerSection *section, gpointer model, - gint *offset) + int *offset) { GSList *item; @@ -159,18 +159,18 @@ gtk_menu_tracker_section_find_model (GtkMenuTrackerSection *section, * have any items in us or if we are completely empty and sync if our * separator is shown or not. */ -static gint +static int gtk_menu_tracker_section_sync_separators (GtkMenuTrackerSection *section, GtkMenuTracker *tracker, - gint offset, + int offset, gboolean could_have_separator, GMenuModel *parent_model, - gint parent_index) + int parent_index) { gboolean should_have_separator; - gint n_items = 0; + int n_items = 0; GSList *item; - gint i = 0; + int i = 0; for (item = section->items; item; item = item->next) { @@ -228,7 +228,7 @@ gtk_menu_tracker_item_visibility_changed (GtkMenuTrackerItem *item, GtkMenuTrackerSection *section; gboolean is_now_visible; gboolean was_visible; - gint offset = 0; + int offset = 0; is_now_visible = gtk_menu_tracker_item_get_is_visible (item); @@ -255,11 +255,11 @@ gtk_menu_tracker_item_visibility_changed (GtkMenuTrackerItem *item, gtk_menu_tracker_section_sync_separators (tracker->toplevel, tracker, 0, FALSE, NULL, 0); } -static gint +static int gtk_menu_tracker_section_measure (GtkMenuTrackerSection *section) { GSList *item; - gint n_items; + int n_items; if (section == NULL) return 1; @@ -278,15 +278,15 @@ gtk_menu_tracker_section_measure (GtkMenuTrackerSection *section) static void gtk_menu_tracker_remove_items (GtkMenuTracker *tracker, GSList **change_point, - gint offset, - gint n_items) + int offset, + int n_items) { - gint i; + int i; for (i = 0; i < n_items; i++) { GtkMenuTrackerSection *subsection; - gint n; + int n; subsection = (*change_point)->data; *change_point = g_slist_delete_link (*change_point, *change_point); @@ -303,10 +303,10 @@ static void gtk_menu_tracker_add_items (GtkMenuTracker *tracker, GtkMenuTrackerSection *section, GSList **change_point, - gint offset, + int offset, GMenuModel *model, - gint position, - gint n_items) + int position, + int n_items) { while (n_items--) { @@ -410,16 +410,16 @@ gtk_menu_tracker_add_items (GtkMenuTracker *tracker, static void gtk_menu_tracker_model_changed (GMenuModel *model, - gint position, - gint removed, - gint added, + int position, + int removed, + int added, gpointer user_data) { GtkMenuTracker *tracker = user_data; GtkMenuTrackerSection *section; GSList **change_point; - gint offset = 0; - gint i; + int offset = 0; + int i; /* First find which section the changed model corresponds to, and the * position of that section within the overall menu. @@ -477,7 +477,7 @@ gtk_menu_tracker_section_new (GtkMenuTracker *tracker, GMenuModel *model, gboolean with_separators, gboolean separator_label, - gint offset, + int offset, const gchar *action_namespace) { GtkMenuTrackerSection *section; |