diff options
author | lukefromdc <[email protected]> | 2016-05-27 18:30:33 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-05-27 18:30:33 -0400 |
commit | a6c32f442e7b86e97a741b3559d96e1f77bbe300 (patch) | |
tree | d356f0be2ec90f3453b4e5537de1f74dca67a8e7 /eel/README | |
parent | 4d51ac3789ffcc78088efae1a1724c2e9e70eba6 (diff) | |
download | caja-a6c32f442e7b86e97a741b3559d96e1f77bbe300.tar.bz2 caja-a6c32f442e7b86e97a741b3559d96e1f77bbe300.tar.xz |
GTK3: Fix two deprecations, stop 3.21 segfault
In GTK 3.21, the use of GtkStyle in function style_set in caja-sidebar-title.c results in a segfault if the sidebar is showing, even though it is used only when the "information" sidebar is selected. GtkStyle also appears in update_title_font in the same file.
The second function resizes the bold headline label font in the information sidebar when either the length of the text or the width of the sidebar changes. Port it to GtkStyleContext and keep it.
The first function (style_set) does two things: It invokes the second function when the style is set up, so port its second input variable (which seems to receive only NULL anyway) to GtkStyleContext. The rest of the function is supposed to set the font for the "more information" label, but mostly seems to block updating that font with the system font and cause the size of the font to be different between GTK 3.20 or earlier and GTK 3.21. Disable that portion entirely in GTK3 builds, as that way the font is consistant across GTK3 versions(an appropriate size in all cases tested), updates with changes in the system font, and cannot segfault in GTK 3.21. Porting it to GtkStyleContext has been tested and stops the segfaults but leaves the other two problems mentioned. Disable that portion of style_set in GTK3 and be done with it.
Diffstat (limited to 'eel/README')
0 files changed, 0 insertions, 0 deletions