summaryrefslogtreecommitdiff
path: root/src/caja-sidebar-title.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-27GTK3: Fix two deprecations, stop 3.21 segfaultlukefromdc1-4/+26
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.
2016-01-18GTK3: fix deprecated GTK_TYPE_{H/V}BOX usageWolfgang Ulbrich1-0/+8
2016-01-13Gtk3 caja-sidebartitle: partial-port-to-GtkStyleContextWolfgang Ulbrich1-1/+104
2015-10-19GTK3: Replace gtk_{v,h}box new with gtk_box_newraveit651-0/+4
- gtk_{v,h}box usage is deprecated since gtk+-3.2.0
2012-11-20[sidebar-title] fix minor styling regression from 638df47eJasmine Hassan1-4/+20
1. Actually return if the widget isn't realized, not the other way around. 2. install the style properties (in class_init) before trying to use them in _select_text_color(). This was basically adapted from code in lc-p/icon-container
2012-11-16[sidebar-title] Don't use GtkObject nor eel-gtk-macrosJasmine Hassan1-36/+29
2012-11-14[sidebar-title] Use pango directly to set largest-fitting font sizeJasmine Hassan1-19/+29
and don't include eel-pango-extensions, which is to be dropped.
2012-11-14[information-panel] don't use eel_point_in_widget()Jasmine Hassan1-1/+13
nor in sidebar-title. the eel function is deprecated.
2012-11-14[sidebar-title] use gtk_label_set_attributes, obsolete eel_gtk_label_set_scaleJasmine Hassan1-1/+8
2012-11-14[sidebar-title] try to use GtkStyle in _select_text_color()Jasmine Hassan1-44/+82
Hopefully this will play better with themes, when a custom (EelBackground) background is not set in the widget.
2012-09-05convert show-directory-item-counts to gsettingsStefano Karapetsas1-4/+7
2012-08-12Fixed incorrect fsf addresses. Closes #28.Steve Zesch1-1/+1
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+732