-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove GdkColormap (causes coloring issue!)
This removes the legacy data type and functions but causes drawing issues: The different colors vanish and are sort of black-ish, but still readable. But in other code I have seen, the colormap was just deleted and the rest around it was kept. Like here: https://mail.gnome.org/archives/commits-list/2010-December/msg06118.html - colormap = gtk_widget_get_colormap (GTK_WIDGET (day_view)); - if (gdk_colormap_alloc_color (colormap, &bg_color, TRUE, TRUE)) { - gdk_cairo_set_source_color (cr, &bg_color); - } + gdk_cairo_set_source_color (cr, &bg_color); I am lacking something like the set_source_color function though, but I think it is better to have some sort-of working code without legacy functions than doing workarounds in gtk2 at the moment. Ah, and I chose to ignore the win32 code, because who cares.
- Loading branch information
1 parent
d668c96
commit 771279c
Showing
2 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters