gtk/plugins/perl/common/GtkMenuTray.xs

Sat, 02 Sep 2006 05:31:10 +0000

author
Etan Reisner <deryni@pidgin.im>
date
Sat, 02 Sep 2006 05:31:10 +0000
changeset 14478
a6b831ab1d13
child 14629
1a0cd727c121
permissions
-rw-r--r--

[gaim-migrate @ 17124]
This is a Gaim::Gtk perl module for use by gaim plugins to get access to the
gtkgaim interface functions. It isn't complete because anything dealing with
Gtk widgets themselves doesn't work yet (I need to figure out the best way to
do that). To use this a perl plugin just needs to include 'use Gaim::Gtk;'
either on top of 'use Gaim;' or instead of it.

I'm not done with this yet.
At the moment you have to 'use Gaim;' or 'use Gaim::Gtk;' which loads all the
parts, I'm planning to let you actually say 'use Gaim::Gtk::Debug;' to just
get the gtkdebug.h functions. Though 'use Gaim' would work the same way as
always.

#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
gaim_gtk_menu_tray_new()

Gtk::Widget
gaim_gtk_menu_tray_get_box(menu_tray)
	Gaim::Gtk::MenuTray menu_tray

void
gaim_gtk_menu_tray_append(menu_tray, widget, tooltip)
	Gaim::Gtk::MenuTray menu_tray
	Gtk::Widget widget
	const char * tooltip

void
gaim_gtk_menu_tray_prepend(menu_tray, widget, tooltip)
	Gaim::Gtk::MenuTray menu_tray
	Gtk::Widget widget
	const char * tooltip

void
gaim_gtk_menu_tray_set_tooltip(menu_tray, widget, tooltip)
	Gaim::Gtk::MenuTray menu_tray
	Gtk::Widget widget
	const char * tooltip
*/

MODULE = Gaim::Gtk::MenuTray  PACKAGE = Gaim::Gtk::MenuTray  PREFIX = gaim_gtk_menu_tray
PROTOTYPES: ENABLE

mercurial