aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-03 03:24:57 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-03 03:24:57 +0800
commitcf4799b253ff79278d73da164aef52389dead454 (patch)
treefaa2d09ecfed7686c9459d2df359a2aab93f91b9 /addressbook
parent147be136c4328826ee7041ffd3403f05bd8a74ac (diff)
downloadgsoc2013-evolution-cf4799b253ff79278d73da164aef52389dead454.tar.gz
gsoc2013-evolution-cf4799b253ff79278d73da164aef52389dead454.tar.zst
gsoc2013-evolution-cf4799b253ff79278d73da164aef52389dead454.zip
Made evolution-addressbook shut down when the shell is done with it.
2000-06-02 Christopher James Lahey <clahey@helixcode.com> * gui/component/addressbook-component.c: Made evolution-addressbook shut down when the shell is done with it. svn path=/trunk/; revision=3398
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/addressbook-component.c21
2 files changed, 24 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 9a8b6ea561..c8998e2006 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
+ * gui/component/addressbook-component.c: Made
+ evolution-addressbook shut down when the shell is done with it.
+
+2000-06-02 Christopher James Lahey <clahey@helixcode.com>
+
* gui/minicard/e-minicard-view.c, gui/minicard/e-minicard.c: Made
double click only work on the first button.
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 459a77d510..c3c7a14d60 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -31,6 +31,7 @@
#include "evolution-storage.h"
#include "addressbook-component.h"
+#include "addressbook.h"
#ifdef USING_OAF
@@ -62,11 +63,24 @@ create_view (EvolutionShellComponent *shell_component,
return control;
}
+static int owner_count = 0;
+
static void
owner_set_cb (EvolutionShellComponent *shell_component,
- Evolution_Shell shell_interface)
+ Evolution_Shell shell_interface,
+ gpointer user_data)
+{
+ owner_count ++;
+}
+
+static void
+owner_unset_cb (EvolutionShellComponent *shell_component,
+ Evolution_Shell shell_interface,
+ gpointer user_data)
{
- g_print ("addressbook: Yeeeh! We have an owner!\n"); /* FIXME */
+ owner_count --;
+ if (owner_count == 0)
+ gtk_main_quit();
}
@@ -83,6 +97,9 @@ factory_fn (BonoboGenericFactory *factory,
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set",
GTK_SIGNAL_FUNC (owner_set_cb), NULL);
+ gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset",
+ GTK_SIGNAL_FUNC (owner_unset_cb), NULL);
+
return BONOBO_OBJECT (shell_component);
}