Revision: 2059 http://geany.svn.sourceforge.net/geany/?rev=2059&view=rev Author: eht16 Date: 2007-11-19 07:35:30 -0800 (Mon, 19 Nov 2007)
Log Message: ----------- Make sections in the symbol list bold for better distinction if expanders are hidden.
Modified Paths: -------------- trunk/ChangeLog trunk/src/symbols.c trunk/src/treeviews.c trunk/src/treeviews.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-11-19 14:34:02 UTC (rev 2058) +++ trunk/ChangeLog 2007-11-19 15:35:30 UTC (rev 2059) @@ -2,6 +2,9 @@
* tagmanager/read.c: Fix file type detection for parsers using regexp code with non-standard file type extensions. + * src/symbols.c, src/treeviews.c, src/treeviews.h: + Make sections in the symbol list bold for better distinction if + expanders are hidden.
2007-11-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/symbols.c =================================================================== --- trunk/src/symbols.c 2007-11-19 14:34:02 UTC (rev 2058) +++ trunk/src/symbols.c 2007-11-19 15:35:30 UTC (rev 2059) @@ -489,11 +489,12 @@ if (G_IS_OBJECT(icon)) { gtk_tree_store_set(tree_store, iter, SYMBOLS_COLUMN_ICON, icon, - SYMBOLS_COLUMN_NAME, title, -1); + SYMBOLS_COLUMN_NAME, title, SYMBOLS_COLUMN_FONT_WEIGHT, PANGO_WEIGHT_SEMIBOLD, -1); g_object_unref(icon); } else - gtk_tree_store_set(tree_store, iter, SYMBOLS_COLUMN_NAME, title, -1); + gtk_tree_store_set(tree_store, iter, SYMBOLS_COLUMN_NAME, title, + SYMBOLS_COLUMN_FONT_WEIGHT, PANGO_WEIGHT_SEMIBOLD, -1); } va_end(args); } @@ -828,7 +829,8 @@ gtk_tree_store_set(doc_list[idx].tag_store, &iter, SYMBOLS_COLUMN_ICON, icon, SYMBOLS_COLUMN_NAME, buf, - SYMBOLS_COLUMN_LINE, symbol->line, -1); + SYMBOLS_COLUMN_LINE, symbol->line, + SYMBOLS_COLUMN_FONT_WEIGHT, PANGO_WEIGHT_NORMAL, -1);
if (G_LIKELY(G_IS_OBJECT(icon))) g_object_unref(icon);
Modified: trunk/src/treeviews.c =================================================================== --- trunk/src/treeviews.c 2007-11-19 14:34:02 UTC (rev 2058) +++ trunk/src/treeviews.c 2007-11-19 15:35:30 UTC (rev 2059) @@ -103,7 +103,8 @@ g_object_set(icon_renderer, "xalign", 0.0, NULL);
gtk_tree_view_column_pack_start(column, text_renderer, TRUE); - gtk_tree_view_column_set_attributes(column, text_renderer, "text", SYMBOLS_COLUMN_NAME, NULL); + gtk_tree_view_column_set_attributes(column, text_renderer, "text", SYMBOLS_COLUMN_NAME, + "weight", SYMBOLS_COLUMN_FONT_WEIGHT, NULL); g_object_set(text_renderer, "yalign", 0.5, NULL); gtk_tree_view_column_set_title(column, _("Symbols"));
@@ -180,7 +181,7 @@ if (doc_list[idx].tag_tree == NULL) { doc_list[idx].tag_store = gtk_tree_store_new( - SYMBOLS_N_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT); + SYMBOLS_N_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT); doc_list[idx].tag_tree = gtk_tree_view_new(); prepare_taglist(doc_list[idx].tag_tree, doc_list[idx].tag_store); gtk_widget_show(doc_list[idx].tag_tree);
Modified: trunk/src/treeviews.h =================================================================== --- trunk/src/treeviews.h 2007-11-19 14:34:02 UTC (rev 2058) +++ trunk/src/treeviews.h 2007-11-19 15:35:30 UTC (rev 2059) @@ -42,6 +42,7 @@ SYMBOLS_COLUMN_ICON, SYMBOLS_COLUMN_NAME, SYMBOLS_COLUMN_LINE, + SYMBOLS_COLUMN_FONT_WEIGHT, SYMBOLS_N_COLUMNS, };
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.