[goffice] go_url_show: remove.



commit 5905e6d15337ef47d1dfef737f7950e34c8f5aac
Author: Morten Welinder <terra gnome org>
Date:   Fri Mar 16 11:08:58 2012 -0400

    go_url_show: remove.
    
    Every use was a multihead bug.

 ChangeLog                               |    3 +++
 docs/reference/TODO                     |    1 -
 docs/reference/goffice-0.8-sections.txt |    1 -
 goffice/utils/go-file.c                 |   15 ---------------
 goffice/utils/go-file.h                 |    1 -
 5 files changed, 3 insertions(+), 18 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 855d7a9..3a7112c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-03-16  Morten Welinder  <terra gnome org>
 
+	* goffice/utils/go-file.c (go_url_show): Remove.  (Use
+	go_gtk_url_show instead.)
+
 	* goffice/gtk/goffice-gtk.c (go_gtk_help_button_init): Hook up
 	cb_help normally, ie., not swapped.
 	(go_help_display): Add argument screen so we can show help on the
diff --git a/docs/reference/TODO b/docs/reference/TODO
index abcbb03..dd7247c 100644
--- a/docs/reference/TODO
+++ b/docs/reference/TODO
@@ -838,7 +838,6 @@ go_file_open
 go_file_create
 go_file_split_urls
 go_url_encode
-go_url_show
 go_url_check_extension
 go_get_mime_type
 go_get_mime_type_for_data
diff --git a/docs/reference/goffice-0.8-sections.txt b/docs/reference/goffice-0.8-sections.txt
index bf5f769..14c8ef6 100644
--- a/docs/reference/goffice-0.8-sections.txt
+++ b/docs/reference/goffice-0.8-sections.txt
@@ -2726,7 +2726,6 @@ go_url_check_extension
 go_url_encode
 go_url_make_relative
 go_url_resolve_relative
-go_url_show
 go_url_simplify
 </SECTION>
 
diff --git a/goffice/utils/go-file.c b/goffice/utils/go-file.c
index fe229cf..92c5e68 100644
--- a/goffice/utils/go-file.c
+++ b/goffice/utils/go-file.c
@@ -952,21 +952,6 @@ go_url_encode (gchar const *text, int type)
 	return g_string_free (result, FALSE);
 }
 
-/* You probably want go_gtk_url_show instead! */
-GError *
-go_url_show (gchar const *url)
-{
-#ifdef GOFFICE_WITH_GTK
-	GError *error = NULL;
-	gtk_show_uri (NULL, url, GDK_CURRENT_TIME, &error);
-	return error;
-#else
-	GError *error = NULL;
-	g_app_info_launch_default_for_uri (url, NULL, &error);
-	return error;
-#endif
-}
-
 /**
  * go_url_check_extension
  * @uri: Uri
diff --git a/goffice/utils/go-file.h b/goffice/utils/go-file.h
index ff4321b..62fb57c 100644
--- a/goffice/utils/go-file.h
+++ b/goffice/utils/go-file.h
@@ -87,7 +87,6 @@ time_t go_file_get_date_changed  (char const *uri);
 gint	 go_file_access (char const *uri, gint mode);
 
 gchar	*go_url_encode		(gchar const *text, int type);
-GError	*go_url_show		(gchar const *url);
 gboolean go_url_check_extension (gchar const *uri,
 				 gchar const *std_ext,
 				 gchar **new_uri);



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