aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-bonobo-factory-util.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-05 12:30:33 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-05 12:30:33 +0800
commitd682c4f31ee76d09bb11cc06a79aa4522a35f229 (patch)
treea8e90c9fb5fe481e4f771572304465ec95ed78c4 /e-util/e-bonobo-factory-util.c
parent324f2b9768e8b30849cea65f640b381f7f7ddfd0 (diff)
downloadgsoc2013-evolution-d682c4f31ee76d09bb11cc06a79aa4522a35f229.tar.gz
gsoc2013-evolution-d682c4f31ee76d09bb11cc06a79aa4522a35f229.tar.zst
gsoc2013-evolution-d682c4f31ee76d09bb11cc06a79aa4522a35f229.zip
New function to create a factory that creates separate component instances
* e-bonobo-factory-util.c (e_bonobo_generic_factory_multi_display_new): New function to create a factory that creates separate component instances for different displays. svn path=/trunk/; revision=11686
Diffstat (limited to 'e-util/e-bonobo-factory-util.c')
-rw-r--r--e-util/e-bonobo-factory-util.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/e-util/e-bonobo-factory-util.c b/e-util/e-bonobo-factory-util.c
new file mode 100644
index 0000000000..9b67f64fd1
--- /dev/null
+++ b/e-util/e-bonobo-factory-util.c
@@ -0,0 +1,54 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* e-bonobo-factory-util.c
+ *
+ * Copyright (C) 2001 Ximian, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Author: Ettore Perazzoli
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "e-bonobo-factory-util.h"
+
+#include <X11/Xlib.h>
+#include <gdk/gdkprivate.h>
+
+
+BonoboGenericFactory *
+e_bonobo_generic_factory_multi_display_new (const char *factory_iid,
+ GnomeFactoryCallback factory_callback,
+ void *factory_callback_data)
+{
+ BonoboGenericFactory *factory;
+ char *registration_id;
+ char *display_string;
+
+ g_return_val_if_fail (factory_iid != NULL, NULL);
+ g_return_val_if_fail (factory_callback != NULL, NULL);
+
+ display_string = DisplayString (gdk_display);
+ registration_id = oaf_make_registration_id (factory_iid, display_string);
+ factory = bonobo_generic_factory_new_multi (registration_id, factory_callback, factory_callback_data);
+
+ g_free (registration_id);
+ XFree (display_string);
+
+ return factory;
+}
class='insertions'>+57 * vi.po: Updated Vietnamese translation.Clytie Siddall2005-07-221-308/+326 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-07-201-141/+207 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-07-171-2/+469 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-07-161-85/+98 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-07-131-5618/+5594 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-07-101-5358/+5706 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-07-071-14785/+62 * added all the new gal widgets & a couple of other missing files. re-sortedNot Zed2005-06-211-5564/+6471 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-06-011-18101/+19304 * vi.po: Updated Vietnamese translation.CVS: ----------------------------------...Clytie Siddall2005-05-211-9087/+8827 * Updated vi.poNguyen Thai Ngoc Duy2004-12-201-9650/+9290 * bump version. requiresJP Rosevear2004-08-141-381/+508 * bump version, requirementsJP Rosevear2004-08-031-598/+705 * bump version, requirementsJP Rosevear2004-07-201-301/+334 * bump version, requirementsJP Rosevear2004-07-051-3438/+4125 * update vi.poNguyen Thai Ngoc Duy2004-06-271-909/+529 * update vi.poNguyen Thai Ngoc Duy2004-06-261-485/+243 * Merge from release branch.JP Rosevear2004-06-041-1893/+1873 * bump versionJP Rosevear2004-05-201-3157/+3900 * distedJeffrey Stedfast2004-04-301-1985/+2718 * Merge from release branchJP Rosevear2004-04-201-811/+834 * bump version, requirementsJP Rosevear2004-04-031-2278/+2737 * bump version, requirementsJP Rosevear2004-03-061-1531/+1678 * bump version, libtool numbersJP Rosevear2004-02-101-1246/+1365 * bump requirements, versionJP Rosevear2004-01-271-1359/+1583 * bump version and requirementsJP Rosevear2004-01-131-1442/+2023 * bump version and gal, e-d-s and gtkhtml requirementsJP Rosevear2003-12-301-1483/+1671 * update version relianceJP Rosevear2003-12-081-2283/+3561 * updateJP Rosevear2003-11-071-1274/+1071 * remove dead fileJP Rosevear2003-10-311-14468/+12543 * 1.4.1 release.Ettore Perazzoli2003-06-261-555/+564 * 1.4.0!Ettore Perazzoli2003-06-031-321/+320 * Sync 1.3.92.Ettore Perazzoli2003-05-231-3/+3 * 1.3.91.Ettore Perazzoli2003-05-221-948/+1001 * 1.3.3.Ettore Perazzoli2003-04-301-801/+928 * The return of 1.3.2.Ettore Perazzoli2003-04-121-205/+205 * Sync for 1.3.2.Ettore Perazzoli2003-04-101-2455/+2783 * updated Vietnamese filePablo Saratxaga2003-02-261-4639/+5129 * Sync for 1.1.90.Ettore Perazzoli2002-10-291-1394/+1658 * updated Vietnamese filePablo Saratxaga2002-10-251-1138/+947 * Sync for 1.1.2.Ettore Perazzoli2002-10-081-945/+1136 * updated po filePablo Saratxaga2002-09-231-2569/+2218 * Sync for 1.1.1.Ettore Perazzoli2002-09-101-1162/+1269 * Update po files to speed up snap build.JP Rosevear2002-08-131-1746/+2206 * Update .po files.JP Rosevear2002-06-281-8410/+11047 * updated Vietnamese filePablo Saratxaga2002-05-151-317/+333 * updated Vietnamese filePablo Saratxaga2002-05-11