aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window.h
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-11-13 13:56:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-11-13 13:56:14 +0800
commit7a5ecfbb6c09b5350e5ce0600f42098eb6a2f5de (patch)
tree4fa518fa98738666004beb7a329560a579396227 /shell/e-shell-window.h
parent35b15cb0516407c8ab0bd3ba403e04dffaaef0a1 (diff)
downloadgsoc2013-evolution-7a5ecfbb6c09b5350e5ce0600f42098eb6a2f5de.tar.gz
gsoc2013-evolution-7a5ecfbb6c09b5350e5ce0600f42098eb6a2f5de.tar.zst
gsoc2013-evolution-7a5ecfbb6c09b5350e5ce0600f42098eb6a2f5de.zip
New signal "component_changed". (class_init): Install. (switch_view):
* e-shell-window.c: New signal "component_changed". (class_init): Install. (switch_view): Emit. (e_shell_window_new): Call e_user_creatable_items_handler_attach_menus() to attach the "New..." menus. (e_shell_window_peek_current_component_id): New. (e_shell_window_peek_shell): Add precondition. (e_shell_window_peek_current_component_id): Likewise. (e_shell_window_peek_bonobo_ui_component): Likewise. * e-user-creatable-items-handler.c: New. * e-user-creatable-items-handler.h: New. * e-shell-window.h: #include <bonobo/bonobo-ui-component.h>. * e-shell.c (struct _EShellPrivate): Add member user_creatable_items_handler. (e_shell_get_user_creatable_items_handler): Remove. (e_shell_peek_user_creatable_items_handler): New. * Evolution-Component.idl (GNOME.Evolution.RequestCreateItem): New method. (GNOME.Evolution.creatableItems): New attribute. * e-shell-user-creatable-items-handler.c: Remove. * e-shell-user-creatable-items-handler.h: Remove. svn path=/trunk/; revision=23314
Diffstat (limited to 'shell/e-shell-window.h')
-rw-r--r--shell/e-shell-window.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-window.h b/shell/e-shell-window.h
index 2d1848b034..01c231c329 100644
--- a/shell/e-shell-window.h
+++ b/shell/e-shell-window.h
@@ -24,6 +24,7 @@
#define _E_SHELL_WINDOW_H_
#include <bonobo/bonobo-window.h>
+#include <bonobo/bonobo-ui-component.h>
#define E_TYPE_SHELL_WINDOW (e_shell_window_get_type ())
#define E_SHELL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_SHELL_WINDOW, EShellWindow))
@@ -44,6 +45,8 @@ struct _EShellWindow {
struct _EShellWindowClass {
BonoboWindowClass parent_class;
+
+ void (* component_changed) (EShellWindow *window);
};
@@ -55,8 +58,9 @@ GType e_shell_window_get_type (void);
GtkWidget *e_shell_window_new (EShell *shell,
const char *component_id);
-void e_shell_window_switch_to_component (EShellWindow *shell,
- const char *component_id);
+void e_shell_window_switch_to_component (EShellWindow *shell,
+ const char *component_id);
+const char *e_shell_window_peek_current_component_id (EShellWindow *shell);
EShell *e_shell_window_peek_shell (EShellWindow *window);
BonoboUIComponent *e_shell_window_peek_bonobo_ui_component (EShellWindow *window);