Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
GTK3: port GtkStyle->GtkStyleContext #559
Conversation
lukefromdc
added some commits
May 27, 2016
This was referenced May 28, 2016
|
Whoow, thank you for this huge work.
I will dig into it for myself, looks like this needs to be change to style_updated. @monsta |
|
Possibly a GtkStyleContext variable is getting in input that is structurally a I wish to hell I had tools to analyze code in one file and track what all variables On 5/29/2016 at 7:46 AM, "NO NAME" notifications@github.com wrote:
|
lukefromdc
referenced this pull request
May 30, 2016
Closed
GTK3: remove 4 deprecated functions #560
|
#560 suppresses those 4 (new) build warnings. removing these four "style_set" functions from GTK3 builds had no effect on rendering or theme changes and is slightly smaller code. There is still an ugly mess in eel-background.c , where porting GtkStyle to GtkStyleContext also requires converting or porting GdkColor to GdkRGBA, possibly throughout the file. That needs to be fixed before another GTK update breaks it... |
|
@lukefromdc |
|
Fine with me. If yu've got it working go for it. I'm just trying to find the best way On 5/30/2016 at 6:31 PM, "NO NAME" notifications@github.com wrote:
|
|
I just tested this with GTK 3.21 and it works fine On 5/30/2016 at 6:31 PM, "NO NAME" notifications@github.com wrote:
|
lukefromdc commentedMay 28, 2016
Port over all the remaining instances of GtkStyle I could find in Caja, keep caja-sidebar-title.c from fixes6 branch. Details below:
caja-sidebar-title.c Same file from https://github.com/lukefromdc/caja/tree/gtk3.21fixes6 GTK3: Ports update_title_font to GtkStyleContext and limit style_set function to calling update_title_font in GTK3 builds as latter function interferes with resizing fonts and does little else in GTK2.
caja-places-sidebar.c: Port caja_places_sidebar_style_set to GtkStyleContext in GTK3 builds
caja-pathbar.c: GtkStyleContext is already used to style the pathbar, so removed GtkStyle variables and unneeded caja_path_bar_style_set function
Note that this disables the most common call to caja_path_bar_check_icon_theme but icons update fine without it in GTK3. That being so, remove it and the call to it in caja_path_bar_screen_changed as well, so two functions not needed in GTK3 are removed. Theme and icon updating no change observed in testing
caja-information-panel.c: Port caja_information_panel_style_set to GtkStyleContext in GTK3 builds
caja-history-sidebar.c: port caja_history_sidebar_style_set GtkStyleContext in GTK3 builds
caja-location-bar.c: Port one variable in style_set_handler to GtkStyleContext in GTK3 builds
caja-zoom-control.c: label_style_set_callback to GtkStyleContext in GTK3 builds
Note that *previous_style is still used, unknown if this is having any effect or validity in GtkStyleContext. Not sure how to remove it but in this case it may simply be a variable name and thus valid anyway.
There is still an issue with icons in the places sidebar except information that only update after a theme change on restarting Caja, this is not new, predates any of these changes,can be observed with caja from Master over GTK 3.20, and is not affected by these commits. No other theme issues in tests with Gtk 3.16, 3.18, 3.20, or 3.21