diff options
author | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2008-05-05 00:02:37 +0000 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2008-05-05 00:02:37 +0000 |
commit | 2fb80fdd7fe5f2bb28c6728fcf7e9fdbe80d9895 (patch) | |
tree | cb892a78325af0b72247484d1844695d0cd06af8 | |
parent | 72b46e6f2e0e1b2651f23bd30c59d638dba3ac52 (diff) | |
download | pidgin-2fb80fdd7fe5f2bb28c6728fcf7e9fdbe80d9895.tar.gz |
Show the url, instead of silently ignoring a url-open request.
-rw-r--r-- | finch/gntnotify.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/finch/gntnotify.c b/finch/gntnotify.c index 70f82405cf..2aff2b0e94 100644 --- a/finch/gntnotify.c +++ b/finch/gntnotify.c @@ -29,6 +29,7 @@ #include <gntlabel.h> #include <gnttree.h> #include <gntutils.h> +#include <gntwindow.h> #include "finch.h" @@ -66,8 +67,7 @@ finch_notify_message(PurpleNotifyMsgType type, const char *title, 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 @@ finch_notify_searchresults(PurpleConnection *gc, const char *title, 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 @@ static PurpleNotifyUiOps ops = 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, |