source: trunk/third/evolution/e-util/e-bonobo-factory-util.c @ 16787

Revision 16787, 1.6 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16786, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* e-bonobo-factory-util.c
3 *
4 * Copyright (C) 2001 Ximian, Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 * Author: Ettore Perazzoli
21 */
22
23#ifdef HAVE_CONFIG_H
24#include <config.h>
25#endif
26
27#include "e-bonobo-factory-util.h"
28
29#include <X11/Xlib.h>
30#include <gdk/gdkprivate.h>
31
32
33BonoboGenericFactory *
34e_bonobo_generic_factory_multi_display_new (const char *factory_iid,
35                                            GnomeFactoryCallback factory_callback,
36                                            void *factory_callback_data)
37{
38        BonoboGenericFactory *factory;
39        char *registration_id;
40        char *display_string;
41
42        g_return_val_if_fail (factory_iid != NULL, NULL);
43        g_return_val_if_fail (factory_callback != NULL, NULL);
44
45        display_string = DisplayString (gdk_display);
46        registration_id = oaf_make_registration_id (factory_iid, display_string);
47        factory = bonobo_generic_factory_new_multi (registration_id, factory_callback, factory_callback_data);
48
49        g_free (registration_id);
50        XFree (display_string);
51
52        return factory;
53}
Note: See TracBrowser for help on using the repository browser.