balsa r7993 - trunk/src
- From: pawels svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7993 - trunk/src
- Date: Sun, 16 Nov 2008 11:46:39 +0000 (UTC)
Author: pawels
Date: Sun Nov 16 11:46:38 2008
New Revision: 7993
URL: http://svn.gnome.org/viewvc/balsa?rev=7993&view=rev
Log:
* src/balsa-mime-widget-{message,text}.c: fall back to gnome_url_Show
if gtk2 >= 2.14.0 is unavailable.
* src/sendmsg-window.c: ditto.
Modified:
trunk/src/balsa-mime-widget-message.c
trunk/src/balsa-mime-widget-text.c
trunk/src/sendmsg-window.c
Modified: trunk/src/balsa-mime-widget-message.c
==============================================================================
--- trunk/src/balsa-mime-widget-message.c (original)
+++ trunk/src/balsa-mime-widget-message.c Sun Nov 16 11:46:38 2008
@@ -20,6 +20,12 @@
*/
#include <string.h>
+#include <gtk/gtk.h>
+
+#if !GTK_CHECK_VERSION(2, 14, 0)
+#include <libgnome/gnome-url.h>
+#endif
+
#include "config.h"
#include "balsa-app.h"
#include "balsa-icons.h"
@@ -286,7 +292,11 @@
GError *err = NULL;
g_return_if_fail(url);
+#if GTK_CHECK_VERSION(2, 14, 0)
gtk_show_uri(NULL, url, gtk_get_current_event_time(), &err);
+#else
+ gnome_url_show(url, &err);
+#endif
if (err) {
balsa_information(LIBBALSA_INFORMATION_WARNING,
_("Error showing %s: %s\n"), url, err->message);
Modified: trunk/src/balsa-mime-widget-text.c
==============================================================================
--- trunk/src/balsa-mime-widget-text.c (original)
+++ trunk/src/balsa-mime-widget-text.c Sun Nov 16 11:46:38 2008
@@ -32,6 +32,10 @@
#include "balsa-mime-widget-text.h"
#include "balsa-cite-bar.h"
+#if !GTK_CHECK_VERSION(2, 14, 0)
+#include <libgnome/gnome-url.h>
+#endif
+
#if HAVE_GTKSOURCEVIEW
#include <gtksourceview/gtksourceview.h>
#include <gtksourceview/gtksourcebuffer.h>
@@ -929,7 +933,11 @@
gtk_statusbar_push(statusbar, context_id, notice);
SCHEDULE_BAR_REFRESH();
g_free(notice);
+#if GTK_CHECK_VERSION(2, 14, 0)
gtk_show_uri(NULL, url->url, gtk_get_current_event_time(), &err);
+#else
+ gnome_url_show(url->url, &err);
+#endif
if (err) {
balsa_information(LIBBALSA_INFORMATION_WARNING,
_("Error showing %s: %s\n"), url->url,
@@ -1214,7 +1222,11 @@
{
GError *err = NULL;
+#if GTK_CHECK_VERSION(2, 14, 0)
gtk_show_uri(NULL, url, gtk_get_current_event_time(), &err);
+#else
+ gnome_url_show(url, &err);
+#endif
if (err) {
balsa_information(LIBBALSA_INFORMATION_WARNING,
_("Error showing %s: %s\n"), url, err->message);
Modified: trunk/src/sendmsg-window.c
==============================================================================
--- trunk/src/sendmsg-window.c (original)
+++ trunk/src/sendmsg-window.c Sun Nov 16 11:46:38 2008
@@ -1809,7 +1809,11 @@
g_return_if_fail(uri != NULL);
g_message("open URL %s", uri);
+#if GTK_CHECK_VERSION(2, 14, 0)
gtk_show_uri(NULL, uri, gtk_get_current_event_time(), &err);
+#else
+ gnome_url_show(uri, &err);
+#endif
if (err) {
balsa_information(LIBBALSA_INFORMATION_WARNING,
_("Error showing %s: %s\n"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]