aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-application.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge EphyApplication into Ephy(Embed)ShellXan Lopez2011-06-301-449/+0
| | | | | | | | | | | We want to use EphyApplication from embed/ too, so instead of following the EphyEmbedShell/EphyShell pattern just fold the code into the Shell itself. This makes sense since both classes have basically the same function, and we can easily leave the non-embed code in EphyShell and move to EphyEmbedShell the bits we want to be global. The better name would be EphyCoreApplication/EphyApplication for the resulting object, but we can do this later.
* ephy-application: use our private instance propertyXan Lopez2011-06-291-1/+15
| | | | | | Instead of relying on ephy-file-helpers global method. Down the road we want to do this everywhere, but first we need some refactoring to be able to use EphyApplication outside of src/.
* ephy-application: set G_APPLICATION_NON_UNIQUE inside the objectXan Lopez2011-06-291-1/+6
| | | | Based on the private-instance paramater.
* ephy-application: add a private-instance propertyXan Lopez2011-06-291-1/+59
| | | | | It does not do much at the moment, but we pass the information from ephy-main.c to the app.
* Mark string parameters in ephy_session_queue_command() as constClaudio Saavedra2011-06-271-3/+3
| | | | | | | ephy_session_queue_command() doesn't take over the strings it receives, so mark these as const for clarity. https://bugzilla.gnome.org/show_bug.cgi?id=622903
* Ensure startup_context is not NULL before freeing itClaudio Saavedra2011-06-271-1/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=622903
* Implement GtkApplication based activation and uniquenessClaudio Saavedra2011-06-241-0/+369
This replaces the existing dbus-glib activation and uniqueness code. The changes are kept to the minimum necessary to make all the features work, but there are still some optimizations possible (like doing most of the initialization in ephy_application_startup() when we know we are not remoting). These changes are left for later to avoid making this patch huge. Command-line parameter parsing is done in the main method and parameters are passed to the application through a EphyApplicationStartupContext structure, which is later passed as a GVariant to the primare instance. This way we avoid moving the GOption code out of the place where it's intended to run: in the main() method. Based in work by Alexandre Mazari. https://bugzilla.gnome.org/show_bug.cgi?id=637334