~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to bonobo/bonobo-context.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-02-18 14:40:51 UTC
  • mto: (3.1.1 etch) (1.1.25 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050218144051-fo4h9qh2gim8x3wt
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
#include <bonobo/bonobo-object.h>
13
13
#include <bonobo/bonobo-context.h>
14
 
#include <bonobo/bonobo-shutdown.h>
 
14
#include <bonobo/bonobo-private.h>
15
15
#include <bonobo/bonobo-running-context.h>
16
16
#include <bonobo/bonobo-moniker-context.h>
17
17
 
109
109
void
110
110
bonobo_context_shutdown (void)
111
111
{
 
112
        Bonobo_Unknown m_context;
 
113
 
112
114
        if (!bonobo_contexts)
113
115
                return;
114
116
 
 
117
        m_context = g_hash_table_lookup (bonobo_contexts, "Moniker");
 
118
        if (!ORBit_small_get_servant (m_context))
 
119
                g_error ("In-proc object has no servant association\n"
 
120
                         "this probably means you shutdown the ORB before "
 
121
                         "you shutdown libbonobo\n");
 
122
 
115
123
        g_hash_table_foreach_remove (
116
124
                bonobo_contexts, (GHRFunc) context_destroy, NULL);
117
125
        g_hash_table_destroy (bonobo_contexts);