medit/moo/mooutils/moohelp.h

48 lines
1.7 KiB
C
Raw Normal View History

/*
* moohelp.h
*
2010-11-07 01:20:45 -08:00
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@sourceforge.net>
*
* This file is part of medit. medit is free software; you can
* redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License,
* or (at your option) any later version.
*
* You should have received a copy of the GNU Lesser General Public
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
*/
2007-09-07 23:59:37 -05:00
#ifndef MOO_HELP_H
#define MOO_HELP_H
#include <gtk/gtkdialog.h>
2009-11-14 11:57:35 -08:00
G_BEGIN_DECLS
2007-09-07 23:59:37 -05:00
#define MOO_HELP_ID_CONTENTS "contents"
2007-11-22 16:07:19 -06:00
#define MOO_HELP_ID_INDEX "index"
2007-09-07 23:59:37 -05:00
typedef gboolean (*MooHelpFunc) (GtkWidget *widget,
gpointer data);
gboolean moo_help_open (GtkWidget *widget);
void moo_help_open_any (GtkWidget *widget);
void moo_help_open_id (const char *id,
GtkWidget *parent);
void moo_help_set_id (GtkWidget *widget,
const char *id);
void moo_help_set_func (GtkWidget *widget,
gboolean (*func) (GtkWidget*));
void moo_help_set_func_full (GtkWidget *widget,
MooHelpFunc func,
gpointer func_data,
GDestroyNotify notify);
void moo_help_connect_keys (GtkWidget *widget);
2009-11-14 11:57:35 -08:00
G_END_DECLS
2007-09-07 23:59:37 -05:00
#endif /* MOO_HELP_H */