goffice r2324 - in trunk: . goffice/gtk
- From: jbrefort svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2324 - in trunk: . goffice/gtk
- Date: Thu, 5 Mar 2009 19:39:16 +0000 (UTC)
Author: jbrefort
Date: Thu Mar 5 19:39:16 2009
New Revision: 2324
URL: http://svn.gnome.org/viewvc/goffice?rev=2324&view=rev
Log:
2009-03-05 Jean Brefort <jean brefort normalesup org>
* goffice/gtk/goffice-gtk.c: new go_gtk_show_url function. [#559021]
* goffice/gtk/goffice-gtk.h: ditto.
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/goffice/gtk/goffice-gtk.c
trunk/goffice/gtk/goffice-gtk.h
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Thu Mar 5 19:39:16 2009
@@ -1,5 +1,8 @@
goffice 0.7.4:
+Jean:
+ * Add go_gtk_show_url. [#559021]
+
Morten:
* Fix a pixbuf scaling problem in foocanvas.
Modified: trunk/goffice/gtk/goffice-gtk.c
==============================================================================
--- trunk/goffice/gtk/goffice-gtk.c (original)
+++ trunk/goffice/gtk/goffice-gtk.c Thu Mar 5 19:39:16 2009
@@ -1265,3 +1265,25 @@
*push_in = FALSE;
}
+
+/**
+ * go_gtk_url_show:
+ * @url: the url to show
+ * @screen: screen to show the uri on or %NULL for the default screen
+ *
+ * This function is a simple convenience wrapper for #gtk_show_uri.
+ *
+ * Returns: %NULL on sucess, or a newly allocated #GError if something
+ * went wrong.
+ **/
+GError *
+go_gtk_url_show (gchar const *url, GdkScreen *screen)
+{
+#if defined(HAVE_GTK_SHOW_URI)
+ GError *error = NULL;
+ gtk_show_uri (screen, url, GDK_CURRENT_TIME, &error);
+ return error;
+#else
+ return go_url_show (url);
+#endif
+}
Modified: trunk/goffice/gtk/goffice-gtk.h
==============================================================================
--- trunk/goffice/gtk/goffice-gtk.h (original)
+++ trunk/goffice/gtk/goffice-gtk.h Thu Mar 5 19:39:16 2009
@@ -82,6 +82,8 @@
void go_menu_position_below (GtkMenu *menu, gint *x, gint *y,
gint *push_in, gpointer user_data);
+GError *go_gtk_url_show (gchar const *url, GdkScreen *screen);
+
G_END_DECLS
#endif /* _GOFFICE_GTK_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]