[empathy] Remove empathy_link_button_new(), it's unused
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Remove empathy_link_button_new(), it's unused
- Date: Fri, 21 May 2010 07:50:00 +0000 (UTC)
commit 8125535e64eb29da486f642103eb3b220a280fb7
Author: Xavier Claessens <xclaesse gmail com>
Date: Fri May 21 09:45:03 2010 +0200
Remove empathy_link_button_new(), it's unused
libempathy-gtk/empathy-ui-utils.c | 22 ----------------------
libempathy-gtk/empathy-ui-utils.h | 2 --
2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 13ca0c7..b5e37ca 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1528,28 +1528,6 @@ empathy_url_show (GtkWidget *parent,
g_free (real_url);
}
-static void
-link_button_hook (GtkLinkButton *button,
- const gchar *link_,
- gpointer user_data)
-{
- empathy_url_show (GTK_WIDGET (button), link_);
-}
-
-GtkWidget *
-empathy_link_button_new (const gchar *url,
- const gchar *title)
-{
- static gboolean hook = FALSE;
-
- if (!hook) {
- hook = TRUE;
- gtk_link_button_set_uri_hook (link_button_hook, NULL, NULL);
- }
-
- return gtk_link_button_new_with_label (url, title);
-}
-
void
empathy_send_file (EmpathyContact *contact, GFile *file)
{
diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h
index 6dab137..e2f3e4b 100644
--- a/libempathy-gtk/empathy-ui-utils.h
+++ b/libempathy-gtk/empathy-ui-utils.h
@@ -118,8 +118,6 @@ gchar * empathy_make_absolute_url_len (const gchar *url,
guint len);
void empathy_url_show (GtkWidget *parent,
const char *url);
-GtkWidget * empathy_link_button_new (const gchar *url,
- const gchar *title);
/* File transfer */
void empathy_send_file (EmpathyContact *contact,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]