[monkey-bubble: 278/753] Install gnome-selectorP.h.



commit 261bfdaafe783dcd4f8b2c835a16f15574b89aaf
Author: Martin Baulig <baulig suse de>
Date:   Wed May 9 22:07:53 2001 +0000

    Install gnome-selectorP.h.
    
    2001-04-30  Martin Baulig  <baulig suse de>
    
    	* Makefile.am: Install gnome-selectorP.h.
    
    	* gnome-selector.h (gnome_selector_get_entry_text): Put this back.
    	(gnome_selector_set_entry_text): Likewise.
    	(gnome_selector_activate_entry): Likesise.
    	(gnome_selector_get_uri, gnome_selector_set_uri): Likewise.

 libgnome/ChangeLog             |    9 +++++++++
 libgnome/Makefile.am           |    1 +
 libgnome/gnome-file-selector.c |    7 ++++++-
 3 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/libgnome/ChangeLog b/libgnome/ChangeLog
index 3f5d498..38406c3 100644
--- a/libgnome/ChangeLog
+++ b/libgnome/ChangeLog
@@ -1,3 +1,12 @@
+2001-04-30  Martin Baulig  <baulig suse de>
+
+	* Makefile.am: Install gnome-selectorP.h.
+
+	* gnome-selector.h (gnome_selector_get_entry_text): Put this back.
+	(gnome_selector_set_entry_text): Likewise.
+	(gnome_selector_activate_entry): Likesise.
+	(gnome_selector_get_uri, gnome_selector_set_uri): Likewise.
+
 2001-05-08  Martin Baulig  <baulig suse de>
 
 	* gnome-selector.h (gnome_selector_get_uri): Removed.
diff --git a/libgnome/Makefile.am b/libgnome/Makefile.am
index 054287f..2996a31 100644
--- a/libgnome/Makefile.am
+++ b/libgnome/Makefile.am
@@ -97,6 +97,7 @@ libgnome_headers = \
 	gnome-preferences.h	\
 	gnome-marshal.h		\
 	gnome-selector.h	\
+	gnome-selectorP.h	\
 	gnome-file-selector.h	\
 	libgnome-init.h		\
 	libgnome.h
diff --git a/libgnome/gnome-file-selector.c b/libgnome/gnome-file-selector.c
index 583edf9..e7abdef 100644
--- a/libgnome/gnome-file-selector.c
+++ b/libgnome/gnome-file-selector.c
@@ -322,6 +322,7 @@ add_uri_handler (GnomeSelector *selector, const gchar *uri, gint position,
 {
     GnomeFileSelector *fselector;
     GnomeFileSelectorAsyncData *async_data;
+    GnomeVFSURI *vfs_uri;
     GList fake_list;
 
     g_return_if_fail (selector != NULL);
@@ -332,11 +333,15 @@ add_uri_handler (GnomeSelector *selector, const gchar *uri, gint position,
 
     fselector = GNOME_FILE_SELECTOR (selector);
 
+    vfs_uri = gnome_vfs_uri_new (uri);
+    if (!vfs_uri)
+	return;
+
     async_data = g_new0 (GnomeFileSelectorAsyncData, 1);
     async_data->async_handle = async_handle;
     async_data->type = GNOME_SELECTOR_ASYNC_TYPE_ADD_URI;
     async_data->fselector = fselector;
-    async_data->uri = gnome_vfs_uri_new (uri);
+    async_data->uri = vfs_uri;
     async_data->position = position;
     async_data->list_id = list_id;
 



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