summaryrefslogtreecommitdiff
path: root/src
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-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
2016-01-19GTK3: don'use deprecated gtk_hseparator_newWolfgang Ulbrich1-3/+7
2016-01-19GTK: some missing GTK_TYPE_{H/V}BOX adjustmentsWolfgang Ulbrich7-0/+55
this completes https://github.com/mate-desktop/caja/commit/cf39567
2016-01-18GTK3: fix deprecated GTK_TYPE_{H/V}BOX usageWolfgang Ulbrich5-2/+39
2016-01-18GTK3 desktop-icon-view: don't use deprecated GDK grab APIWolfgang Ulbrich1-0/+40
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-2&id=70df8fa
2016-01-17GTK3: more deprecated GtkVBox/GtkHBox fixesWolfgang Ulbrich4-2/+37
2016-01-17GTK3 connect-to-server-dialog: reduce if define hellWolfgang Ulbrich1-38/+16
2016-01-15GTK3 all: don't use deprecated GDK pointer methodsWolfgang Ulbrich1-0/+11
Use the new GdkDevice methods instead. taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-4&id=a816e00 https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-4&id=cdf858f
2016-01-15don't use deprecated gdk_cursor_new for both toolkit versionsWolfgang Ulbrich3-4/+10
gdk_cursor_new i deprecated with gtk+-3.16 and gdk_cursor_new_for_display is available since 2.2
2016-01-15GTK3 general: don't use gdk_cursor_unref()Wolfgang Ulbrich3-0/+12
taken from: https://git.gnome.org/browse/nautilus/commit/?id=74a8f78
2016-01-15GTK3: don't use deprecated gdk_threads_{enter/leave} ()Wolfgang Ulbrich1-1/+4
Since we don't ever call gdk_threads_init()
2016-01-14Small additional for closing tabs with middle-clickbl0ckeduser1-1/+1
fixes https://github.com/mate-desktop/caja/issues/457
2016-01-13GTK3 general: use eel_create_spotlight_pixbuf()Wolfgang Ulbrich3-0/+25
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=8b13a04
2016-01-13GTK3 window: port to GtkStyleContext, plug a leakWolfgang Ulbrich1-0/+2
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=465f576
2016-01-13GTK3 window: port to GtkStyleContextWolfgang Ulbrich1-0/+26
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=076886e