aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2001-01-10 07:55:13 +0800
committerChris Toshok <toshok@src.gnome.org>2001-01-10 07:55:13 +0800
commitf75e9f44f928347bb280e927de94e861dcf3260a (patch)
tree0875821393161e6f61210a6ad6597770f33a2ef7 /addressbook
parent289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb (diff)
downloadgsoc2013-evolution-f75e9f44f928347bb280e927de94e861dcf3260a.tar.gz
gsoc2013-evolution-f75e9f44f928347bb280e927de94e861dcf3260a.tar.zst
gsoc2013-evolution-f75e9f44f928347bb280e927de94e861dcf3260a.zip
connect with the EAddressbookView's status_message signal.
2001-01-09 Chris Toshok <toshok@helixcode.com> * gui/component/addressbook.c (addressbook_factory_new_control): connect with the EAddressbookView's status_message signal. (set_status_message): set the status message on the ShellView Interface associated with our control. (retrieve_shell_view_interface_from_control): new function. get the shell view inteface associated with a control. * gui/widgets/e-addressbook-view.c (e_addressbook_view_class_init): register status_message signal. (status_message): new function, emit our status_message signal. (change_view_type): connect with the view->object's "status_message" signal. * gui/widgets/e-addressbook-view.h (struct _EAddressbookViewClass): add status_message signal. svn path=/trunk/; revision=7346
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog18
-rw-r--r--addressbook/gui/component/addressbook.c62
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c23
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.h5
4 files changed, 106 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 4d42549a5e..eab8b1c833 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,23 @@
2001-01-09 Chris Toshok <toshok@helixcode.com>
+ * gui/component/addressbook.c (addressbook_factory_new_control):
+ connect with the EAddressbookView's status_message signal.
+ (set_status_message): set the status message on the ShellView
+ Interface associated with our control.
+ (retrieve_shell_view_interface_from_control): new function. get
+ the shell view inteface associated with a control.
+
+ * gui/widgets/e-addressbook-view.c
+ (e_addressbook_view_class_init): register status_message signal.
+ (status_message): new function, emit our status_message signal.
+ (change_view_type): connect with the view->object's
+ "status_message" signal.
+
+ * gui/widgets/e-addressbook-view.h (struct
+ _EAddressbookViewClass): add status_message signal.
+
+2001-01-09 Chris Toshok <toshok@helixcode.com>
+
* gui/widgets/e-minicard-view-widget.c
(e_minicard_view_widget_class_init): register our status_message
signal.
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index e9d4f45527..531106b2c4 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -603,6 +603,63 @@ addressbook_query_changed (ESearchBar *esb, AddressbookView *view)
g_free (search_word);
}
+static GNOME_Evolution_ShellView
+retrieve_shell_view_interface_from_control (BonoboControl *control)
+{
+ Bonobo_ControlFrame control_frame;
+ GNOME_Evolution_ShellView shell_view_interface;
+ CORBA_Environment ev;
+
+ shell_view_interface = gtk_object_get_data (GTK_OBJECT (control),
+ "shell_view_interface");
+
+ if (shell_view_interface)
+ return shell_view_interface;
+
+ control_frame = bonobo_control_get_control_frame (control);
+
+ if (control_frame == NULL)
+ return CORBA_OBJECT_NIL;
+
+ CORBA_exception_init (&ev);
+ shell_view_interface = Bonobo_Unknown_queryInterface (control_frame,
+ "IDL:GNOME/Evolution/ShellView:1.0",
+ &ev);
+ CORBA_exception_free (&ev);
+
+ if (shell_view_interface != CORBA_OBJECT_NIL)
+ gtk_object_set_data (GTK_OBJECT (control),
+ "shell_view_interface",
+ shell_view_interface);
+ else
+ g_warning ("Control frame doesn't have Evolution/ShellView.");
+
+ return shell_view_interface;
+}
+
+static void
+set_status_message (EAddressbookView *eav, const char *message, AddressbookView *view)
+{
+ CORBA_Environment ev;
+ GNOME_Evolution_ShellView shell_view_interface;
+
+ CORBA_exception_init (&ev);
+
+ shell_view_interface = retrieve_shell_view_interface_from_control (view->control);
+
+ if (message == NULL || message[0] == 0) {
+ printf ("clearing message\n");
+ GNOME_Evolution_ShellView_unsetMessage (shell_view_interface, &ev);
+ }
+ else {
+ printf ("setting message %s\n", message);
+ GNOME_Evolution_ShellView_setMessage (shell_view_interface,
+ message, 0 /* XXX */, &ev);
+ }
+
+ CORBA_exception_free (&ev);
+}
+
BonoboControl *
addressbook_factory_new_control (void)
{
@@ -650,6 +707,11 @@ addressbook_factory_new_control (void)
bonobo_control_set_properties (view->control,
view->properties);
+ gtk_signal_connect (GTK_OBJECT (view->view),
+ "status_message",
+ GTK_SIGNAL_FUNC(set_status_message),
+ view);
+
view->uri = NULL;
gtk_signal_connect (GTK_OBJECT (view->control), "activate",
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 416b1e71e6..0c977a2a35 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -68,6 +68,13 @@ enum {
ARG_TYPE,
};
+enum {
+ STATUS_MESSAGE,
+ LAST_SIGNAL
+};
+
+static guint e_addressbook_view_signals [LAST_SIGNAL] = {0, };
+
GtkType
e_addressbook_view_get_type (void)
{
@@ -111,6 +118,16 @@ e_addressbook_view_class_init (EAddressbookViewClass *klass)
GTK_ARG_READWRITE, ARG_QUERY);
gtk_object_add_arg_type ("EAddressbookView::type", GTK_TYPE_ENUM,
GTK_ARG_READWRITE, ARG_TYPE);
+
+ e_addressbook_view_signals [STATUS_MESSAGE] =
+ gtk_signal_new ("status_message",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (EAddressbookViewClass, status_message),
+ gtk_marshal_NONE__POINTER,
+ GTK_TYPE_NONE, 1, GTK_TYPE_POINTER);
+
+ gtk_object_class_add_signals (object_class, e_addressbook_view_signals, LAST_SIGNAL);
}
static void
@@ -536,9 +553,11 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
}
static void
-status_message (GtkObject *object, const gchar *message, EAddressbookView *eav)
+status_message (GtkObject *object, const gchar *status, EAddressbookView *eav)
{
- printf ("status = %s\n", message);
+ gtk_signal_emit (GTK_OBJECT (eav),
+ e_addressbook_view_signals [STATUS_MESSAGE],
+ status);
}
#define SPEC "<?xml version=\"1.0\"?> \
diff --git a/addressbook/gui/widgets/e-addressbook-view.h b/addressbook/gui/widgets/e-addressbook-view.h
index 28c70798fc..ca6cedf0b8 100644
--- a/addressbook/gui/widgets/e-addressbook-view.h
+++ b/addressbook/gui/widgets/e-addressbook-view.h
@@ -73,6 +73,11 @@ struct _EAddressbookView
struct _EAddressbookViewClass
{
GtkTableClass parent_class;
+
+ /*
+ * Signals
+ */
+ void (*status_message) (EAddressbookView *view, const gchar *message);
};
GtkWidget *e_addressbook_view_new (void);
663e29163eecd203b41bc3e1c'>Use MASTER_SITES_GCC.knu2002-10-201-3/+5 * Add libmal 0.20, a library encapsulating malsync.will2002-10-117-0/+95 * Update to version 0.71, to go with the pilot-link upgrade.fenner2002-09-262-2/+2 * Fix build by upgrading to 2.1.0 after pilot-link upgrade.dirk2002-09-254-39/+36 * GNOME has just changed the layout of their FTP site. This resulted inmarcus2002-09-216-6/+6 * Updated to 3.2skv2002-09-202-3/+3 * fix build problem when latex2html is installedijliao2002-09-181-1/+3 * Upgrade to 0.11.4.sumikawa2002-09-186-28/+16 * Fix build with latest pilot-link.marcus2002-09-186-15/+192 * Fix build with new pilot-link.marcus2002-09-189-15/+282 * Chase the pisock shared lib version number. Note, this new version maymarcus2002-09-186-8/+12 * Fix plist.sumikawa2002-09-174-0/+26 * Upgrade to 0.11.3sumikawa2002-09-1726-290/+110 * Fix compilation on -currentkris2002-09-0710-0/+112 * Deploy USE_GNOMENG infrastructurelioux2002-09-012-2/+4 * Add iSiloXC 3.15,skv2002-08-198-0/+2126 * Upgrade to 2.9p5.kuriyama2002-08-062-3/+4 * Add `-E' option to REINPLACE_ARGS.okazaki2002-08-041-0/+1 * Chase shlib rev of devel/gettextade2002-08-022-2/+2 * Drop the maintainership.knu2002-07-261-1/+1 * ${LINUXBASE}/usr/bin/strip is not in emulators/linux_base but inknu2002-07-261-0/+2 * Convert all core GNOME1 components and some of the most popular GNOME1sobomax2002-07-129-48/+27 * Changed MASTER_SITES.sumikawa2002-07-081-1/+1 * pbm -> netpbm lib name changeijliao2002-07-064-4/+118 * Upgrade to 4.0 SDK.kuriyama2002-07-063-165/+210 * ${PERL} -> ${REINPLACE_CMD}ijliao2002-06-241-1/+2 * Update to 0.9.sobomax2002-05-249-12/+54 * Add missing plist entrypat2002-05-181-1/+2 * Fix breakage at -march=pentium case.kuriyama2002-05-151-1/+1 * Do PREFIX clean.sada2002-05-071-0/+1 * Update to 0.1.65.sobomax2002-04-2621-210/+147 * gettext upgrade uber-patch (stage 3)ade2002-04-132-3/+4 * Update the MASTER_SITES (per maintainer's request) and the WWW tag (mymi2002-04-102-2/+2 * Patch to use the new names of some of the usb.h's structures' fields ifmi2002-04-093-3/+36 * Remove #include <malloc.h>kris2002-03-311-0/+4 * Fix Japanese message catalog to work with gettext 0.10.40.naddy2002-03-223-0/+180 * Iconv cleanup, stage 2b: remove regex hacks that change iconv.h to giconv.h andsobomax2002-03-182-8/+0 * Bump PORTREVISION to reflect the (lib)iconv upgrade.knu2002-03-182-2/+2 * Iconv cleanup, stage 1b: correct {BUILD,LIB,RUN}_DEPENDS of all ports that needsobomax2002-03-182-2/+2 * MASTER_SITE moved.fenner2002-03-182-2/+2 * - Fix pilot_makedoc to always print enough \n'skevlo2002-03-182-4/+12 * Stage 1 of gettext update.ade2002-03-162-2/+2 * Make syncmal install directly into PREFIX, to match jpilot and pilot-link.fenner2002-03-021-3/+1 * Update to 0.62.2fenner2002-03-012-3/+3 * - Fix patch to point to the correct path due to the PREFIX cleaning donepat2002-02-231-1/+1 * Correct location of pilot-xfer file since it has changed due to thepat2002-02-211-1/+1 * Fix build after movement of pilot-link's library.dirk2002-02-151-7/+8 * Update to version 0.99.2kevlo2002-02-0918-1074/+155 * Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;knu2002-01-292-4/+4 * This port has been obsoleted by deskutils/kdepim.will2002-01-2212-240/+0 * - Don't install useless now ${PREFIX}/etc/rc.d/pilot-link.sh. Bumpsobomax2002-01-096-48/+6 * Now pisock shared library is in the ${LOCALBASE}/lib, move pilot-link fromsobomax2002-01-073-9/+6 * Make pilot-link install directly into PREFIX. This should allowwill2002-01-0511-225/+203 * Remove pilot-link explicitly specified in LIB_DEPENDS - the port inheritssobomax2001-12-263-6/+3 * Move pilot-link from LIB_DEPENDS to {BUILD,RUN}_DEPENDS, because when buildingsobomax2001-12-193-6/+9 * Add a LIB_DEPENDS on libintl.1 so the pkg-plist is correct and we getsteve2001-12-161-0/+2 * - Fix a malloc.h syndrome on -CURRENT;sobomax2001-12-146-0/+54 * - Add several missed files into pkg-plist and remove from there entries forsobomax2001-12-146-18/+66 * Update to 0.1.64.sobomax2001-12-066-6/+6 * Update to 0.8.sobomax2001-12-066-6/+6 * Chase checksum.dirk2001-12-041-1/+1 * Make this port PREFIX clean. Required for KDE 2.2.2 upgrade, as well aswill2001-12-046-198/+204 * Update to 0.7.sobomax2001-12-0318-108/+219 * Update to 0.1.63.sobomax2001-12-0321-372/+132 * Use $MASTER_SITE_SOURCEFORGE.kuriyama2001-11-283-5/+6 * Style police: remove trailing space in WWW taglioux2001-11-211-1/+1 * Add plucker 1.1.13, an offline HTML viewer for PalmOS devices.markp2001-10-057-0/+313 * add PTHREAD_CFLAGS/LIBS to work with fltk/libGL.sf2001-09-251-0/+2 * Fix MASTER_SITES and WWW. The site has been moved.knu2001-09-222-2/+2 * Correct version number of libpisock.sobomax2001-09-034-4/+4 * Fix MASTER_SITES.dirk2001-09-021-2/+2 * Fix shared library number for pisock (.3 -> .4).dirk2001-09-021-1/+2 * pisock.3 --> pisock.4 in LIB_DEPENDS.sobomax2001-08-313-3/+3 * Depend on new Pilot-linkdwcjr2001-08-301-2/+2 * Patch one source file to get rid of getopt.h -- the package does not usemi2001-08-282-0/+12 * Upgrade to 0.9.5, use -lgiconv.mi2001-08-2514-48/+102 * Upgrade this ports to 1.2.4 and 2.1.3 respectively. The maintainermi2001-08-254-4/+4 * Install locale files to match pkg-plist. I assume this has beenalex2001-08-241-0/+2 * Upgrade to 2.8p5.kuriyama2001-06-263-5/+24 * Remove empty patches in filesdwcjr2001-06-234-0/+0 * Add ppmtoTbmp 1.1, PPM to Pilot bitmap converter.markp2001-06-116-0/+45 * Add sitescooper 3.1.2,markp2001-06-117-0/+685 * Update to version 0.62fenner2001-06-082-2/+2 * Use proper POSIX syntax for `chown'.obrien2001-06-011-1/+1 * upgrade to 2.1.2ijliao2001-05-303-2/+6 * upgrade to 0.9.4ijliao2001-05-192-2/+2 * SWitch maintainership of core GNOME ports to a small group ofade2001-05-126-6/+6 * Various patches (mainly shared library revision changes) for thoseade2001-05-053-9/+6 * Make RUN_DEPENDS on jpilot a file dependency, not a binary-in-pathfenner2001-04-201-1/+1 * Make jpilot and malsync work directories relative to our work directory,fenner2001-04-182-17/+4 * More bento debugging.fenner2001-04-171-1/+2 * More bento debugging.fenner2001-04-171-1/+2 * make bento happier (bibelot.pl -> bibelot)ijliao2001-04-151-1/+1 * Try to debug the bento build, since it works everywhere else.fenner2001-04-151-0/+11 * update to 3.1mharo2001-04-0411-93/+195 * Overhaul QT/KDE support:will2001-04-031-4/+1 * upgrade to 0.9.3ijliao2001-04-033-3/+3 * -pthread --> ${PTHREAD_LIBS}sobomax2001-03-306-6/+6 * Insert ${WRKDIRPREFIX} when looking for other ports' work dirs.fenner2001-03-291-2/+2 * add romeoijliao2001-03-258-0/+55 * A jpilot plugin for malsync.fenner2001-03-236-0/+37 * Upgrade to 2.7b.kuriyama2001-03-132-2/+2 * Update to version 1.0.2.olgeni2001-03-086-46/+2 * Change my email address in the Maintainer linekeichii2001-03-081-1/+1 * fix internationalization bug. these patches are already submitted tosumikawa2001-03-0611-1/+777 * Add USE_GMAKE=yesclive2001-03-041-0/+2 * upgrade to 0.9.2ijliao2001-03-032-2/+2 * Remove do-configure section, use PERL_CONFIGURE now.vanilla2001-03-011-10/+4 * Upgrade to 2.06.dirk2001-02-232-3/+6 * Update to txt2pdbdoc 1.3kris2001-02-182-2/+2 * - Add write permission at post-patch stage to be able to buildkuriyama2001-02-152-2/+16 * The current version of the port does not enable plugins, even thoughjeh2001-02-122-5/+26 * Add %%PORTDOCS%%.knu2001-02-104-4/+8 * Oops. I forgot to update Makefile when I moved jconv to jfconv.knu2001-02-101-1/+1 * Upgrade to 0.99.vanilla2001-02-1012-71/+312 * Rename jconv to jfconv to avoid the conflict with japanese/libjconv,knu2001-02-089-106/+10 * fix wrksrc pathijliao2001-02-011-0/+1 * update to 0.9ijliao2001-01-312-4/+3 * Release maintainership to port@FreeBSD. I don't use this port anydirk2001-01-261-1/+1 * Add update1 from master_site.kuriyama2001-01-262-2/+4 * add bibelot, txt to pdb converterijliao2001-01-226-0/+38 * Use *.bz2 tarball.kuriyama2001-01-202-4/+8 * Use splitted tarballs.kuriyama2001-01-202-3/+4 * Update master site info.kuriyama2001-01-192-2/+2 * Update master site info.kuriyama2001-01-193-8/+14 * Add missing trailing backslash.kuriyama2001-01-191-1/+1 * Update master site info.kuriyama2001-01-192-2/+2 * Fix startup script's path.vanilla2001-01-162-2/+2 * Fix typo @{$SED} -> @${SED}dima2001-01-122-2/+2 * Fix install path.dima2001-01-092-2/+2 * New port: txt2pdbdocclive2001-01-097-0/+57 * Update master site.kuriyama2001-01-082-2/+2 * Upgrade to 2.7a.kuriyama2001-01-083-3/+3 * rc script fix (supports start/stop thingie now)dima2001-01-054-6/+32 * Update URL.dirk2001-01-011-1/+1 * Upgrade to 2.05.dirk2001-01-012-3/+3 * Corrected some info lines in the Header: mail address and first one.lkoeller2000-12-231-2/+2 * Update to version 0.8.6, only different lines for patch regarding to 0.8.3.lkoeller2000-12-232-12/+12 * Update to version 0.8.6.lkoeller2000-12-231-1/+1 * New version 0.8.6 checksum.lkoeller2000-12-231-1/+1 * Fix now-released maintainer address.nsayer2000-12-091-1/+1 * I don't have a pilot anymore, so someone else can look after this if they want.nsayer2000-11-171-1/+1 * Upgrade to 2.6 (without distname change).kuriyama2000-11-022-2/+2 * Fix $MASTER_SITES.kuriyama2000-10-241-1/+1 * Remove jfitz@ as MAINTAINER - mail is bouncing / mailservers don't answer.will2000-10-241-1/+1 * Initial import of palmpower 1.0.1jeh2000-10-1210-0/+89 * Implement USE_GNOME, part 2.reg2000-10-056-57/+18 * Implement USE_GTK, part 2.reg2000-10-052-7/+4 * Whitespace changes and PLIST sorting.reg2000-10-012-8/+8 * Update to version 1.4.6kevlo2000-09-292-4/+4 * Update to 1.4.5.knu2000-09-253-9/+8 * Use LINUXBASE/USE_LINUX variables.knu2000-09-231-2/+2 * Add Lars's secondary sitefenner2000-09-121-1/+2 * Update to version 1.2.2kevlo2000-09-093-5/+12 * USE_LIBTOOL implies GNU_CONFIGURE, so remove redundant GNU_CONFIGURE lines.sobomax2000-08-212-2/+0 * Re-sobomize to use pre-patch instead of post-extractade2000-08-05