[monkey-bubble: 339/753] New property.
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 339/753] New property.
- Date: Wed, 14 Jul 2010 22:24:09 +0000 (UTC)
commit 3e87ef595fe35b7943d9947d24466c9c88364eb3
Author: Martin Baulig <baulig suse de>
Date: Thu May 31 16:43:37 2001 +0000
New property.
2001-05-31 Martin Baulig <baulig suse de>
* gnome-selector-client.c (WANT_PREVIEW_WIDGET): New property.
* gnome-selector-component.[ch]: Derive from GnomeSelector, not
GnomeFileSelector which is now a component.
(GnomeSelectorComponentClass): Added "ensure_properties" signal.
(PROP_PREVIEW_WIDGET, PROP_CONTROL_WIDGET): New properties.
libgnomeui/ChangeLog | 9 +++++++++
libgnomeui/gnome-component-widget.c | 28 +++++++++++++++++++++++++---
2 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/libgnomeui/ChangeLog b/libgnomeui/ChangeLog
index 5166ff0..1fa1d49 100644
--- a/libgnomeui/ChangeLog
+++ b/libgnomeui/ChangeLog
@@ -1,3 +1,12 @@
+2001-05-31 Martin Baulig <baulig suse de>
+
+ * gnome-selector-client.c (WANT_PREVIEW_WIDGET): New property.
+
+ * gnome-selector-component.[ch]: Derive from GnomeSelector, not
+ GnomeFileSelector which is now a component.
+ (GnomeSelectorComponentClass): Added "ensure_properties" signal.
+ (PROP_PREVIEW_WIDGET, PROP_CONTROL_WIDGET): New properties.
+
2001-05-27 ERDI Gergo <cactus cactus rulez org>
* gnome-about.c: First run at porting it over to
diff --git a/libgnomeui/gnome-component-widget.c b/libgnomeui/gnome-component-widget.c
index 07e33a2..b207e0d 100644
--- a/libgnomeui/gnome-component-widget.c
+++ b/libgnomeui/gnome-component-widget.c
@@ -39,6 +39,7 @@ struct _GnomeSelectorClientPrivate {
gchar *browse_dialog_moniker;
GNOME_Tristate want_entry_widget;
+ GNOME_Tristate want_preview_widget;
GNOME_Tristate want_selector_widget;
GNOME_Tristate want_browse_dialog;
GNOME_Tristate want_browse_button;
@@ -63,13 +64,14 @@ gnome_selector_client_event_cb (BonoboListener *listener,
static BonoboWidgetClass *gnome_selector_client_parent_class;
-static GNOME_Selector_AsyncID last_async_id G_GNUC_UNUSED = 0;
+static GNOME_AsyncID last_async_id G_GNUC_UNUSED = 0;
enum {
PROP_0,
/* Construction properties */
PROP_WANT_ENTRY_WIDGET,
+ PROP_WANT_PREVIEW_WIDGET,
PROP_WANT_SELECTOR_WIDGET,
PROP_WANT_BROWSE_DIALOG,
PROP_WANT_BROWSE_BUTTON,
@@ -121,6 +123,9 @@ gnome_selector_client_pbag_get_property (BonoboPropertyBag *bag, BonoboArg *arg,
case PROP_WANT_ENTRY_WIDGET:
set_arg_tristate (arg, client->_priv->want_entry_widget, ev);
break;
+ case PROP_WANT_PREVIEW_WIDGET:
+ set_arg_tristate (arg, client->_priv->want_preview_widget, ev);
+ break;
case PROP_WANT_SELECTOR_WIDGET:
set_arg_tristate (arg, client->_priv->want_selector_widget, ev);
break;
@@ -161,6 +166,10 @@ gnome_selector_client_set_property (GObject *object, guint param_id,
g_assert (!client->_priv->constructed);
client->_priv->want_entry_widget = g_value_get_enum (value);
break;
+ case PROP_WANT_PREVIEW_WIDGET:
+ g_assert (!client->_priv->constructed);
+ client->_priv->want_preview_widget = g_value_get_enum (value);
+ break;
case PROP_WANT_SELECTOR_WIDGET:
g_assert (!client->_priv->constructed);
client->_priv->want_selector_widget = g_value_get_enum (value);
@@ -206,6 +215,9 @@ gnome_selector_client_get_property (GObject *object, guint param_id, GValue *val
case PROP_WANT_ENTRY_WIDGET:
g_value_set_enum (value, client->_priv->want_entry_widget);
break;
+ case PROP_WANT_PREVIEW_WIDGET:
+ g_value_set_enum (value, client->_priv->want_preview_widget);
+ break;
case PROP_WANT_SELECTOR_WIDGET:
g_value_set_enum (value, client->_priv->want_selector_widget);
break;
@@ -251,6 +263,13 @@ gnome_selector_client_class_init (GnomeSelectorClientClass *klass)
G_PARAM_CONSTRUCT_ONLY)));
g_object_class_install_property
(object_class,
+ PROP_WANT_PREVIEW_WIDGET,
+ g_param_spec_enum ("want-preview-widget", NULL, NULL,
+ GNOME_TYPE_TRISTATE, GNOME_TRISTATE_DEFAULT,
+ (G_PARAM_READABLE | G_PARAM_WRITABLE |
+ G_PARAM_CONSTRUCT_ONLY)));
+ g_object_class_install_property
+ (object_class,
PROP_WANT_SELECTOR_WIDGET,
g_param_spec_enum ("want-selector-widget", NULL, NULL,
GNOME_TYPE_TRISTATE, GNOME_TRISTATE_DEFAULT,
@@ -349,6 +368,9 @@ gnome_selector_client_construct (GnomeSelectorClient *client, const gchar *monik
"want-entry-widget", PROP_WANT_ENTRY_WIDGET,
BONOBO_ARG_BOOLEAN, NULL, NULL, BONOBO_PROPERTY_READABLE);
bonobo_property_bag_add (client->_priv->pbag,
+ "want-preview-widget", PROP_WANT_PREVIEW_WIDGET,
+ BONOBO_ARG_BOOLEAN, NULL, NULL, BONOBO_PROPERTY_READABLE);
+ bonobo_property_bag_add (client->_priv->pbag,
"want-browse-dialog", PROP_WANT_BROWSE_DIALOG,
BONOBO_ARG_BOOLEAN, NULL, NULL, BONOBO_PROPERTY_READABLE);
bonobo_property_bag_add (client->_priv->pbag,
@@ -510,7 +532,7 @@ gnome_selector_client_get_entry_text (GnomeSelectorClient *client)
g_assert (client->_priv->selector != CORBA_OBJECT_NIL);
CORBA_exception_init (&ev);
- retval = GNOME_Selector_getEntryText (client->_priv->selector, &ev);
+ retval = GNOME_Selector__get_entryText (client->_priv->selector, &ev);
CORBA_exception_free (&ev);
return retval;
@@ -528,7 +550,7 @@ gnome_selector_client_set_entry_text (GnomeSelectorClient *client,
g_assert (client->_priv->selector != CORBA_OBJECT_NIL);
CORBA_exception_init (&ev);
- GNOME_Selector_setEntryText (client->_priv->selector, text, &ev);
+ GNOME_Selector__set_entryText (client->_priv->selector, text, &ev);
CORBA_exception_free (&ev);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]