63 lines
2.2 KiB
C
63 lines
2.2 KiB
C
/*
|
|
* mooaccelbutton.h
|
|
*
|
|
* Copyright (C) 2004-2005 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
*
|
|
* This program 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.
|
|
*
|
|
* See COPYING file that comes with this distribution.
|
|
*/
|
|
|
|
#ifndef __MOO_ACCEL_BUTTON_H__
|
|
#define __MOO_ACCEL_BUTTON_H__
|
|
|
|
#include <gtk/gtkbutton.h>
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define MOO_TYPE_ACCEL_BUTTON (moo_accel_button_get_type ())
|
|
#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);
|
|
};
|
|
|
|
|
|
GType moo_accel_button_get_type (void) G_GNUC_CONST;
|
|
GtkWidget *moo_accel_button_new (const char *accel);
|
|
|
|
const char *moo_accel_button_get_title (MooAccelButton *button);
|
|
void moo_accel_button_set_title (MooAccelButton *button,
|
|
const char *title);
|
|
|
|
const char *moo_accel_button_get_accel (MooAccelButton *button);
|
|
gboolean moo_accel_button_set_accel (MooAccelButton *button,
|
|
const char *accel);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
#endif /* __MOO_ACCEL_BUTTON_H__ */
|