summaryrefslogtreecommitdiff
path: root/src/nautilus-main.c
Commit message (Collapse)AuthorAgeFilesLines
* main: Call g_set_prgname() with app IDErnestas Kulik2018-12-141-1/+1
| | | | | As per https://gnome.pages.gitlab.gnome.org/gtk/gtk/gtk-migrating-3-to-4.html#id-1.6.4.3.13.
* main: Remove leftover xmp_init()Chris Mayo2018-09-061-3/+0
| | | | Use of exempi was removed in 23eacd3155.
* application: Remove custom allocation default sizeCarlos Soriano2018-02-121-14/+0
| | | | | | We no longer have the desktop around, so seems this is not necessary anymore (I'm pretty sure this wouldn't be necessary nowadays either way...).
* general: Remove exempi and exempi-xmpCarlos Soriano2017-11-201-4/+0
| | | | Since now we use gexiv2 these are not longer necessary.
* general: run uncrustifyCarlos Soriano2016-08-291-38/+40
| | | | | | | | And make the style of Nautilus the same for all files. Hopefully we can fix all the style issues we can find in the next days, so expect a little of movement on this. https://bugzilla.gnome.org/show_bug.cgi?id=770564
* Port from intltoolErnestas Kulik2016-08-031-1/+1
| | | | | | | | gettext has been continuously improving, up to a point where intltool can be deprecated in favor of it. This commit ports the project files to use upstream gettext. https://bugzilla.gnome.org/show_bug.cgi?id=769362
* general: merge libnautilus-private to srcwip/csoriano/private-to-srcCarlos Soriano2016-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix make distcheck. Although libnautilus-private seem self contained, it was actually depending on the files on src/ for dnd. Not only that, but files in libnautilus-private also were depending on dnd files, which you can guess it's wrong. Before the desktop split, this was working because the files were distributed, but now was a problem since we reestructured the code, and now nautilus being a library make distcheck stop working. First solution was try to fix this inter dependency of files, but at some point I realized that there was no real point on splitting some of those files, because for example, is perfectly fine for dnd to need to access the window functions, and it's perfectly fine for the widgets in the private library to need to access to all dnd functions. So seems to me the private library of nautilus is somehow an artificial split, which provides more problems than solutions. We needed libnautilus-private to have a private library that we could isolate from extensions, but I don't think it worth given the problems it provides, and also, this not so good logical split. Right now, since with the desktop split we created a libnautilus to be used by the desktop part of nautilus, extensions have access to all the API of nautilus. We will think in future how this can be handled if we want. So for now, merge the libnautilus-private into src, and let's rethink a better logic to split the code and the private parts of nautilus than what we had. Thanks a lot to Rafael Fonseca for helping in get this done. https://bugzilla.gnome.org/show_bug.cgi?id=765543
* desktop: move to a different folderCarlos Soriano2016-04-151-1/+2
| | | | | | For a better structured hierarchy. https://bugzilla.gnome.org/show_bug.cgi?id=712620
* general: remove vim modelinesCarlos Soriano2016-04-041-1/+0
| | | | | | | | | | | | | Vim and emacs modelines are used to specify some of the code style in the code. However, this is misleading and poorly supported since nautilus had a mix of code style for some time. Also, the mode lines doesn't specify the whole code style, so we will need to use a different tool as well to specify the whole code style. For that, we can just use a different tool for everything. So remove the mode lines, and in a short future we will reestyle the nautilus code to have a single code style, and use a tool like editorconfig to specify the whole code style.
* main: remove g_desktop_app_info_set_desktop_envRazvan Chitu2016-03-011-3/+0
| | | | | | The environment variable used in present is XDG_CURRENT_DESKTOP. https://bugzilla.gnome.org/show_bug.cgi?id=762248
* Don't mention FSF addressCosimo Cecchi2014-02-171-2/+1
| | | | | | Use the website instead. https://bugzilla.gnome.org/show_bug.cgi?id=721518
* application: move nautilus_application_new() to its own functionCosimo Cecchi2013-02-271-5/+1
|
* main: don't set G_APPLICATION_IS_SERVICECosimo Cecchi2012-12-071-1/+1
| | | | | | | This is not actually necessary for the inactivity timeout to work, and breaks command line activation. https://bugzilla.gnome.org/show_bug.cgi?id=689854
* application: centralize dbus service handling into GApplicationCosimo Cecchi2012-12-061-2/+9
| | | | | Instead of each service installing its own timeout, use the service features of GApplication to do this automatically.
* all: remove deprecated g_type_init()Cosimo Cecchi2012-10-261-2/+0
| | | | Now that we depend on GLib master anyway.
* application: don't handle the singleton ourselvesCosimo Cecchi2012-04-251-2/+4
| | | | | | Since GIO has g_application_get_default() now, there's no need to keep track of the singleton ourselves. Remove the _get_singleton() method from NautilusApplication.
* all: don't call g_thread_init()Cosimo Cecchi2011-10-181-1/+0
| | | | GLib does that for us now.
* all: don't return a reference when getting the application singletonCosimo Cecchi2011-06-161-1/+1
| | | | | This simplifies the code a bit. Also, remove the useless "app" property on NautilusWindow while we're at it.
* all: silence new warnings from GCC 4.6Cosimo Cecchi2011-01-251-1/+1
| | | | | | GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly.
* main: remove unneeded codeCosimo Cecchi2011-01-111-3/+0
|
* debug: fix build without debugging support (#639107)Cosimo Cecchi2011-01-101-2/+0
|
* smclient: remove XSMP supportCosimo Cecchi2010-12-201-5/+0
| | | | | | | | | | EggSmClient is not well-maintained, and it doesn't seem like it will ever hit GTK+, and the overall implementation seems to be poorly tested and buggy. Moreover, moving to 3.0 with nautilus being an application, it makes less sense to have it save opened windows state, as it might not be always running at all.
* main: don't hook up with nautilus-debug-logCosimo Cecchi2010-12-021-172/+7
|
* application: properly handle --no-default-windowCosimo Cecchi2010-10-301-19/+0
|
* application: perform checks in NautilusApplication if requested soCosimo Cecchi2010-10-301-25/+5
|
* application: move other init/cleanup functions in the app classCosimo Cecchi2010-10-301-16/+2
| | | | Instead of mixing them between nautilus-main and nautilus-application
* main: adapt to GtkApplication changesCosimo Cecchi2010-10-301-234/+21
| | | | | This code should be much easier now that window lifecycle is handled by GtkApplication itself.
* application: go back to libunique for nowCosimo Cecchi2010-10-301-1/+1
| | | | | While GApplication API settles. Also, porting to the new GApplication would require quite some refactoring.
* [src] don't use GtkObjectCosimo Cecchi2010-09-301-4/+4
|
* convert exit with last window to gsettingsAlexander Larsson2010-07-231-4/+3
|
* Convert desktop preferences to gsettingsAlexander Larsson2010-07-231-7/+0
|
* Port to GApplication.Cosimo Cecchi2010-06-181-1/+1
| | | | Drop the libunique dependency.
* Free "remaining" returned from GOptionAlexander Larsson2009-09-071-1/+2
|
* Remove all traces of former nautilus metadata codeAlexander Larsson2009-06-231-1/+0
|
* Support daemon mode (exit_with_last_window preference)JF Ding2009-05-251-1/+26
| | | | | This can be used if you want to run nautilus just to handle volume monitoring, etc.
* Fix distcheckCosimo Cecchi2009-05-051-1/+4
|
* Update EggSMClient from libeggCosimo Cecchi2009-04-211-3/+1
| | | | | | | Re-apply the reverted string freeze break commit now that we branched. Don't check if the desktop file exists ourselves, as the Egg code will take care of that itself. Thanks to Christian Persch (#576619).
* Add nautilus_get_accel_map_fileAlexander Larsson2009-04-081-0/+2
| | | | | | | | | | | | | | | | | | | 2009-04-08 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-utilities.[ch]: * libnautilus-private/nautilus-file-utilities.h: Add nautilus_get_accel_map_file * src/nautilus-application.[ch]: Load accel map on startup, queue save when it changes. * src/nautilus-main.c: Save accel map on clean exit if it is dirty. Patch from Holger Berndt <berndth@gmx.de> svn path=/trunk/; revision=15169
* Set the glibc MMAP limit to a static value to avoid the dynamic limitAlexander Larsson2009-02-171-0/+17
| | | | | | | | | | | | | | | 2009-02-17 Alexander Larsson <alexl@redhat.com> * configure.in: * src/nautilus-main.c: Set the glibc MMAP limit to a static value to avoid the dynamic limit hitting bad behaviour due to the large temporary allocations when creating the desktop background. It would raise the limit to a large value causing several large allocations on the heap which are then not returned to the OS. svn path=/trunk/; revision=14963
* Bug 568503 – Misspelled word "progam"->"program"A. Walton2009-01-211-1/+1
| | | | | | | | | | 2009-01-20 A. Walton <awalton@gnome.org> * src/nautilus-main.c (main): Bug 568503 – Misspelled word "progam"->"program" svn path=/trunk/; revision=14871
* UpdateNAUTILUS_2_25_1Alexander Larsson2008-12-011-1/+3
| | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * POTFILES.in: * POTFILES.skip: Update 2008-12-01 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: Don't crash if nautilus.desktop is not installed (i.e. at make check) svn path=/trunk/; revision=14793
* Plug two memory leaks.Cosimo Cecchi2008-11-181-0/+2
| | | | | | | | | | 2008-11-18 Cosimo Cecchi <cosimoc@gnome.org> * src/nautilus-main.c: (main): * src/nautilus-window-slot.c: (nautilus_window_slot_dispose): Plug two memory leaks. svn path=/trunk/; revision=14786
* Make sure uri list is NULL terminatedAlexander Larsson2008-10-091-0/+1
| | | | | | | | | | 2008-10-09 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c (main): Make sure uri list is NULL terminated svn path=/trunk/; revision=14713
* Don't set application name twice (avoids warning)Alexander Larsson2008-10-061-1/+0
| | | | | | | | | | 2008-10-06 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: Don't set application name twice (avoids warning) svn path=/trunk/; revision=14691
* Remove unnecessary includes of libgnomeCosimo Cecchi2008-10-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-06 Cosimo Cecchi <cosimoc@gnome.org> * libnautilus-private/nautilus-customization-data.c: * libnautilus-private/nautilus-dnd.c: * libnautilus-private/nautilus-file-utilities.c: * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-global-preferences.c: * libnautilus-private/nautilus-icon-dnd.c: * libnautilus-private/nautilus-icon-private.h: * libnautilus-private/nautilus-monitor.c: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-ditem-page.c: * src/file-manager/fm-error-reporting.h: * src/file-manager/fm-list-view.c: * src/file-manager/fm-properties-window.c: * src/nautilus-history-sidebar.c: * src/nautilus-image-properties-page.c: * src/nautilus-information-panel.c: * src/nautilus-location-bar.c: * src/nautilus-location-entry.c: * src/nautilus-main.c: * src/nautilus-navigation-window-menus.c: * src/nautilus-navigation-window.c: * src/nautilus-places-sidebar.c: * src/nautilus-window-manage-views.c: * src/nautilus-window-toolbars.c: Remove unnecessary includes of libgnome svn path=/trunk/; revision=14689
* Renamed nautilus.desktop to nautilus-browser.desktop (this is what itAlexander Larsson2008-10-021-79/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-02 Alexander Larsson <alexl@redhat.com> * Makefile.am: * nautilus-browser.desktop.in.in: * nautilus.desktop.in.in: Renamed nautilus.desktop to nautilus-browser.desktop (this is what it does, launch a browser window with no desktop) Created new NoDisplay nautilus.desktop file that is used for autostarting nautilus from gnome-session. * configure.in: Pull in the right cflags/libs for libegg Add nautilus-browser.desktop.in to output * cut-n-paste-code/libegg/Makefile.am: * cut-n-paste-code/libegg/eggdesktopfile.[ch]: Added. * cut-n-paste-code/libegg/eggsmclient-private.h: Added. * cut-n-paste-code/libegg/eggsmclient-xsmp.c: Added. * cut-n-paste-code/libegg/eggsmclient.[ch]: Added. Import eggsmclient from libegg. Save data in desktop file instead of a separate file as per the new gnome-session. * cut-n-paste-code/libegg/eggtreemultidnd.c: Minor update from libegg * src/nautilus-application.[ch]: Use eggsmclient for session handling instead of gnome-client. * src/nautilus-main.c: Don't use gnome_program, instead use eggsmsession and g_option_context_parse directly. This removes support for some internal commandline arguments that are not used anymore. svn path=/trunk/; revision=14680
* Remove direct deps on bonobo, bonobo-activation, orbit2,Alexander Larsson2008-10-011-105/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-01 Alexander Larsson <alexl@redhat.com> * configure.in: Remove direct deps on bonobo, bonobo-activation, orbit2, startup-notification Add dependency on libunique * src/Makefile.am: * src/nautilus-shell-interface.idl: * src/nautilus-shell.[ch]: Remove NautilusShell * src/nautilus-application.[ch]: Make NautilusApplication a normal GObject Remove NautilusShell use. Implement unique application functionallity using libunique Remove manual startup notification handling (mostly handled by libunique) * src/nautilus-main.c: Remove bonobo initialization Remove manual startup notification handling Move command line arg to uri parsing here Remove weird idle handling now that we don't use bonobo anymore * libnautilus-private/nautilus-undo-manager.c: * libnautilus-private/nautilus-undo-manager.h: * libnautilus-private/nautilus-undo.c: * src/nautilus-window-private.h: Remove all leftover spurious use of bonobo * src/nautilus-window-slot.h: * src/nautilus-desktop-window.c: * src/nautilus-location-dialog.c: * src/nautilus-window-bookmarks.c: Add required includes of gi18n.h svn path=/trunk/; revision=14677
* Detect restart requests by the session manager (i.e. after crashes), onlyChristian Neumair2008-08-311-0/+15
| | | | | | | | | | 2008-08-31 Christian Neumair <cneumair@gnome.org> * src/nautilus-main.c (main): Detect restart requests by the session manager (i.e. after crashes), only show default window if no desktop window is shown. Fixes #99221. svn path=/trunk/; revision=14546
* Initialize autostart to FALSE.Christian Neumair2008-05-221-0/+2
| | | | | | | | | 2008-05-22 Christian Neumair <cneumair@gnome.org> * src/nautilus-main.c (main): Initialize autostart to FALSE. svn path=/trunk/; revision=14183
* Move all of Nautilus to single Gtk+ includes, because Mitch says so.A. Walton2008-05-211-4/+1
| | | | | | | | | | | 2008-05-21 A. Walton <awalton@gnome.org> * */*.[ch]: Move all of Nautilus to single Gtk+ includes, because Mitch says so. Closes Bug #530315. svn path=/trunk/; revision=14182