static GtkWidgetClass *parent_class = NULL;
-#define ZAK_GTK_DECODER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_FORM_DECODER, ZakGtkDecoderPrivate))
+#define ZAK_GTK_DECODER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_GTK_TYPE_DECODER, ZakGtkDecoderPrivate))
typedef struct _ZakGtkDecoderPrivate ZakGtkDecoderPrivate;
struct _ZakGtkDecoderPrivate
{
ZakGtkDecoderPrivate *priv;
- g_return_if_fail (GTK_IS_FORM_DECODER (decoder));
+ g_return_if_fail (ZAK_GTK_IS_DECODER (decoder));
priv = ZAK_GTK_DECODER_GET_PRIVATE (decoder);
{
ZakGtkDecoderPrivate *priv;
- g_return_val_if_fail (GTK_IS_FORM_DECODER (decoder), NULL);
+ g_return_val_if_fail (ZAK_GTK_IS_DECODER (decoder), NULL);
priv = ZAK_GTK_DECODER_GET_PRIVATE (decoder);
{
ZakGtkDecoderPrivate *priv;
- g_return_val_if_fail (GTK_IS_FORM_DECODER (decoder), NULL);
+ g_return_val_if_fail (ZAK_GTK_IS_DECODER (decoder), NULL);
priv = ZAK_GTK_DECODER_GET_PRIVATE (decoder);
{
ZakGtkDecoderPrivate *priv;
- g_return_if_fail (GTK_IS_FORM_DECODER (decoder));
+ g_return_if_fail (ZAK_GTK_IS_DECODER (decoder));
priv = ZAK_GTK_DECODER_GET_PRIVATE (decoder);
guint border_width;
- g_return_if_fail (GTK_IS_FORM_DECODER (widget));
+ g_return_if_fail (ZAK_GTK_IS_DECODER (widget));
g_return_if_fail (requisition != NULL);
decoder = ZAK_GTK_DECODER (widget);
guint border_width;
- g_return_if_fail (GTK_IS_FORM_DECODER (widget));
+ g_return_if_fail (ZAK_GTK_IS_DECODER (widget));
g_return_if_fail (allocation != NULL);
decoder = ZAK_GTK_DECODER (widget);
G_BEGIN_DECLS
-#define GTK_TYPE_FORM_DECODER (zak_gtk_decoder_get_type ())
-#define ZAK_GTK_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FORM_DECODER, ZakGtkDecoder))
-#define ZAK_GTK_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FORM_DECODER, ZakGtkDecoderClass))
-#define GTK_IS_FORM_DECODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FORM_DECODER))
-#define GTK_IS_FORM_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FORM_DECODER))
-#define ZAK_GTK_DECODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FORM_DECODER, ZakGtkDecoderClass))
-
-
-typedef struct _ZakGtkDecoder ZakGtkDecoder;
-typedef struct _ZakGtkDecoderClass ZakGtkDecoderClass;
-
-
-struct _ZakGtkDecoder
-{
- GtkBin parent;
-};
+#define ZAK_GTK_TYPE_DECODER zak_gtk_decoder_get_type ()
+G_DECLARE_DERIVABLE_TYPE (ZakGtkDecoder, zak_gtk_decoder, ZAK_GTK, DECODER, GtkBin)
struct _ZakGtkDecoderClass
{
};
-GType zak_gtk_decoder_get_type (void) G_GNUC_CONST;
-
GtkWidget *zak_gtk_decoder_new (void);
void zak_gtk_decoder_set_key (ZakGtkDecoder *decoder, const gchar *key);