aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-01-11 22:20:50 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-01-11 22:20:50 +0800
commite0610b2e0cea191f631dc825cdc8023cdcd9433d (patch)
tree239b20ce4632d6538b9c664ddec883b6e19c11b5 /addressbook/gui
parent59d1f3405c653eb45ca462508d5e6ed968513e42 (diff)
downloadgsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.gz
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.bz2
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.lz
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.xz
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.zst
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.zip
Continue chipping away at EMFolderView and EMFolderBrowser.
Migrate from gnome_url_show() to e_show_uri(). svn path=/branches/kill-bonobo/; revision=37038
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/e-book-shell-content.c2
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c32
2 files changed, 9 insertions, 25 deletions
diff --git a/addressbook/gui/component/e-book-shell-content.c b/addressbook/gui/component/e-book-shell-content.c
index c9066c9ef1..52549f0122 100644
--- a/addressbook/gui/component/e-book-shell-content.c
+++ b/addressbook/gui/component/e-book-shell-content.c
@@ -188,7 +188,7 @@ book_shell_content_constructed (GObject *object)
g_signal_connect_swapped (
priv->preview, "send-message",
- book_shell_content_send_message_cb, object);
+ G_CALLBACK (book_shell_content_send_message_cb), object);
/* Bind GObject properties to GConf keys. */
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index 0208c4fd0f..02aa5b81f0 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -27,13 +27,13 @@
#include "eab-contact-display.h"
#include "eab-gui-util.h"
+#include "e-util/e-util.h"
#include "e-util/e-html-utils.h"
#include "e-util/e-icon-factory.h"
#include "e-util/e-plugin-ui.h"
#include <string.h>
#include <glib/gi18n.h>
-#include <libgnome/gnome-url.h>
#include <gtkhtml/gtkhtml.h>
#include <gtkhtml/gtkhtml-stream.h>
@@ -158,18 +158,8 @@ static void
action_open_link_cb (GtkAction *action,
EABContactDisplay *display)
{
- GdkScreen *screen;
- const gchar *uri;
- GError *error = NULL;
-
- screen = gtk_widget_get_screen (GTK_WIDGET (display));
- uri = display->priv->selected_uri;
- g_return_if_fail (uri != NULL);
-
- if (!gtk_show_uri (screen, uri, GDK_CURRENT_TIME, &error)) {
- g_warning ("%s", error->message);
- g_error_free (error);
- }
+ /* XXX Pass a parent window. */
+ e_show_uri (NULL, display->priv->selected_uri);
}
static void
@@ -287,18 +277,16 @@ contact_display_on_url_requested (GtkHTML *html,
static void
contact_display_on_link_clicked (GtkHTML *html,
- const gchar *url,
+ const gchar *uri,
EABContactDisplay *display)
{
- GError *err = NULL;
-
#ifdef HANDLE_MAILTO_INTERNALLY
- if (!strncmp (url, "internal-mailto:", strlen ("internal-mailto:"))) {
+ if (!strncmp (uri, "internal-mailto:", strlen ("internal-mailto:"))) {
EDestination *destination;
EContact *contact;
gint email_num;
- email_num = atoi (url + strlen ("internal-mailto:"));
+ email_num = atoi (uri + strlen ("internal-mailto:"));
if (email_num == -1)
return;
@@ -312,12 +300,8 @@ contact_display_on_link_clicked (GtkHTML *html,
}
#endif
- gnome_url_show (url, &err);
-
- if (err) {
- g_warning ("gnome_url_show: %s", err->message);
- g_error_free (err);
- }
+ /* FIXME Pass a parent window. */
+ e_show_uri (NULL, uri);
}
static void