Revision: 1251 http://svn.sourceforge.net/geany/?rev=1251&view=rev Author: ntrel Date: 2007-02-06 09:15:44 -0800 (Tue, 06 Feb 2007)
Log Message: ----------- Fix wrong tab foreground colour for unmodified documents.
Modified Paths: -------------- branches/geany-0.10.1/NEWS branches/geany-0.10.1/src/ui_utils.c
Modified: branches/geany-0.10.1/NEWS =================================================================== --- branches/geany-0.10.1/NEWS 2007-02-06 16:13:57 UTC (rev 1250) +++ branches/geany-0.10.1/NEWS 2007-02-06 17:15:44 UTC (rev 1251) @@ -1,3 +1,9 @@ +Geany 0.10.1 (TBA) + + Bugs fixed: + * Wrong tab foreground colour for unmodified documents. + + Geany 0.10 (December 21, 2006)
Changes:
Modified: branches/geany-0.10.1/src/ui_utils.c =================================================================== --- branches/geany-0.10.1/src/ui_utils.c 2007-02-06 16:13:57 UTC (rev 1250) +++ branches/geany-0.10.1/src/ui_utils.c 2007-02-06 17:15:44 UTC (rev 1251) @@ -1,8 +1,8 @@ /* * ui_utils.c - this file is part of Geany, a fast and lightweight IDE * - * Copyright 2006 Enrico Troeger enrico.troeger@uvena.de - * Copyright 2006 Nick Treleaven nick.treleaven@btinternet.com + * Copyright 2006-2007 Enrico Troeger enrico.troeger@uvena.de + * Copyright 2006-2007 Nick Treleaven nick.treleaven@btinternet.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1179,16 +1179,13 @@ void ui_update_tab_status(gint idx) { GdkColor *color = document_get_status(idx); - static GtkStyle *style = NULL;
- if (style == NULL) // use and store default foreground colour - style = gtk_rc_get_style(doc_list[idx].tab_label); + // NULL color will reset to default + gtk_widget_modify_fg(doc_list[idx].tab_label, GTK_STATE_NORMAL, color); + gtk_widget_modify_fg(doc_list[idx].tab_label, GTK_STATE_ACTIVE, color); + gtk_widget_modify_fg(doc_list[idx].tabmenu_label, GTK_STATE_NORMAL, color); + gtk_widget_modify_fg(doc_list[idx].tabmenu_label, GTK_STATE_ACTIVE, color);
- gtk_widget_modify_fg(doc_list[idx].tab_label, GTK_STATE_NORMAL, - color ? color : &(style->fg[GTK_STATE_NORMAL])); - gtk_widget_modify_fg(doc_list[idx].tab_label, GTK_STATE_ACTIVE, - color ? color : &(style->fg[GTK_STATE_ACTIVE])); - treeviews_openfiles_update(idx); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.