summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-06-26navigation-bar: fix deprecated GTK_TYPE_HBOX usageraveit651-1/+2
2016-06-19GTK3: Fix caja information panellukefromdc1-0/+6
The Caja information panel (information option in sidebar) was never fully ported to GTK3, probably still isn't. Set the .view style class on it, and exclude the rest of caja_information_panel_update_appearance as that code segfaults (at least with GTK 3.21) on dragging a background to the info panel. We now have a demo for background dragging in GTK3: A background can be dragged to the information sidebar and will be displayed. Won't be saved and won't appear in other Cajs navigation windows, something in the code that segfaulted no doubt needs to be fixed for that but that's for later. At least this widget finally works. It will follow any theme I have and no longer fails to update to BlackMATE or my own theme.
2016-06-15GTK+3: do not use deprecated gtk_widget_modify_fontraveit651-0/+4
2016-06-15GTK+-3.20: do not use deprecated gtk_button_set_focus_on_clickraveit653-0/+24
2016-06-15GTK+3 pathbar: Do not use deprecate composite-child APIraveit651-0/+8
2016-05-31GTK+-3 fm-icon-view: fix a Wincompatible-pointer-types build warningraveit651-2/+2
2016-05-31GTK+2: fix build errors after last commitsmonsta2-1/+5
2016-05-30GTK+3 sidebars and caja-places: port style_set to style_updatedraveit655-26/+45
2016-05-28GTK3:caja-zoom-control.c GtkStyle>GtkStyleContextlukefromdc1-0/+4
caja-zoom-control.c: label_style_set_callback to GtkStyleContext in GTK3 builds
2016-05-28GTK3: caja-places-sidebar.c use GtkStyleContextlukefromdc1-0/+10
caja-places-sidebar.c: Port caja_places_sidebar_style_set to GtkStyleContext from GtkStyle in GTK3 builds
2016-05-28GTK3:caja-pathbar remove GtkStyle varslukefromdc1-2/+10
caja-pathbar.c: GtkStyleContext is already used to style the pathbar, so removed GtkStyle variables and unneeded caja_path_bar_style_set function
2016-05-28GTK3: caja-location-bar.c use GtkStyleContextlukefromdc1-0/+4
Port one variable in style_set_handler to GtkStyleContext in GTK3 builds
2016-05-28GTK3:caja-information-panel.c use GtkStyleContextlukefromdc1-0/+9
caja-information-panel.c: Port caja_information_panel_style_set to GtkStyleContext in GTK3 builds
2016-05-28GTK3: port history sidebar to GtkStyleContextlukefromdc1-0/+9
caja-history-sidebar.c: port caja_history_sidebar_style_set GtkStyleContext in GTK3 builds
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-04-21prefs dialog: don't crash on toggling "Show hidden and backup files"monsta3-13/+16
adapted from: https://git.gnome.org/browse/nautilus/commit/?id=7428762ea6601abba086fcc5e57f443b2e2b40b5 fixes https://github.com/mate-desktop/caja/issues/326
2016-04-20GTK+-3 theming: add a CSS file for caja, and initialize it at startupraveit651-0/+29
inspired by: https://git.gnome.org/browse/nautilus/commit/?id=dad5d12
2016-04-19GTK+3: add style class caja-desktop-window at top levelraveit651-2/+9
The existing style class .caja-desktop does not match every widget which you see at the screen. Ie. the widget scrolledwindow, which is above the existing class in hierarchy.
2016-03-16GTK 3.20-fix wrong desktop size rightlukefromdc1-2/+6
Reset default size of desktop window to -1 in GTK 3.19/20 only. The combination of a non-resizable window with a default size is what causes the desktop to open wrong size. based on https://github.com/GNOME/nautilus/commit/cf79068dc70c87e963e217e2e8ae149ee5ed1872 "desktop-window: avoid wrong size" "gtk+ recently changed and unresizable windows now take into account the default size set. We set the default size for normal resizable windows in nautilus." "However the desktop window is a no resizable window. What happens now when setting a default size is that that size is used instead of the widget request size, since window sizing now takes precedence over widget sizing." "To fix it, set the default size to -1 to override what the nautilus window does by default, so we can avoid this misbehaviour."
2016-02-18GTK+3: add style class caja-property-browserWolfgang Ulbrich1-0/+7
2016-02-16[GTK+3] handle smooth scroll events for zooming (with Ctrl held)monsta1-0/+28
fixes https://github.com/mate-desktop/caja/issues/516 adapted from: https://git.gnome.org/browse/nautilus/commit/?id=1a76e044a2c9b834d00c4ea30f1e3af3321d8cdd https://git.gnome.org/browse/nautilus/commit/?id=878e2a4f7ada26bb7c106e5bbdbd8434acf86c77 https://git.gnome.org/browse/nautilus/commit/?id=f7b54cdba55a0856b201e62818059ac5007fac35 https://git.gnome.org/browse/nautilus/commit/?id=3d275a971132a41809a3b1e5b8ac683d264d6c35
2016-02-09 .view style class on icon view scrolled windowlukefromdc1-1/+6
GTK 3.19/3.20 builds only: Applying the .view class to the icon container no longer works in gtk3.19, so apply it to the scrolled window instead. Apply it in both icon view and compact view, as both need it. Doing it from this file prevents it from being applied to the scrolled window under a treeview, thus preventing the exposed corner above the scrollbar in a treeview from showing the view background color. Tested this build in gtk3.19.8 with good results. Tested in my own theme (UbuntuStudio_Legacy),Adwaita, BlackMATE, Green-Submarine, and BlueMenta, all still work right. Adwaita now shows the proper white view color, and my own theme gives a white icon view without also showing white squares over the treeview scrollbars. That was an unwanted side effect of applying the view color in the gtk theme to all the scrolled windows containing list, icon, or compact views as there is no way to tell them apart from the theme only. This approach keeps the scrolled window under the treeview transparent but themes them under icon or compact views. Using .view rather than a custom class enables themes not written for MATE to set the Caja background to match expected view colors, just as it did on the icon container in gtk3.18 and earlier. Leave it on the icon container too, as it may be needed in some themes to theme elements within the icon view. Also, I found no ill effects from the added style class on gtk3.18. In that case, the .view style class on the icon container should cover over anything in the scrolled window. Since the style class is not applied to the scrolled window used by a list view, no ill effect there in gtk 3.19 or gtk3.18. Applying to gtk3.19 only builds for now just in case
2016-02-08window-slot: fix wrong reference handling on disposemonsta1-9/+1
adapted from: https://git.gnome.org/browse/nautilus/commit/?id=97a2553ada8c8015fe22e6ec87e48123b29fa4d4 https://git.gnome.org/browse/nautilus/commit/?id=fd2685f838e613387179968d8e0b1326fe503a16
2016-02-08use g_hash_table_remove_all and get rid of some callbacksmonsta1-7/+1
taken from https://git.gnome.org/browse/nautilus/commit/?id=564264cc6cc6fa44390791248019547a7133d70d and applied in some other places as well
2016-02-06properties-window: use 'bold and right-aligned are always FALSE' for gtk2 tooWolfgang Ulbrich1-18/+4
This is needed to fix gtk3 build failure for gtk+-3.14, causes by different GTK_CHECK versions for deprecated GtkLabel for 3.16.
2016-02-02GTK3: add 'caja-notebook' style class + fix deprecated theme warnings with ↵Wolfgang Ulbrich1-21/+3
gtk+-3.20
2016-02-02GTK3 BlueMenta: add caja-pathbar style classWolfgang Ulbrich1-0/+6
Needed for gtk+-3.20
2016-02-02GTK3: add caja-search-bar style classWolfgang Ulbrich1-0/+6
Needed fot gtk+-3.20
2016-02-02GTK3: add caja-location-entry style classWolfgang Ulbrich1-0/+8
Neeed for gtk+-3.20
2016-02-01GTK3 sid-pane: add 'caja-side-pane' style classWolfgang Ulbrich1-0/+7
All widgets for the sidebar can be selected with this style class on top. Needed for gtk+-3.20.
2016-02-01Gtk3 navigation-window: add 'caja-navigation-window' style class at top levelWolfgang Ulbrich1-0/+7
This style selector can be use by themes to select the caja navigation window. Needed for gtk+-3.20
2016-02-01fix a build warning and a sudden build error that followed O_omonsta1-1/+1
2016-02-01fix several build warningsmonsta2-0/+2
2016-01-26oops... add some includes back (got implicit declaration warnings)monsta1-0/+2
2016-01-26remove some unused/unneeded stuffmonsta4-14/+0
2016-01-26fix a few build warningsmonsta2-5/+5
2016-01-26use g_strcmp0 instead of strcmpmonsta1-8/+8
2016-01-25GTK3: fix deprecated GtkMiscWolfgang Ulbrich10-41/+82
2016-01-25GTK3 general: don't use deprecated gdk_app_launch_context_new()Wolfgang Ulbrich1-0/+4
partially taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-2&id=bd151c8
2016-01-23GTK3 property-browser: expand the GtkScrolledWindow verticalWolfgang Ulbrich1-0/+3
2016-01-23GTK3 property-browser: don't use GtkHBox for both toolkits +Wolfgang Ulbrich1-15/+4
don't use deprecated gtk_hbox_new for gtk3
2016-01-23information-panel: use GtkWidget* instead of Gtk(V)Boxmonsta1-4/+8
and don't use deprecated function in GTK+3 build
2016-01-23fm-properties-window: use more code in both GTK+ buildsmonsta1-21/+24
2016-01-23information-panel: one more GtkWidget* usagemonsta1-4/+4
also use GtkBox type in both GTK+ builds
2016-01-23information-panel: use GtkWidget* instead of Gtk(H)Boxmonsta1-5/+10
and don't use deprecated function in GTK+3 build
2016-01-22navigation-pane: replace deprecated gtk_image_new_from_stock GTK_STOCK_EDITWolfgang Ulbrich1-1/+1
Note: this icon is shiped by gtk+ itself
2016-01-22Gtk3: fix all possible deprecated GtkStock in srcWolfgang Ulbrich7-18/+18
2016-01-22GTK3 side-pane + spartial-window: don't use deprecated gtk_arrow_new ()Wolfgang Ulbrich2-0/+8
2016-01-21GTK3 query-editor: fix deprecated GTK_TYPE_VBOX usageWolfgang Ulbrich2-0/+18
2016-01-19GTK3 fm-list-view: don't use deprecated gtk_tree_view_set_rules_hintWolfgang Ulbrich1-0/+2