[geany/geany] e5c11c: Use correct flag for gtk_style_get_color()
Jiří Techet
git-noreply at xxxxx
Tue Mar 8 19:40:08 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Tue, 08 Mar 2016 19:40:08 UTC
Commit: e5c11cd46a2da5d45b2f01075c5a28176edbda53
https://github.com/geany/geany/commit/e5c11cd46a2da5d45b2f01075c5a28176edbda53
Log Message:
-----------
Use correct flag for gtk_style_get_color()
Modified Paths:
--------------
src/document.c
Modified: src/document.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -3269,7 +3269,7 @@ const GdkColor *document_get_status_color(GeanyDocument *doc)
gtk_widget_path_iter_set_name(path, -1, document_status_styles[status].name);
gtk_style_context_set_screen(ctx, gtk_widget_get_screen(GTK_WIDGET(doc->editor->sci)));
gtk_style_context_set_path(ctx, path);
- gtk_style_context_get_color(ctx, GTK_STATE_NORMAL, &color);
+ gtk_style_context_get_color(ctx, GTK_STATE_FLAG_NORMAL, &color);
document_status_styles[status].color.red = 0xffff * color.red;
document_status_styles[status].color.green = 0xffff * color.green;
document_status_styles[status].color.blue = 0xffff * color.blue;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list