[gnome-builder/gnome-builder-3-18] greeter: preserve order of language pill boxes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] greeter: preserve order of language pill boxes
- Date: Tue, 13 Oct 2015 07:28:23 +0000 (UTC)
commit cd38b938dc3a42502c26365a19af805940b9ffa5
Author: Christian Hergert <christian hergert me>
Date: Mon Sep 28 16:22:58 2015 -0700
greeter: preserve order of language pill boxes
src/greeter/gb-greeter-project-row.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/greeter/gb-greeter-project-row.c b/src/greeter/gb-greeter-project-row.c
index 105298b..78f8838 100644
--- a/src/greeter/gb-greeter-project-row.c
+++ b/src/greeter/gb-greeter-project-row.c
@@ -127,15 +127,17 @@ gb_greeter_project_row_add_languages (GbGreeterProjectRow *self,
if ((languages = ide_project_info_get_languages (project_info)))
{
+ guint len = g_strv_length (languages);
gsize i;
- for (i = 0; languages [i]; i++)
+ for (i = len; i > 0; i--)
{
+ const gchar *name = languages [i - 1];
GtkWidget *pill;
pill = g_object_new (GB_TYPE_GREETER_PILL_BOX,
"visible", TRUE,
- "label", languages [i],
+ "label", name,
NULL);
gtk_container_add (GTK_CONTAINER (self->languages_box), pill);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]