summaryrefslogtreecommitdiff
path: root/src/caja-sidebar-title.c
AgeCommit message (Collapse)AuthorFilesLines
2022-07-20src: reduce the scope of some variablesPablo Barciela1-6/+12
2022-07-19local #include files inside "" instead <>Pablo Barciela1-14/+16
2019-03-28caja-sidebar-title: avoid 'NULL' inside 'setup_gc_with_fg'Pablo Barciela1-1/+1
Fixes Clang static analyzer warning: caja-sidebar-title.c:233:49: warning: Dereference of null pointer (loaded from variable 'color') sidebar_title->details->label_colors[idx] = *color; ^~~~~~
2019-03-04[Security] Use 'g_strlcpy' instead of 'strcpy'Pablo Barciela1-1/+1
to avoid warnings with Clang Analyzer
2019-01-28Avoid deprecated g_type_class_add_privateWu Xiaotian1-7/+3
- caja-connect-server-dialog - caja-navigation-window - caja-property-browser - caja-sidebar-title - caja-trash-bar - caja-window - caja-zoom-action - caja-zoom-control - fm-desktop-icon-view - fm-properties-window
2018-06-18caja-sidebar-title: Fix: images broken in sidebarPablo Barciela1-5/+30
Fixes https://github.com/mate-desktop/caja/pull/1004#issuecomment-398140812
2018-06-07caja-sidebar-title: fix [-Wmaybe-uninitialized] warningraveit651-0/+1
2018-06-05avoid deprecated 'gtk_widget_override_font'Pablo Barciela1-1/+7
2018-05-05avoid deprecated 'gtk_style_context_get_background_color'Pablo Barciela1-3/+17
2018-04-04sidebar: Respect sidebar dimensions on HiDPIVictor Kareh1-1/+3
2018-04-04Support HiDpi iconsCosimo Cecchi1-1/+4
Port the rendering of icons to cairo surfaces, so that we can apply the GDK scale factor when rendering icons. origin commit: https://gitlab.gnome.org/GNOME/nautilus/commit/0d4555d7
2016-11-22move to GTK+3 (>= 3.14), drop libunique, GTK+2 code, and --with-gtk build ↵lukefromdc1-153/+3
option *Remove GTK_VERSION_CHECK (3, 0, 0) and libunique selectors *Remove GTK2 and libunique specific code. *Leaves selector for specific GTK3 versions. *Remove #DEFINES for vbox/hbox previously required for GTK2 compatability *Keep vbox in caja-spatial-window.c, it is necessary for the desktop to work *spatial-window vbox issue at https://github.com/mate-desktop/caja/issues/591
2016-10-08Stop warnings on window-close and 3 warnings on exitlukefromdc1-1/+4
Fix the gsignal warnings on window-close based on https://github.com/mate-desktop/atril/commit/fda33fbeedc0aab64d9479850047d0817d0b38be "Check if handler_id is connected before disconnect" from Atril Also Fix "Source ID XXX was not found..." warnings on closing Caja These three gsources are already gone when Caja exits, their ID's still exist but they cannot be found to remove. The warnings indicate double removal so this code block is just a source of errors. Leave it in place but commented out for now.
2016-06-15GTK+3: do not use deprecated gtk_widget_modify_fontraveit651-0/+4
2016-05-30GTK+3 sidebars and caja-places: port style_set to style_updatedraveit651-4/+10
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