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

« back to all changes in this revision

Viewing changes to tests/test-properties-client.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:
2
2
#include <stdio.h>
3
3
#include <libbonobo.h>
4
4
 
5
 
CORBA_ORB                orb;
6
5
Bonobo_PropertyBag       pb;
7
6
CORBA_Environment        ev;
8
7
Bonobo_PropertyBag       pb;
177
176
                "string-test", TC_CORBA_string, "you are a precious flower",
178
177
                NULL);
179
178
 
 
179
        {
 
180
                CORBA_any a;
 
181
                CORBA_boolean b = TRUE;
 
182
                a._type = TC_CORBA_boolean;
 
183
                a._value = &b;
 
184
                bonobo_pbclient_set_value_async
 
185
                        (pb, "boolean-test", &a, NULL);
 
186
        }
 
187
 
180
188
        bonobo_main_quit ();
181
189
 
182
190
        return FALSE;
186
194
int
187
195
main (int argc, char **argv)
188
196
{
 
197
        CORBA_ORB orb;
189
198
        CORBA_exception_init (&ev);
190
199
 
191
200
        if (!bonobo_init (&argc, argv))
192
201
                g_error ("Could not initialize Bonobo");
193
202
 
 
203
        orb = bonobo_orb ();
 
204
 
194
205
        {
195
206
                int   size;
196
207
                char  ior [1024];