[anjuta-extras] class-inheritance: Show (...) for args that has tooltip for list of args.
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta-extras] class-inheritance: Show (...) for args that has tooltip for list of args.
- Date: Thu, 4 Mar 2010 23:04:30 +0000 (UTC)
commit a167d56a2d7e89b989bf039b16f5379ac4823bd0
Author: Naba Kumar <naba gnome org>
Date: Fri Mar 5 01:04:03 2010 +0200
class-inheritance: Show (...) for args that has tooltip for list of args.
plugins/class-inheritance/class-inherit.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/class-inheritance/class-inherit.c b/plugins/class-inheritance/class-inherit.c
index 56ab159..40dcbb7 100644
--- a/plugins/class-inheritance/class-inherit.c
+++ b/plugins/class-inheritance/class-inherit.c
@@ -466,7 +466,10 @@ cls_node_expand (ClsNode *cls_node, ClsNodeExpansionType expansion_type)
{
ClsNodeItem *cls_item = g_new0 (ClsNodeItem, 1);
cls_item->cls_node = cls_node;
- cls_item->label = g_strconcat (name, "()", NULL);
+ if (strlen (args) > 2)
+ cls_item->label = g_strconcat (name, "(...)", NULL);
+ else
+ cls_item->label = g_strconcat (name, "()", NULL);
cls_item->args = g_strdup (args);
cls_item->kind = g_strdup (kind);
cls_item->type = g_strdup (type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]