diff options
author | David Zeuthen <davidz@redhat.com> | 2010-10-07 10:36:15 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-10-07 10:36:15 -0400 |
commit | 9e3ec1644c897010e4660370b4e68d781fb92d5d (patch) | |
tree | 39dd0e98ef094c266003d958e1628ab04fcf3394 /stc/stcitem.c | |
parent | a459e7954bb480d62fa805010c6946c4b059a2ea (diff) |
Rename NickName to Comment
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'stc/stcitem.c')
-rw-r--r-- | stc/stcitem.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/stc/stcitem.c b/stc/stcitem.c index 2735e8b..0a6d321 100644 --- a/stc/stcitem.c +++ b/stc/stcitem.c @@ -59,7 +59,7 @@ struct _StcItem StcItemType type; gchar *id; - gchar *nick_name; + gchar *comment; gchar *target; GHashTable *options; gchar **depends; @@ -106,7 +106,7 @@ stc_item_finalize (GObject *object) g_object_remove_weak_pointer (G_OBJECT (item->monitor), (gpointer*) &item->monitor); g_free (item->id); - g_free (item->nick_name); + g_free (item->comment); g_free (item->target); g_hash_table_unref (item->options); g_strfreev (item->depends); @@ -177,10 +177,10 @@ stc_item_get_id (StcItem *item) } const gchar * -stc_item_get_nick_name (StcItem *item) +stc_item_get_comment (StcItem *item) { g_return_val_if_fail (STC_IS_ITEM (item), NULL); - return item->nick_name; + return item->comment; } const gchar * @@ -202,7 +202,7 @@ _stc_item_new (StcMonitor *monitor, StcItemType type, const gchar *id, const gchar *target, - const gchar *nick_name, + const gchar *comment, GHashTable *options, const gchar *const *depends, const gchar *sort_key, @@ -217,7 +217,7 @@ _stc_item_new (StcMonitor *monitor, g_object_add_weak_pointer (G_OBJECT (item->monitor), (gpointer*) &item->monitor); item->id = g_strdup (id); item->target = g_strdup (target); - item->nick_name = g_strdup (nick_name); + item->comment = g_strdup (comment); item->type = type; item->options = g_hash_table_ref (options); item->depends = g_strdupv ((gchar **) depends); @@ -305,10 +305,10 @@ _stc_item_update (StcItem *item, StcItem *other) changed = TRUE; } - if (g_strcmp0 (item->nick_name, other->nick_name) != 0) + if (g_strcmp0 (item->comment, other->comment) != 0) { - g_free (item->nick_name); - item->nick_name = g_strdup (other->nick_name); + g_free (item->comment); + item->comment = g_strdup (other->comment); changed = TRUE; } |