diff options
author | Tim Janik <timj@src.gnome.org> | 1998-01-30 23:47:09 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-01-30 23:47:09 +0000 |
commit | 4af33fa24df69f335f07f43e5904a766c8d8ec97 (patch) | |
tree | ccc23ba16332f44ae45418f6cf9580036c4c76da /gtk/gtktooltips.h | |
parent | ee7038f9fddd0213c65474e5d59609107caed7c6 (diff) | |
download | gdk-pixbuf-4af33fa24df69f335f07f43e5904a766c8d8ec97.tar.gz |
hm, initital refcount revolution commit ;)
still some gnits left, but keep working on it ;)
-timj
Diffstat (limited to 'gtk/gtktooltips.h')
-rw-r--r-- | gtk/gtktooltips.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/gtk/gtktooltips.h b/gtk/gtktooltips.h index 5625aa59b..3bbd09dfd 100644 --- a/gtk/gtktooltips.h +++ b/gtk/gtktooltips.h @@ -19,24 +19,35 @@ #define __GTK_TOOLTIPS_H__ #include <gdk/gdk.h> +#include <gtk/gtkdata.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ +#define GTK_TOOLTIPS(obj) GTK_CHECK_CAST (obj, gtk_tooltips_get_type (), GtkTooltips) +#define GTK_TOOLTIPS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_tooltips_get_type (), GtkTooltipsClass) +#define GTK_IS_TOOLTIPS(obj) GTK_CHECK_TYPE (obj, gtk_tooltips_get_type ()) -typedef struct +typedef struct _GtkTooltips GtkTooltips; +typedef struct _GtkTooltipsClass GtkTooltipsClass; +typedef struct _GtkTooltipsData GtkTooltipsData; + +struct _GtkTooltipsData { + GtkTooltips *tooltips; GtkWidget *widget; gchar *tips_text; GdkFont *font; gint width; GList *row; -} GtkTooltipsData; +}; -typedef struct +struct _GtkTooltips { + GtkData data; + GtkWidget *tip_window; GtkTooltipsData *active_widget; GList *widget_list; @@ -51,31 +62,27 @@ typedef struct gint delay; gint timer_tag; gint timer_active; +}; - gint ref_count; -} GtkTooltips; - +struct _GtkTooltipsClass +{ + GtkDataClass parent_class; +}; +GtkType gtk_tooltips_get_type (void); GtkTooltips* gtk_tooltips_new (void); -GtkTooltips* gtk_tooltips_ref (GtkTooltips *tooltips); -void gtk_tooltips_unref (GtkTooltips *tooltips); void gtk_tooltips_enable (GtkTooltips *tooltips); - void gtk_tooltips_disable (GtkTooltips *tooltips); - void gtk_tooltips_set_delay (GtkTooltips *tooltips, gint delay); - void gtk_tooltips_set_tips (GtkTooltips *tooltips, GtkWidget *widget, const gchar *tips_text); - void gtk_tooltips_set_colors (GtkTooltips *tooltips, GdkColor *background, GdkColor *foreground); - #ifdef __cplusplus } #endif /* __cplusplus */ |