[geany/geany] fe5982: Merge pull request #947 from techee/fix_warning
Colomban Wendling
git-noreply at xxxxx
Wed Mar 9 15:07:48 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Wed, 09 Mar 2016 15:07:48 UTC
Commit: fe598274fbe09dae1de0549c6c40f5dfd10094ae
https://github.com/geany/geany/commit/fe598274fbe09dae1de0549c6c40f5dfd10094ae
Log Message:
-----------
Merge pull request #947 from techee/fix_warning
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