aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-event.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-11-26 22:57:49 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-11-26 22:57:49 +0800
commit43cbcd8b63c9f876d78daf14883134080b4cc937 (patch)
tree5f51230c0c8519f09ddd8622b38ef6434fe1268d /e-util/e-event.c
parente77cfd7e4008635870949d708133a848294dd6fd (diff)
downloadgsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.tar
gsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.tar.gz
gsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.tar.bz2
gsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.tar.lz
gsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.tar.xz
gsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.tar.zst
gsoc2013-evolution-43cbcd8b63c9f876d78daf14883134080b4cc937.zip
get the image directly from the icon factory
2004-11-26 JP Rosevear <jpr@novell.com> * e-gui-utils.c (e_create_image_widget): get the image directly from the icon factory * e-config.c: insert debug defines so we can turn spew on and off * e-event.c: insert debug defines so we can turn spew on and off * e-menu.c: insert debug defines so we can turn spew on and off * e-plugin.c: insert debug defines and set to off for now * e-popup.c: insert debug defines so we can turn spew on and off (e_popup_create_menu): get the image directly from the icon factory svn path=/trunk/; revision=27997
Diffstat (limited to 'e-util/e-event.c')
-rw-r--r--e-util/e-event.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/e-util/e-event.c b/e-util/e-event.c
index 44f9be5c85..156d0ae839 100644
--- a/e-util/e-event.c
+++ b/e-util/e-event.c
@@ -44,6 +44,8 @@
#include <libgnome/gnome-i18n.h>
+#define d(x)
+
struct _EEventFactory {
struct _EEventFactory *next, *prev;
@@ -121,7 +123,7 @@ ep_target_free(EEvent *ep, EEventTarget *t)
static void
ep_class_init(GObjectClass *klass)
{
- printf("EEvent class init %p '%s'\n", klass, g_type_name(((GObjectClass *)klass)->g_type_class.g_type));
+ d(printf("EEvent class init %p '%s'\n", klass, g_type_name(((GObjectClass *)klass)->g_type_class.g_type)));
klass->finalize = ep_finalise;
((EEventClass *)klass)->target_free = ep_target_free;
@@ -255,7 +257,7 @@ e_event_emit(EEvent *emp, const char *id, EEventTarget *target)
struct _EEventPrivate *p = emp->priv;
GSList *events;
- printf("emit event %s\n", id);
+ d(printf("emit event %s\n", id));
g_assert(emp->target == NULL);
@@ -284,7 +286,7 @@ e_event_emit(EEvent *emp, const char *id, EEventTarget *target)
struct _event_info *info = events->data;
EEventItem *event = info->item;
- printf("event '%s' mask %08x target %08x\n", event->id, event->enable, target->mask);
+ d(printf("event '%s' mask %08x target %08x\n", event->id, event->enable, target->mask));
if (event->enable & target->mask)
continue;
@@ -466,7 +468,7 @@ emph_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root)
g_return_val_if_fail(((EEventHookClass *)G_OBJECT_GET_CLASS(eph))->event != NULL, -1);
- printf("loading event hook\n");
+ d(printf("loading event hook\n"));
if (((EPluginHookClass *)emph_parent_class)->construct(eph, ep, root) == -1)
return -1;
@@ -510,7 +512,7 @@ emph_class_init(EPluginHookClass *klass)
/* this is actually an abstract implementation but list it anyway */
klass->id = "org.gnome.evolution.event:1.0";
- printf("EEventHook: init class %p '%s'\n", klass, g_type_name(((GObjectClass *)klass)->g_type_class.g_type));
+ d(printf("EEventHook: init class %p '%s'\n", klass, g_type_name(((GObjectClass *)klass)->g_type_class.g_type)));
((EEventHookClass *)klass)->target_map = g_hash_table_new(g_str_hash, g_str_equal);
}