]> git.0d.be Git - empathy.git/commitdiff
Remove empathy_link_button_new(), it's unused
authorXavier Claessens <xclaesse@gmail.com>
Fri, 21 May 2010 07:45:03 +0000 (09:45 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Fri, 21 May 2010 07:49:41 +0000 (09:49 +0200)
libempathy-gtk/empathy-ui-utils.c
libempathy-gtk/empathy-ui-utils.h

index 13ca0c727331aae1ccf7600cc3d0fd19ef64be2a..b5e37cade5b0fe55b2d9a0dc0d795742487570f8 100644 (file)
@@ -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)
 {
index 6dab137890e82d767f6ff1aabcc3c904d4aaf181..e2f3e4b2d8ffd928de33242b9bc30789ec87ac3c 100644 (file)
@@ -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,