From c59caf515927cdb693f63621b65c92a44ea50d1b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 16 Apr 2001 22:39:58 +0000 Subject: Changed some comments here. 2001-04-16 Christopher James Lahey * configure.in: Changed some comments here. * gal/Makefile.am (libgal_la_LIBADD): Added widgets/e-categories-master-list-array.lo and widgets/e-categories-master-list.lo. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added widgets/e-categories-master-list-array.c and widgets/e-categories-master-list.c. (libwidgetsinclude_HEADERS): Added widgets/e-categories-master-list-array.h and widgets/e-categories-master-list.h. * gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-array.h, gal/widgets/e-categories-master-list.c, gal/widgets/e-categories-master-list.h: Added ECategoriesMasterList and a simple local implementation of it. * gal/widgets/e-categories.c, gal/widgets/e-categories.h: Privatized this. Switched to using ECategoriesMasterList. (table_right_click): Added a right click menu to add and remove things to and from the global category list. * gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h: Fixed some comments and formatting. * gal/widgets/e-popup-menu.h (E_POPUP_SEPARATOR, E_POPUP_TERMINATOR): Added these #defines. svn path=/trunk/; revision=9392 --- widgets/misc/e-gui-utils.c | 10 ++++++---- widgets/misc/e-gui-utils.h | 25 +++++++++++++++---------- widgets/misc/e-popup-menu.h | 3 +++ 3 files changed, 24 insertions(+), 14 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/e-gui-utils.c b/widgets/misc/e-gui-utils.c index aef2f6191b..b92c155f59 100644 --- a/widgets/misc/e-gui-utils.c +++ b/widgets/misc/e-gui-utils.c @@ -3,19 +3,21 @@ * GUI utility functions * * Author: - * Miguel de Icaza (miguel@helixcode.com) + * Miguel de Icaza * - * (C) 1999 Miguel de Icaza - * (C) 2000 Helix Code, Inc. + * Copyright (C) 1999 Miguel de Icaza + * Copyright (C) 2000, 2001 Ximian, Inc. */ #include + +#include "e-gui-utils.h" + #include #include #include #include #include #include -#include "e-gui-utils.h" void e_notice (GtkWindow *window, const char *type, const char *format, ...) diff --git a/widgets/misc/e-gui-utils.h b/widgets/misc/e-gui-utils.h index d11d0a77fb..8a04ee24ae 100644 --- a/widgets/misc/e-gui-utils.h +++ b/widgets/misc/e-gui-utils.h @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #ifndef GAL_GUI_UTILS_H #define GAL_GUI_UTILS_H @@ -8,16 +9,20 @@ BEGIN_GNOME_DECLS -void e_popup_menu (GtkMenu *menu, GdkEvent *event); -void e_auto_kill_popup_menu_on_hide (GtkMenu *menu); -void e_notice (GtkWindow *window, const char *type, const char *format, ...); -void e_container_foreach_leaf (GtkContainer *container, - GtkCallback callback, - gpointer closure); -void e_container_focus_nth_entry (GtkContainer *container, - int n); -gint e_container_change_tab_order (GtkContainer *container, - GList *widgets); +void e_popup_menu (GtkMenu *menu, + GdkEvent *event); +void e_auto_kill_popup_menu_on_hide (GtkMenu *menu); +void e_notice (GtkWindow *window, + const char *type, + const char *format, + ...); +void e_container_foreach_leaf (GtkContainer *container, + GtkCallback callback, + gpointer closure); +void e_container_focus_nth_entry (GtkContainer *container, + int n); +gint e_container_change_tab_order (GtkContainer *container, + GList *widgets); END_GNOME_DECLS diff --git a/widgets/misc/e-popup-menu.h b/widgets/misc/e-popup-menu.h index 5105424a6a..26e06476b3 100644 --- a/widgets/misc/e-popup-menu.h +++ b/widgets/misc/e-popup-menu.h @@ -8,6 +8,9 @@ BEGIN_GNOME_DECLS +#define E_POPUP_SEPARATOR { "", NULL, (NULL), NULL, 0 } +#define E_POPUP_TERMINATOR { NULL, NULL, (NULL), NULL, 0 } + typedef struct _EPopupMenu EPopupMenu; struct _EPopupMenu { -- cgit