comparison src/gtkutils.c @ 6465:fb64cc87bc96

[gaim-migrate @ 6974] open_url() is gone forever! WOOHOO! Now we have gaim_notify_uri(). Oh, and whitespace changes in some files, because they just really bugged me. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 14 Aug 2003 03:55:13 +0000
parents 5211873190ea
children 70d5122bc3ff
comparison
equal deleted inserted replaced
6464:059649ed25ed 6465:fb64cc87bc96
49 49
50 #ifdef _WIN32 50 #ifdef _WIN32
51 #include "wspell.h" 51 #include "wspell.h"
52 #endif 52 #endif
53 53
54 static void
55 url_clicked_cb(GtkWidget *w, const char *uri)
56 {
57 gaim_notify_uri(NULL, uri);
58 }
59
54 void 60 void
55 gaim_setup_imhtml(GtkWidget *imhtml) 61 gaim_setup_imhtml(GtkWidget *imhtml)
56 { 62 {
57 g_return_if_fail(imhtml != NULL); 63 g_return_if_fail(imhtml != NULL);
58 g_return_if_fail(GTK_IS_IMHTML(imhtml)); 64 g_return_if_fail(GTK_IS_IMHTML(imhtml));
59 65
60 if (!gaim_prefs_get_bool("/gaim/gtk/conversations/show_smileys")) 66 if (!gaim_prefs_get_bool("/gaim/gtk/conversations/show_smileys"))
61 gtk_imhtml_show_smileys(GTK_IMHTML(imhtml), FALSE); 67 gtk_imhtml_show_smileys(GTK_IMHTML(imhtml), FALSE);
62 68
63 g_signal_connect(G_OBJECT(imhtml), "url_clicked", 69 g_signal_connect(G_OBJECT(imhtml), "url_clicked",
64 G_CALLBACK(open_url), NULL); 70 G_CALLBACK(url_clicked_cb), NULL);
65 71
66 smiley_themeize(imhtml); 72 smiley_themeize(imhtml);
67 } 73 }
68 74
69 void 75 void