2005-06-22 18:20:32 +00:00
|
|
|
/*
|
2005-10-13 14:08:18 +00:00
|
|
|
* mooaccelbutton.h
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2007-06-24 12:56:20 -05:00
|
|
|
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2007-06-24 12:56:20 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
2007-09-23 11:47:28 -05:00
|
|
|
* License version 2.1 as published by the Free Software Foundation.
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2007-04-12 10:31:28 -05:00
|
|
|
#ifndef MOO_ACCEL_BUTTON_H
|
|
|
|
#define MOO_ACCEL_BUTTON_H
|
2005-06-22 18:20:32 +00:00
|
|
|
|
|
|
|
#include <gtk/gtkbutton.h>
|
|
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2006-08-15 02:09:09 -05:00
|
|
|
#define MOO_TYPE_ACCEL_BUTTON (_moo_accel_button_get_type ())
|
2005-06-22 18:20:32 +00:00
|
|
|
#define MOO_ACCEL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOO_TYPE_ACCEL_BUTTON, MooAccelButton))
|
|
|
|
#define MOO_ACCEL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_ACCEL_BUTTON, MooAccelButtonClass))
|
|
|
|
#define MOO_IS_ACCEL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOO_TYPE_ACCEL_BUTTON))
|
|
|
|
#define MOO_IS_ACCEL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_ACCEL_BUTTON))
|
|
|
|
#define MOO_ACCEL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_ACCEL_BUTTON, MooAccelButtonClass))
|
|
|
|
|
|
|
|
typedef struct _MooAccelButton MooAccelButton;
|
|
|
|
typedef struct _MooAccelButtonClass MooAccelButtonClass;
|
|
|
|
|
|
|
|
struct _MooAccelButton {
|
|
|
|
GtkButton parent;
|
|
|
|
|
|
|
|
char *accel;
|
|
|
|
char *title;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _MooAccelButtonClass {
|
|
|
|
GtkButtonClass parent_class;
|
|
|
|
|
|
|
|
void (* accel_set) (MooAccelButton *button,
|
|
|
|
const char *accel);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-08-15 02:09:09 -05:00
|
|
|
GType _moo_accel_button_get_type (void) G_GNUC_CONST;
|
2005-06-22 18:20:32 +00:00
|
|
|
|
2006-08-15 02:09:09 -05:00
|
|
|
const char *_moo_accel_button_get_accel (MooAccelButton *button);
|
|
|
|
gboolean _moo_accel_button_set_accel (MooAccelButton *button,
|
2005-06-22 18:20:32 +00:00
|
|
|
const char *accel);
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
2007-04-12 10:31:28 -05:00
|
|
|
#endif /* MOO_ACCEL_BUTTON_H */
|