wms/s: Remove libpurple dependency from sample wms
As far as I could tell, wms/s.c is a sample window manager, made
to demonstrate how to use various features of libgnt. Therefore,
it's a little silly to depend on libpurple functionality for it.
This patch removes the dependency of libpurple from the sample wms
by changing it from trying to toggle the buddy list visibility upon
pressing the keyboard shortcut, to simply presenting any window
named "buddylist".
/**
* @defgroup gnt GNT (GLib Ncurses Toolkit)
*
* GNT is an ncurses toolkit for creating text-mode graphical user interfaces
* in a fast and easy way.
*/
/**
* @file gnt.h GNT API
* @ingroup gnt
*/
/*
* GNT - The GLib Ncurses Toolkit
*
* GNT is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#ifndef GNT_H
#define GNT_H
#include<glib.h>
#include"gntwidget.h"
#include"gntclipboard.h"
#include"gntcolors.h"
#include"gntkeys.h"
/**
* Initialize GNT.
*/
voidgnt_init(void);
/**
* Start running the mainloop for gnt.
*/
voidgnt_main(void);
/**
* Check whether the terminal is capable of UTF8 display.
*
* @return @c FALSE if the terminal is capable of drawing UTF-8, @c TRUE otherwise.
*/
gbooleangnt_ascii_only(void);
/**
* Present a window. If the event was triggered because of user interaction,
* the window is moved to the foreground. Otherwise, the Urgent hint is set.