summaryrefslogtreecommitdiff
path: root/src/caja-application.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-10caja-application: Use PACKAGE in notify_init instead of GETTEXT_PACKAGErbuj1-1/+1
2021-02-25Fix warnings about xmlChar castrbuj1-58/+58
2020-07-25Add a "Bookmarks" sidebar to CajaGordon N. Squash1-0/+2
Added a "Bookmarks" sidebar to Caja which displays a list of the user's own bookmarks. Single-clicking any bookmark in the list directs Caja to that bookmark; middle-clicking on the bookmark directs Caja to open the bookmark in a new tab.
2020-04-28support an explicit --select command line optionplonibarploni1-5/+70
ported from nautilus: https://github.com/GNOME/nautilus/commit/dc7e851ae4a223522c3158dd4134a3b313283596
2020-04-13Fix -Wmissing-prototypes build warningsPablo Barciela1-3/+3
2020-04-12Remove warnings about function declaration isn’t a prototyperbuj1-1/+2
2019-08-26add new FmWidgetView objectWu Xiaotian1-0/+2
2019-07-08Add support for loading theme-specific caja-desktop CSSColomban Wendling1-5/+40
Add support for loading a specific CSS named after the theme for theming the desktop, "caja-desktop-$THEME.css". This allows specific overrides for themes with specific needs, like HighContrast and such.
2019-07-08Refactor custom CSS loading into a separate functionColomban Wendling1-23/+18
2019-06-18Remove trailing whitespacesrbuj1-35/+35
find . -regextype posix-extended -regex '.*\.(c|h|ac|txt|xml)' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
2019-06-17src: reduce the scope of some variablesPablo Barciela1-11/+21
2019-04-12local #include files who are libraries inside <> instead ""Pablo Barciela1-15/+15
2019-04-10drop functions defined but not usedPablo Barciela1-224/+0
2019-04-10local #include files inside "" instead <>Pablo Barciela1-34/+37
2019-04-09Fix invocation with --geometry from the command linelukefromdc1-7/+14
Due to changes somewhere else windows called with --geometry must now be opened before splitedOptions is freed or the geometry passed to later functions gets corrrupted Note that setting a width smaller than 654 px will generate GTK warnings (negative content width and similar) but will still mostly work.
2019-04-07caja-application: avoid NULL inside 'g_object_unref'Pablo Barciela1-3/+4
Fixes Clang static analyzer warning: caja-application.c:2221:25: warning: Array access (from variable 'files') results in a null pointer dereference g_object_unref (files[idx]); ^~~~~~~~~~
2019-03-07avoid variables set but not usedPablo Barciela1-4/+0
2019-03-04drop unused variablesPablo Barciela1-1/+0
2019-01-22CajaApplication: avoid deprecated 'g_type_class_add_private'Wu Xiaotian1-6/+4
2019-01-19caja-application: Check for smclient before trying to load sessionlukefromdc1-3/+3
Fix crash on starting with env DESKTOP_AUTOSTART_ID=ANY_CHARS caja
2018-11-07Fix case-insensitive comparison in running_in_mateZhang Xianwei1-2/+2
The environment variable XDG_SESSION_DESKTOP and DESKTOP_SESSION in running_in_mate are compared using "MATE". Actually the environment variable in MATE DE is "mate"(lower case). Using "mate" instead of "MATE" to fix it. Signed-off-by: Zhang Xianwei <[email protected]>
2018-10-19caja-application.c: Remove redundant empty linesZhang Xianwei1-3/+0
There are some redundant empty lines in caja-application.c. Remove it. Signed-off-by: Zhang Xianwei <[email protected]>
2018-09-19Remove dead code, fix a memory leaklukefromdc1-11/+3
2018-09-17add option to open multiple uri in tabs at startupClément Masci1-69/+127
2018-09-17Revert "add option to open multiple uri in tabs at startup"raveit651-107/+50
This reverts commit fd1f45f308e418d1c1b44b968ce83f77e4f8a689.
2018-09-17Revert "Memory leak fix"raveit651-1/+0
This reverts commit 04f7e80725c61ab511e2a4ead45eb31acc026e1a.
2018-09-17Revert "Fix indents, update docs to reflect ability to open URIs in tabs"raveit651-66/+67
This reverts commit 424cf4485515a51074c0811880560de360dad784.
2018-09-16Fix indents, update docs to reflect ability to open URIs in tabslukefromdc1-67/+66
2018-09-15Memory leak fixClément Masci1-0/+1
2018-09-14add option to open multiple uri in tabs at startupClément Masci1-50/+107
2018-05-07replace deprecated gdk_flushraveit651-2/+2
2018-01-31require GTK+ 3.22 and GLib 2.50monsta1-4/+0
2017-07-12application: remove unneeded forward declarationsmonsta1-22/+2
2017-07-08Fix browsing/autorun media on insertionlukefromdc1-0/+1
Fix https://github.com/mate-desktop/caja/issues/807
2017-05-07pass CajaApplication instead of GApplication to DBus initmonsta1-1/+1
fixes a build warning
2017-05-03restore DBus interface initializationmonsta1-0/+3
fixes https://github.com/mate-desktop/caja/issues/771
2017-05-02CSS: Load a different caja-desktop.css with GTK 3.14Clement Lefebvre1-2/+6
In caja-desktop.css this line isn't compatible with GTK 3.14: ".caja-desktop:not(:selected):not(:active):not(.rubberband){" It is needed for GTK 3.20/3.22 tough. This PR checks the GTK version and loads the appropriate CSS. This fixes desktop icons showing black text. That issue was reproduced with Adwaita under LMDE with GTK 3.14.
2017-03-17caja-application.c: Fix uninitialized variablelukefromdc1-1/+1
Fixes https://github.com/mate-desktop/caja/issues/747
2016-12-04Rename labels: follow theme if available, sane defaultlukefromdc1-0/+15
Fixes https://github.com/mate-desktop/caja/issues/688 *Split caja.css. Much of it can load with GTK_STYLE_PROVIDER_PRIORITY_THEME to allow themes that support Caja to set their own style. CSS required for the desktop background to show and to keep the white text suitable for most backgrounds needs GTK_STYLE_PROVIDER_PRIORITY_APPLICATION so it is loaded separately from new file caja-desktop.css *Move all css items that must not be overridden by themes (most of them are for the desktop) to caja-desktop.css and keep those that are only needed when themes do not set them at all in caja.css
2016-11-28Fix restart loop when started without icons on the desktoplukefromdc1-1/+6
Fix for https://github.com/mate-desktop/caja/issues/686 Also checked in XFCE to make sure unkillable caja process did not return Note that the combination of no icons on the desktop with exit on last window will still trigger a restart loop just as it always has
2016-11-22move to GTK+3 (>= 3.14), drop libunique, GTK+2 code, and --with-gtk build ↵lukefromdc1-734/+19
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-11-11application: correct description of --force-desktop optionmonsta1-1/+1
2016-11-10application: remove unused functionmonsta1-57/+0
same as done upstream: https://git.gnome.org/browse/nautilus/commit/?id=41da60c3a7156e504f7cf89cea87be49ef75a89c it's not used after 7008129b5a16ceceafc3dd5868a8317b35561768
2016-11-08remove convert metadatalukefromdc1-93/+2
Apply https://git.gnome.org/browse/nautilus/commit/?id=87d24047f674ca941e2691602da2501945a82330
2016-10-23libunique builds: enable eject notificationslukefromdc1-2/+5
We no longer need to use any GtkApplication features for this so enable it in libunique builds too. Tested with and without libunique in GTK 3.22
2016-10-23Refactor notification code to remove duplicate functionlukefromdc1-28/+0
The desktop icon eject code required a function in libcaja-private so we no longer need it in caja-application.c
2016-10-22GtkApplication: Notify when ejected volumes safe to unpluglukefromdc1-2/+34
Notify users when an external drive is still writing data on attempt to eject, and again when drive is safe to unmount. Notifications behave as they do in Nemo when ejecting/unmounting a flash drive. Tested with GTK 3.22 and a known slow flash drive. This is in GtkApplication builds only, code is from Nemo. FIXME: build system does not limit libnotify dependency to GtkApplication builds and is rather improvised. Adding libnotify to CORE_MODULES via configure.ac did not work, and using Nemo's changes put -lnotify into CORE rather than ALL libs and that caused build failures on failure to link.
2016-10-22GtkApplication: fix "caja 3.0" messagelukefromdc1-1/+1
This text was borrowed from Nautilus 3.0 commits used in GtkApplication port, where all Nautilus references were changed to Caja
2016-10-14GTK2: Use emanuele-f 's patch for build failure, fix build w/o libuniquelukefromdc1-40/+40
Apply https://github.com/mate-desktop/caja/pull/658/commits/4b36a91af42d8efe0f594a95d28ab8448fd73b31 then fix the selectors in source files to use the boolean selectors for libunique
2016-10-14Fix missed selector change for separating GTK3 and libunique build optionslukefromdc1-0/+2
One selector was not updated in caja-location-bar.c to follow use or nonuse of libunique in GTK3 builds. Fixing this revealed need for a 3-way selector in one place in caja-application.c