[gtksourceview/wip/completion-item: 3/4] CompletionItem: consistent order



commit dfdb519e3c3ea90a6607e6f4c24532736748f6af
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Oct 20 07:32:42 2016 +0200

    CompletionItem: consistent order
    
    Same order everywhere, to know more easily if we have forgotten
    something.

 gtksourceview/gtksourcecompletionitem.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletionitem.c b/gtksourceview/gtksourcecompletionitem.c
index 81036b3..4906276 100644
--- a/gtksourceview/gtksourcecompletionitem.c
+++ b/gtksourceview/gtksourcecompletionitem.c
@@ -145,8 +145,8 @@ gtk_source_completion_item_finalize (GObject *object)
        g_free (item->priv->label);
        g_free (item->priv->markup);
        g_free (item->priv->text);
-       g_free (item->priv->info);
        g_free (item->priv->icon_name);
+       g_free (item->priv->info);
 
        G_OBJECT_CLASS (gtk_source_completion_item_parent_class)->finalize (object);
 }
@@ -177,10 +177,6 @@ gtk_source_completion_item_get_property (GObject    *object,
                        g_value_set_string (value, item->priv->text);
                        break;
 
-               case PROP_INFO:
-                       g_value_set_string (value, item->priv->info);
-                       break;
-
                case PROP_ICON:
                        g_value_set_object (value, item->priv->icon);
                        break;
@@ -193,6 +189,10 @@ gtk_source_completion_item_get_property (GObject    *object,
                        g_value_set_object (value, item->priv->gicon);
                        break;
 
+               case PROP_INFO:
+                       g_value_set_string (value, item->priv->info);
+                       break;
+
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
                        break;
@@ -236,12 +236,6 @@ gtk_source_completion_item_set_property (GObject      *object,
                        item->priv->text = g_value_dup_string (value);
                        break;
 
-               case PROP_INFO:
-                       g_free (item->priv->info);
-                       item->priv->info = g_value_dup_string (value);
-                       emit_changed (item);
-                       break;
-
                case PROP_ICON:
                        g_clear_object (&item->priv->icon);
                        item->priv->icon = GDK_PIXBUF (g_value_dup_object (value));
@@ -260,6 +254,12 @@ gtk_source_completion_item_set_property (GObject      *object,
                        emit_changed (item);
                        break;
 
+               case PROP_INFO:
+                       g_free (item->priv->info);
+                       item->priv->info = g_value_dup_string (value);
+                       emit_changed (item);
+                       break;
+
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
                        break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]