[monkey-bubble: 311/753] Create a BonoboItemHandler so that you can create a new GnomeSelector
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 311/753] Create a BonoboItemHandler so that you can create a new GnomeSelector
- Date: Wed, 14 Jul 2010 22:21:48 +0000 (UTC)
commit c32f07f0af2a8fba2c7cad33f70b199c5c305483
Author: Martin Baulig <baulig suse de>
Date: Mon May 21 16:11:20 2001 +0000
Create a BonoboItemHandler so that you can create a new GnomeSelector
2001-05-21 Martin Baulig <baulig suse de>
* gnome-selector-factory.c: Create a BonoboItemHandler so that
you can create a new GnomeSelector entirely with monikers.
* gnome-selector-dialog.[ch]: New files.
libgnome/ChangeLog | 7 +++
libgnome/Makefile.am | 2 +
libgnome/gnome-selector-dialog.c | 82 ++++++++++++++++++++++++++++++++++++++
libgnome/gnome-selector-dialog.h | 66 ++++++++++++++++++++++++++++++
4 files changed, 157 insertions(+), 0 deletions(-)
---
diff --git a/libgnome/ChangeLog b/libgnome/ChangeLog
index 1c90e94..cbdb061 100644
--- a/libgnome/ChangeLog
+++ b/libgnome/ChangeLog
@@ -1,5 +1,12 @@
2001-05-21 Martin Baulig <baulig suse de>
+ * gnome-selector-factory.c: Create a BonoboItemHandler so that
+ you can create a new GnomeSelector entirely with monikers.
+
+ * gnome-selector-dialog.[ch]: New files.
+
+2001-05-21 Martin Baulig <baulig suse de>
+
* gnome-selector.c (GNOME_TYPE_TRISTATE): New enum type.
(PROP_WANT_BROWSE_BUTTON): Use the new tristate enum.
(PROP_WANT_CLEAR_BUTTON, PROP_WANT_DEFAULT_BUTTON): Likewise.
diff --git a/libgnome/Makefile.am b/libgnome/Makefile.am
index d5cee52..f05164a 100644
--- a/libgnome/Makefile.am
+++ b/libgnome/Makefile.am
@@ -59,6 +59,7 @@ libgnome_src = \
gnome-selector.c \
gnome-file-selector.c \
gnome-selector-factory.c\
+ gnome-selector-dialog.c \
gnome-config.c \
gnome-ditem.c \
gnome-exec.c \
@@ -102,6 +103,7 @@ libgnome_headers = \
gnome-selectorP.h \
gnome-file-selector.h \
gnome-selector-factory.h\
+ gnome-selector-dialog.h \
libgnome-init.h \
libgnome.h
diff --git a/libgnome/gnome-selector-dialog.c b/libgnome/gnome-selector-dialog.c
new file mode 100644
index 0000000..8950bf5
--- /dev/null
+++ b/libgnome/gnome-selector-dialog.c
@@ -0,0 +1,82 @@
+/* -*- Mode: C; c-set-style: gnu indent-tabs-mode: t; c-basic-offset: 4; tab-width: 8 -*- */
+/*
+ * Copyright (C) 2000 SuSE GmbH
+ * Author: Martin Baulig <baulig suse de>
+ *
+ * This file is part of the Gnome Library.
+ *
+ * The Gnome Library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * The Gnome Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with the Gnome Library; see the file COPYING.LIB. If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+/*
+ @NOTATION@
+ */
+
+#include <config.h>
+
+#include <stdio.h>
+#include <string.h>
+#include <gobject/gvaluetypes.h>
+#include <libgnome/gnome-i18n.h>
+#include <libgnome/gnome-selector-dialog.h>
+
+#define PARENT_TYPE BONOBO_OBJECT_TYPE
+BonoboObjectClass *gnome_selector_dialog_parent_class = NULL;
+
+struct _GnomeSelectorDialogPrivate {
+ GNOME_Selector selector;
+};
+
+
+static void gnome_selector_dialog_class_init (GnomeSelectorDialogClass *class);
+static void gnome_selector_dialog_init (GnomeSelectorDialog *dialog);
+static void gnome_selector_dialog_finalize (GObject *object);
+
+static void
+gnome_selector_dialog_class_init (GnomeSelectorDialogClass *class)
+{
+ GObjectClass *object_class;
+
+ gnome_selector_dialog_parent_class = g_type_class_peek_parent (class);
+
+ object_class = (GObjectClass *) class;
+
+ object_class->finalize = gnome_selector_dialog_finalize;
+}
+
+static void
+gnome_selector_dialog_init (GnomeSelectorDialog *dialog)
+{
+ dialog->_priv = g_new0 (GnomeSelectorDialogPrivate, 1);
+}
+
+static void
+gnome_selector_dialog_finalize (GObject *object)
+{
+ GnomeSelectorDialog *dialog;
+
+ g_return_if_fail (object != NULL);
+ g_return_if_fail (GNOME_IS_SELECTOR (object));
+
+ dialog = GNOME_SELECTOR_DIALOG (object);
+
+ g_free (dialog->_priv);
+ dialog->_priv = NULL;
+
+ G_OBJECT_CLASS (gnome_selector_dialog_parent_class)->finalize (object);
+}
+
+BONOBO_TYPE_FUNC_FULL (GnomeSelectorDialog, GNOME_SelectorDialog,
+ PARENT_TYPE, gnome_selector_dialog);
diff --git a/libgnome/gnome-selector-dialog.h b/libgnome/gnome-selector-dialog.h
new file mode 100644
index 0000000..6220717
--- /dev/null
+++ b/libgnome/gnome-selector-dialog.h
@@ -0,0 +1,66 @@
+/* -*- Mode: C; c-set-style: gnu indent-tabs-mode: t; c-basic-offset: 4; tab-width: 8 -*- */
+/*
+ * Copyright (C) 2000 SuSE GmbH
+ * Author: Martin Baulig <baulig suse de>
+ *
+ * This file is part of the Gnome Library.
+ *
+ * The Gnome Library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * The Gnome Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with the Gnome Library; see the file COPYING.LIB. If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+/*
+ @NOTATION@
+ */
+
+#ifndef GNOME_SELECTOR_DIALOG_H
+#define GNOME_SELECTOR_DIALOG_H
+
+
+#include <libgnome/gnome-selector.h>
+
+
+G_BEGIN_DECLS
+
+
+#define GNOME_TYPE_SELECTOR_DIALOG (gnome_selector_dialog_get_type ())
+#define GNOME_SELECTOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_SELECTOR_DIALOG, GnomeSelectorDialog))
+#define GNOME_SELECTOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_SELECTOR_DIALOG, GnomeSelectorDialogClass))
+#define GNOME_IS_SELECTOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_SELECTOR_DIALOG))
+#define GNOME_IS_SELECTOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_SELECTOR_DIALOG))
+
+
+typedef struct _GnomeSelectorDialog GnomeSelectorDialog;
+typedef struct _GnomeSelectorDialogPrivate GnomeSelectorDialogPrivate;
+typedef struct _GnomeSelectorDialogClass GnomeSelectorDialogClass;
+
+struct _GnomeSelectorDialog {
+ BonoboObject object;
+
+ /*< private >*/
+ GnomeSelectorDialogPrivate *_priv;
+};
+
+struct _GnomeSelectorDialogClass {
+ BonoboObjectClass parent_class;
+
+ POA_GNOME_SelectorDialog__epv epv;
+};
+
+
+GType gnome_selector_dialog_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]