Mercurial > pidgin
changeset 22843:a9141d049266
Show the url, instead of silently ignoring a url-open request.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 05 May 2008 00:02:37 +0000 |
parents | 7b21c5b208fb |
children | 78ee2ec009e8 |
files | finch/gntnotify.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntnotify.c Mon May 05 00:00:25 2008 +0000 +++ b/finch/gntnotify.c Mon May 05 00:02:37 2008 +0000 @@ -29,6 +29,7 @@ #include <gntlabel.h> #include <gnttree.h> #include <gntutils.h> +#include <gntwindow.h> #include "finch.h" @@ -66,8 +67,7 @@ break; } - window = gnt_box_new(FALSE, TRUE); - gnt_box_set_toplevel(GNT_BOX(window), TRUE); + window = gnt_window_box_new(FALSE, TRUE); gnt_box_set_title(GNT_BOX(window), title); gnt_box_set_fill(GNT_BOX(window), FALSE); gnt_box_set_alignment(GNT_BOX(window), GNT_ALIGN_MID); @@ -420,6 +420,12 @@ return tree; } +static void * +finch_notify_uri(const char *url) +{ + return finch_notify_message(PURPLE_NOTIFY_URI, _("URI"), url, NULL); +} + static PurpleNotifyUiOps ops = { finch_notify_message, @@ -429,7 +435,7 @@ finch_notify_searchresults, finch_notify_sr_new_rows, finch_notify_userinfo, - NULL, /* notify_uri is of low-priority to me. --sadrul */ + finch_notify_uri, finch_close_notify, /* The rest of the notify-uiops return a GntWidget. These widgets should be destroyed from here. */ NULL,