aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-01-29 01:19:34 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-01-29 01:19:34 +0800
commit533d59e2cd30ba79a99a71907ffdda65505e633a (patch)
treeba6f611ce6a1bb9d3dfb98a6a6a670cf99a55b9d /shell/e-shell.h
parent3e339d5ecc63d912840c6f885460c58f60eb85e0 (diff)
downloadgsoc2013-evolution-533d59e2cd30ba79a99a71907ffdda65505e633a.tar.gz
gsoc2013-evolution-533d59e2cd30ba79a99a71907ffdda65505e633a.tar.zst
gsoc2013-evolution-533d59e2cd30ba79a99a71907ffdda65505e633a.zip
Add unique-1.0 requirement (blessed external dependency).
Make EShell a subclass of UniqueApp and handle single-instance negotiation. When another Evolution process is running: - Running "evolution" will simply present the existing windows. - Running "evolution -c <view>" will open a shell window set to <view>. - Running "evolution <uri>" will open an appropriate window for <uri>. The second process will then terminate immediately. svn path=/branches/kill-bonobo/; revision=37147
Diffstat (limited to 'shell/e-shell.h')
-rw-r--r--shell/e-shell.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/shell/e-shell.h b/shell/e-shell.h
index 1503ca776b..9e30550283 100644
--- a/shell/e-shell.h
+++ b/shell/e-shell.h
@@ -28,6 +28,7 @@
#ifndef E_SHELL_H
#define E_SHELL_H
+#include <unique/unique.h>
#include <shell/e-shell-common.h>
#include <shell/e-shell-module.h>
#include <shell/e-shell-settings.h>
@@ -66,12 +67,12 @@ typedef enum _EShellLineStatus EShellLineStatus;
* functions below.
**/
struct _EShell {
- GObject parent;
+ UniqueApp parent;
EShellPrivate *priv;
};
struct _EShellClass {
- GObjectClass parent_class;
+ UniqueAppClass parent_class;
};
GType e_shell_get_type (void);
@@ -85,9 +86,10 @@ EShellModule * e_shell_get_module_by_name (EShell *shell,
EShellModule * e_shell_get_module_by_scheme (EShell *shell,
const gchar *scheme);
EShellSettings *e_shell_get_shell_settings (EShell *shell);
-GtkWidget * e_shell_create_shell_window (EShell *shell);
-gboolean e_shell_handle_uri (EShell *shell,
- const gchar *uri);
+GtkWidget * e_shell_create_shell_window (EShell *shell,
+ const gchar *view_name);
+guint e_shell_handle_uris (EShell *shell,
+ const gchar **uris);
void e_shell_send_receive (EShell *shell,
GtkWindow *parent);
gboolean e_shell_get_network_available (EShell *shell);