changeset 4776:6219ffd18c63

[gaim-migrate @ 5096] Fixes the online help link and a compile warning in oscar.c committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 14 Mar 2003 17:41:41 +0000
parents 92ae181271e9
children e23a7e166680
files src/buddy.c src/protocols/oscar/oscar.c
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Fri Mar 14 17:06:00 2003 +0000
+++ b/src/buddy.c	Fri Mar 14 17:41:41 2003 +0000
@@ -106,6 +106,11 @@
        show_log(NULL);
 }
 
+static void gtk_blist_show_onlinehelp_cb()
+{
+       open_url(NULL, "http://gaim.sourceforge.net/documentation.php");
+}
+
 static void gtk_blist_button_im_cb(GtkWidget *w, GtkTreeView *tv)
 {
 	GtkTreeIter iter;
@@ -538,7 +543,7 @@
 
 	/* Help */
 	{ N_("/_Help"), NULL, NULL, 0, "<Branch>" },
-	{ N_("/Help/Online _Help"), "F1", NULL, 0,
+	{ N_("/Help/Online _Help"), "F1", gtk_blist_show_onlinehelp_cb, 0,
 	  "<StockItem>", GTK_STOCK_HELP },
 	{ N_("/Help/_Debug Window"), NULL, toggle_debug, 0, NULL },
 	{ N_("/Help/_About"), NULL, show_about, 0, NULL },
--- a/src/protocols/oscar/oscar.c	Fri Mar 14 17:06:00 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Fri Mar 14 17:41:41 2003 +0000
@@ -5419,15 +5419,14 @@
 {
 	struct oscar_data *od = gc->proto_data;
 	gchar *nombre, *text, *tmp;
-	GSList *curg = gaim_blist_groups(), *curg1, *curb;
+	GSList *curg = gaim_blist_groups(), *curg1;
 	int num=0;
 
 	text = g_strdup(_("You are awaiting authorization from the following buddies:<BR>"));
 
 	for (curg1 = curg; curg1; curg1=g_slist_next(curg1)) {
 		struct group *group = curg1->data;
-		GSList *curb = gaim_blist_members(group);
-		GSList *curb1;
+		GSList *curb = gaim_blist_members(group), *curb1;
 		for (curb1=curb; curb1; curb1=g_slist_next(curb1)) {
 			struct buddy *buddy = curb1->data;
 			if (buddy->account == gc->account && aim_ssi_waitingforauth(od->sess->ssi.local, group->name, buddy->name)) {