Mercurial > pidgin
changeset 1392:dc6ba774bfc5
[gaim-migrate @ 1402]
erg
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 07 Jan 2001 20:39:03 +0000 |
parents | d606da211acb |
children | 3b5c7f8bb2b5 |
files | ChangeLog plugins/SIGNALS src/buddy.c |
diffstat | 3 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 07 19:55:08 2001 +0000 +++ b/ChangeLog Sun Jan 07 20:39:03 2001 +0000 @@ -5,6 +5,7 @@ * ICQ Alias problem fixed * Negative times fixed * Cannot create blank away messages/messages with blank titles + * Can right-click Edit Buddies list to alias/add pounce/etc. version 0.11.0-pre4: * ICQ upgraded to use icqlib 1.1.0
--- a/plugins/SIGNALS Sun Jan 07 19:55:08 2001 +0000 +++ b/plugins/SIGNALS Sun Jan 07 20:39:03 2001 +0000 @@ -97,8 +97,11 @@ 'text' is the actual strict text (with HTML tags and all) of the message you're sending. - Note that you can modify outgoing text. (You are _not_ encouraged to - do so ;-) .) + Note that you can modify outgoing text. The **text points to a g_malloc'd + data chunk that contains the text. If your plugin changes it, it should + either not add length to the string, or g_free *text and g_malloc a new + segment. Since plugins can modify this, you should not try and remember it + in your plugin. event_buddy_signon: struct gaim_connection *gc, char *who @@ -198,6 +201,8 @@ Be aware that you receive messages you send (as noted above). This event will be called before you actually send the message though. + The **text pointer behaves the same as the **text pointer for the + event_im_send event above; so read the note about it there. event_warned: char *who, int level
--- a/src/buddy.c Sun Jan 07 19:55:08 2001 +0000 +++ b/src/buddy.c Sun Jan 07 20:39:03 2001 +0000 @@ -484,7 +484,7 @@ GtkWidget *menu; GtkWidget *button; - if (event->button != 3) + if (event->button != 3 || event->type != GDK_BUTTON_PRESS) return TRUE; if (!gtk_clist_get_selection_info(GTK_CLIST(edittree), event->x, event->y, &row, &column)) @@ -510,6 +510,12 @@ struct buddy *b = (struct buddy *)type; menu = gtk_menu_new(); + button = gtk_menu_item_new_with_label(_("Alias")); + gtk_signal_connect(GTK_OBJECT(button), "activate", + GTK_SIGNAL_FUNC(pressed_alias), b); + gtk_menu_append(GTK_MENU(menu), button); + gtk_widget_show(button); + button = gtk_menu_item_new_with_label(_("Add Buddy Pounce")); gtk_signal_connect(GTK_OBJECT(button), "activate", GTK_SIGNAL_FUNC(new_bp_callback), b->name);