aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-user-creatable-items-handler.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2004-04-09 23:46:00 +0800
committerDan Winship <danw@src.gnome.org>2004-04-09 23:46:00 +0800
commit7f2badb024128819fbb1d2656057c5e476100cd8 (patch)
treec13bcea14f62769857b72307f6eef59f183babaa /shell/e-user-creatable-items-handler.h
parentfabe4f1d8ae42c7bf8f1674c98ef4103e2e53bf0 (diff)
downloadgsoc2013-evolution-7f2badb024128819fbb1d2656057c5e476100cd8.tar.gz
gsoc2013-evolution-7f2badb024128819fbb1d2656057c5e476100cd8.tar.zst
gsoc2013-evolution-7f2badb024128819fbb1d2656057c5e476100cd8.zip
Change this a lot. Now each component will maintain its own
* e-user-creatable-items-handler.c: Change this a lot. Now each component will maintain its own EUserCreatableItemsHandler and merge the button and menus in and out of the UI as its controls are activated and deactivated. (This lets the connector component display the correct default for the New button). Also, update to the Product Design Team's new organization (separating object types from folder types) * e-shell.c: Remove all creatable_items_handler references * e-shell-window.c (e_shell_window_new): Remove creatable_items_handler reference * Makefile.am: Move e-user-creatable-items-handler from evolution to libeshell, and make libeshell depend on libemiscwidgets (for the combo button) * Evolution-Component.idl: add another field to CreatableItemType so we can distinguish object types from folder types. svn path=/trunk/; revision=25379
Diffstat (limited to 'shell/e-user-creatable-items-handler.h')
-rw-r--r--shell/e-user-creatable-items-handler.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/shell/e-user-creatable-items-handler.h b/shell/e-user-creatable-items-handler.h
index d6f12e3973..f7be31894e 100644
--- a/shell/e-user-creatable-items-handler.h
+++ b/shell/e-user-creatable-items-handler.h
@@ -1,7 +1,7 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
-/* e-shell-user-creatable-items-handler.h
+/* e-user-creatable-items-handler.h
*
- * Copyright (C) 2001 Ximian, Inc.
+ * Copyright (C) 2001-2004 Novell, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@@ -25,6 +25,7 @@
#include <glib-object.h>
#include <bonobo/bonobo-ui-component.h>
+#include <bonobo/bonobo-window.h>
#ifdef __cplusplus
extern "C" {
@@ -43,9 +44,6 @@ typedef struct _EUserCreatableItemsHandlerPrivate EUserCreatableItemsHandlerPriv
typedef struct _EUserCreatableItemsHandlerClass EUserCreatableItemsHandlerClass;
-#include "e-shell-window.h"
-
-
struct _EUserCreatableItemsHandler {
GObject parent;
@@ -57,14 +55,11 @@ struct _EUserCreatableItemsHandlerClass {
};
-GtkType e_user_creatable_items_handler_get_type (void);
-EUserCreatableItemsHandler *e_user_creatable_items_handler_new (EComponentRegistry *registry);
+GType e_user_creatable_items_handler_get_type (void);
+EUserCreatableItemsHandler *e_user_creatable_items_handler_new (const char *component_alias);
-void e_user_creatable_items_handler_add_component (EUserCreatableItemsHandler *handler,
- const char *id,
- GNOME_Evolution_Component component);
-void e_user_creatable_items_handler_attach_menus (EUserCreatableItemsHandler *handler,
- EShellWindow *window);
+void e_user_creatable_items_handler_activate (EUserCreatableItemsHandler *handler,
+ BonoboUIComponent *ui_component);
#ifdef __cplusplus
}