summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-16 12:12:56 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-04-16 12:12:56 +0000
commita0a18a7b026468ffc14f7edd2d8ffd125e19a9ed (patch)
treedd7164d7acd9702764374cda4d877334924fc147
parent915d0b39a94f745f8cce4bc07187ef435d78cc06 (diff)
parentb69790a7760647efcfbd7a4cd582a3824fa34ae4 (diff)
downloadgtk+-a0a18a7b026468ffc14f7edd2d8ffd125e19a9ed.tar.gz
Merge branch 'pre.c99' into 'gtk-3-24'
gtkimcontextsimple.c, updateiconcache.c: Fix build on older compilers See merge request GNOME/gtk!3444
-rw-r--r--gtk/gtkimcontextsimple.c4
-rw-r--r--gtk/updateiconcache.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 89221ce80e..38806d05c3 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -553,8 +553,10 @@ no_sequence_matches (GtkIMContextSimple *context_simple,
if (i == n_compose - 1)
{
+ int j;
+
/* dead keys are never *really* dead */
- for (int j = 0; j < i; j++)
+ for (j = 0; j < i; j++)
{
ch = dead_key_to_unicode (priv->compose_buffer[j], &need_space);
if (ch)
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 6703c8b9e8..787e718264 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -623,14 +623,13 @@ scan_directory (const gchar *base_path,
list = g_list_sort (list, (GCompareFunc) strcmp);
for (iterator = list; iterator; iterator = iterator->next)
{
- name = iterator->data;
-
gchar *path;
gboolean retval;
int flags = 0;
Image *image;
gchar *basename, *dot;
+ name = iterator->data;
path = g_build_filename (dir_path, name, NULL);
retval = g_file_test (path, G_FILE_TEST_IS_DIR);