pidgin/plugins/perl/common/GtkMenuTray.xs

Sat, 17 Apr 2010 01:27:04 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Sat, 17 Apr 2010 01:27:04 +0000
changeset 30027
2ab6e591cf72
parent 15590
c07dd12bf3f4
child 18068
b6554e3c8224
permissions
-rw-r--r--

Add network listen functions that accept a family argument (AF_INET(6?)).

These allow code to portably support IPv6 for listeners (mostly file
transfers and Bonjour). Callers should use the purple_socket_speaks_ipv4
to determine whether they need two sockets or just an IPv6 one. I used
GIO's g_socket_speaks_ipv4 as the inspiration for that.

#include "gtkmodule.h"

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
Gtk::Widget
pidgin_menu_tray_new()

Gtk::Widget
pidgin_menu_tray_get_box(menu_tray)
	Pidgin::MenuTray menu_tray

void
pidgin_menu_tray_append(menu_tray, widget, tooltip)
	Pidgin::MenuTray menu_tray
	Gtk::Widget widget
	const char * tooltip

void
pidgin_menu_tray_prepend(menu_tray, widget, tooltip)
	Pidgin::MenuTray menu_tray
	Gtk::Widget widget
	const char * tooltip

void
pidgin_menu_tray_set_tooltip(menu_tray, widget, tooltip)
	Pidgin::MenuTray menu_tray
	Gtk::Widget widget
	const char * tooltip
*/

MODULE = Pidgin::MenuTray  PACKAGE = Pidgin::MenuTray  PREFIX = pidgin_menu_tray
PROTOTYPES: ENABLE

mercurial