diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-06-25 03:04:04 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2011-06-27 21:29:46 +0800 |
commit | d40bac577b628a3db8ef90f8a862b80e8cb729c2 (patch) | |
tree | a5c838f14966c1ba463667953a47035b86237774 /src/ephy-activation.c | |
parent | 795fe5c4213809c8d776843fab6dcc31848e8871 (diff) | |
download | gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.tar gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.tar.gz gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.tar.bz2 gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.tar.lz gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.tar.xz gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.tar.zst gsoc2013-epiphany-d40bac577b628a3db8ef90f8a862b80e8cb729c2.zip |
Drop all dbus-glib code
We still need to provide equivalent ways to activate epiphany, but we
will use GActions instead.
https://bugzilla.gnome.org/show_bug.cgi?id=622903
Diffstat (limited to 'src/ephy-activation.c')
-rw-r--r-- | src/ephy-activation.c | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/src/ephy-activation.c b/src/ephy-activation.c deleted file mode 100644 index 802ca4bd6..000000000 --- a/src/ephy-activation.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright © 2005 Gustavo Gama - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - */ - -#include "config.h" - -#include "ephy-activation.h" - -#include "ephy-settings.h" -#include "ephy-shell.h" -#include "ephy-session.h" -#include "ephy-prefs.h" -#include "ephy-debug.h" - -static gboolean -session_queue_command (EphySessionCommand command, - char *arg, - char **args, - guint startup_id, - GError **error) -{ - EphyShell *shell; - EphySession *session; - - shell = ephy_shell_get_default (); - if (shell == NULL) - { - g_set_error (error, - g_quark_from_static_string ("ephy-activation-error"), - 0, - "Shutting down." /* FIXME i18n & better string */); - return FALSE; - } - - session = EPHY_SESSION (ephy_shell_get_session (ephy_shell_get_default())); - g_assert (session != NULL); - - ephy_session_queue_command (session, command, arg, args, - (guint32) startup_id, FALSE); - - return TRUE; -} - -gboolean -ephy_activation_load_uri_list (EphyDbus *ephy_dbus, - char **uris, - char *options, - guint startup_id, - GError **error) -{ - char *new_options; - - new_options = g_strconcat (options, "external,", NULL); - return session_queue_command (EPHY_SESSION_CMD_OPEN_URIS, - new_options, uris, startup_id, error); - g_free (new_options); -} - -gboolean -ephy_activation_load_session (EphyDbus *ephy_dbus, - char *session_name, - guint startup_id, - GError **error) -{ - return session_queue_command (EPHY_SESSION_CMD_LOAD_SESSION, - session_name, NULL, startup_id, error); -} - -gboolean -ephy_activation_open_bookmarks_editor (EphyDbus *ephy_dbus, - guint startup_id, - GError **error) -{ - if (g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN, - EPHY_PREFS_LOCKDOWN_BOOKMARK_EDITING)) - { - g_set_error (error, - g_quark_from_static_string ("ephy-activation-error"), - 0, - "Bookmarks editing is locked down."); - - return FALSE; - } - - return session_queue_command (EPHY_SESSION_CMD_OPEN_BOOKMARKS_EDITOR, - NULL, NULL, startup_id, error); -} |