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

« back to all changes in this revision

Viewing changes to monikers/bonobo-moniker-oaf.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:
9
9
#include <config.h>
10
10
#include <string.h>
11
11
 
12
 
#define BONOBO_EXPLICIT_TRANSLATION_DOMAIN PACKAGE
 
12
#define BONOBO_EXPLICIT_TRANSLATION_DOMAIN GETTEXT_PACKAGE
13
13
#include <bonobo/bonobo-i18n.h>
14
14
#include <bonobo/bonobo-exception.h>
15
15
#include <bonobo/bonobo-moniker-util.h>
33
33
        if (parent != CORBA_OBJECT_NIL) {
34
34
                bonobo_object_release_unref (parent, ev);
35
35
 
 
36
#ifdef G_ENABLE_DEBUG
36
37
                g_warning ("wierd; oafid moniker with a parent; strange");
 
38
#endif
37
39
                CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
38
40
                                     ex_Bonobo_Moniker_InterfaceNotFound, NULL);
39
41
                return CORBA_OBJECT_NIL;
48
50
                                CORBA_exception_free (ev);
49
51
 
50
52
                                bonobo_exception_general_error_set (
51
 
                                        ev, NULL, _("Exception activating '%s"),
 
53
                                        ev, NULL, _("Exception activating '%s'"),
52
54
                                        bonobo_moniker_get_name_full (moniker));
53
55
                        }
54
56
                }
57
59
        } else if (object == CORBA_OBJECT_NIL) {
58
60
 
59
61
                bonobo_exception_general_error_set (
60
 
                        ev, NULL, _("Failed to activate '%s"),
 
62
                        ev, NULL, _("Failed to activate '%s'"),
61
63
                        bonobo_moniker_get_name_full (moniker));
62
64
 
63
65
                return CORBA_OBJECT_NIL;