aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-automation.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-04-09 07:13:37 +0800
committerXan Lopez <xan@src.gnome.org>2003-04-09 07:13:37 +0800
commit6869072199d751b46f6f7757aee792a9f0eca7fe (patch)
treec693ac5274c53a931337a1df812a32a2fb50336f /src/ephy-automation.c
parentb934ed62cfeb93b86c0f655eff39ff0de63ef7df (diff)
downloadgsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar
gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.gz
gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.bz2
gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.lz
gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.xz
gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.zst
gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.zip
Allow to launch the BME alone, rework some CORBA code, add a .desktop file
Allow to launch the BME alone, rework some CORBA code, add a .desktop file for the BME. Fixes #102477.
Diffstat (limited to 'src/ephy-automation.c')
-rw-r--r--src/ephy-automation.c35
1 files changed, 16 insertions, 19 deletions
diff --git a/src/ephy-automation.c b/src/ephy-automation.c
index 75829d444..014702762 100644
--- a/src/ephy-automation.c
+++ b/src/ephy-automation.c
@@ -27,15 +27,15 @@
#include <bonobo/bonobo-main.h>
#include <bonobo/bonobo-context.h>
-static CORBA_boolean
+static void
impl_ephy_automation_add_bookmark (PortableServer_Servant _servant,
const CORBA_char * url,
CORBA_Environment * ev);
-static CORBA_boolean
+static void
impl_ephy_automation_quit (PortableServer_Servant _servant,
const CORBA_boolean disableServer,
CORBA_Environment * ev);
-static CORBA_boolean
+static void
impl_ephy_automation_load_session (PortableServer_Servant _servant,
const CORBA_char * filename,
CORBA_Environment * ev);
@@ -80,7 +80,7 @@ ephy_automation_new (void)
return BONOBO_OBJECT (factory);
}
-static CORBA_boolean
+static void
impl_ephy_automation_loadurl (PortableServer_Servant _servant,
const CORBA_char * url,
const CORBA_char * geometry,
@@ -105,7 +105,7 @@ impl_ephy_automation_loadurl (PortableServer_Servant _servant,
res = session_autoresume (session);
/* no need to open the homepage,
* we did already open session windows */
- if (res && *url == '\0') return TRUE;
+ if (res && *url == '\0') return;
}
window = ephy_shell_get_active_window (ephy_shell);
@@ -113,7 +113,7 @@ impl_ephy_automation_loadurl (PortableServer_Servant _servant,
if (open_in_existing_tab && window != NULL)
{
ephy_window_load_url (window, url);
- return TRUE;
+ return;
}
if (*url == '\0')
@@ -142,47 +142,43 @@ impl_ephy_automation_loadurl (PortableServer_Servant _servant,
ephy_shell_new_tab (ephy_shell, window, NULL, load_page,
flags);
-
- return TRUE;
}
-static CORBA_boolean
+static void
impl_ephy_automation_add_bookmark (PortableServer_Servant _servant,
const CORBA_char * url,
CORBA_Environment * ev)
{
- CORBA_boolean retval = TRUE;
- return retval;
}
-static CORBA_boolean
+static void
impl_ephy_automation_quit (PortableServer_Servant _servant,
const CORBA_boolean disableServer,
CORBA_Environment * ev)
{
- CORBA_boolean retval = TRUE;
-
Session *session;
session = ephy_shell_get_session (ephy_shell);
session_close (session);
-
- return retval;
}
-static CORBA_boolean
+static void
impl_ephy_automation_load_session (PortableServer_Servant _servant,
const CORBA_char * filename,
CORBA_Environment * ev)
{
- CORBA_boolean retval = TRUE;
Session *session;
session = ephy_shell_get_session (ephy_shell);
session_load (session, filename);
+}
- return retval;
+static void
+impl_ephy_automation_open_bookmarks_editor (PortableServer_Servant _servant,
+ CORBA_Environment * ev)
+{
+ ephy_shell_show_bookmarks_editor (ephy_shell);
}
static void
@@ -200,6 +196,7 @@ ephy_automation_class_init (EphyAutomationClass *klass)
epv->addBookmark = impl_ephy_automation_add_bookmark;
epv->quit = impl_ephy_automation_quit;
epv->loadSession = impl_ephy_automation_load_session;
+ epv->openBookmarksEditor = impl_ephy_automation_open_bookmarks_editor;
}
static void