pidgin: 66d0d0a2: Show the url, instead of silently ignori...
sadrul at pidgin.im
sadrul at pidgin.im
Sun May 4 20:05:44 EDT 2008
-----------------------------------------------------------------
Revision: 66d0d0a2b055456da3c96fe56ee490a85d18aa22
Ancestor: fd127d13225846192ca2138f6d1c2663165dc74b
Author: sadrul at pidgin.im
Date: 2008-05-05T00:02:37
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/66d0d0a2b055456da3c96fe56ee490a85d18aa22
Modified files:
finch/gntnotify.c
ChangeLog:
Show the url, instead of silently ignoring a url-open request.
-------------- next part --------------
============================================================
--- finch/gntnotify.c 2fbafd45b4973ff8da75efa9685a3b0b39d46567
+++ finch/gntnotify.c db19417820b314eff06a0ad9a2fcd394b23da9e3
@@ -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
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(PurpleConnect
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,
More information about the Commits
mailing list