[monkey-bubble: 269/753] Reflect latest GnomeSelector API changes.



commit 9d36a55f6ad033a6c5637fffc2109b43f2919eb9
Author: Martin Baulig <baulig suse de>
Date:   Tue May 8 21:29:40 2001 +0000

    Reflect latest GnomeSelector API changes.
    
    2001-05-08  Martin Baulig  <baulig suse de>
    
    	* gnome-entry.[ch]: Reflect latest GnomeSelector API changes.

 libgnomeui/ChangeLog     |    4 ++++
 libgnomeui/gnome-entry.c |   12 +++++++++---
 libgnomeui/gnome-entry.h |    2 +-
 3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/libgnomeui/ChangeLog b/libgnomeui/ChangeLog
index 989131c..c0eb669 100644
--- a/libgnomeui/ChangeLog
+++ b/libgnomeui/ChangeLog
@@ -1,5 +1,9 @@
 2001-05-08  Martin Baulig  <baulig suse de>
 
+	* gnome-entry.[ch]: Reflect latest GnomeSelector API changes.
+
+2001-05-08  Martin Baulig  <baulig suse de>
+
 	* gnome-selector-client.h (gnome_selector_client_set_uri):
 	Added `GDestroyNotify destroy_fn' argument.
 
diff --git a/libgnomeui/gnome-entry.c b/libgnomeui/gnome-entry.c
index e2fa2f0..2c1455c 100644
--- a/libgnomeui/gnome-entry.c
+++ b/libgnomeui/gnome-entry.c
@@ -39,6 +39,7 @@
 #include <gtk/gtklistitem.h>
 #include <gtk/gtksignal.h>
 #include <libgnome/gnome-i18n.h>
+#include <libgnome/gnome-selector.h>
 #include "gnome-macros.h"
 #include "gnome-entry.h"
 
@@ -69,10 +70,10 @@ static void   entry_activated_cb       (GtkWidget       *widget,
 
 static GnomeSelectorClientClass *parent_class;
 
-guint
+GType
 gnome_entry_get_type (void)
 {
-	static guint entry_type = 0;
+	static GType entry_type = 0;
 
 	if (!entry_type) {
 		GtkTypeInfo entry_info = {
@@ -140,6 +141,7 @@ GtkWidget *
 gnome_entry_new (const gchar *history_id)
 {
 	GnomeSelector *selector;
+	BonoboEventSource *event_source;
 	GnomeEntry *gentry;
 	GtkWidget *entry_widget;
 
@@ -165,8 +167,12 @@ gnome_entry_new (const gchar *history_id)
 
 	gentry->_priv->control = bonobo_control_new (entry_widget);
 
+	event_source = bonobo_event_source_new ();
+
+	gnome_selector_construct (selector, event_source);
+
 	gnome_selector_bind_to_control (selector,
-					BONOBO_OBJREF (gentry->_priv->control));
+					BONOBO_OBJECT (gentry->_priv->control));
 
 	g_signal_connect_data (selector, "get_entry_text",
 			       G_CALLBACK (get_entry_text_handler),
diff --git a/libgnomeui/gnome-entry.h b/libgnomeui/gnome-entry.h
index 5dd94fc..a343f2f 100644
--- a/libgnomeui/gnome-entry.h
+++ b/libgnomeui/gnome-entry.h
@@ -64,7 +64,7 @@ struct _GnomeEntryClass {
 };
 
 
-GtkType      gnome_entry_get_type          (void) G_GNUC_CONST;
+GType        gnome_entry_get_type          (void) G_GNUC_CONST;
 
 GtkWidget   *gnome_entry_new               (const gchar        *history_id);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]