summaryrefslogtreecommitdiff
path: root/gtk/gtktooltips.h
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1998-01-30 23:47:09 +0000
committerTim Janik <timj@src.gnome.org>1998-01-30 23:47:09 +0000
commit4af33fa24df69f335f07f43e5904a766c8d8ec97 (patch)
treeccc23ba16332f44ae45418f6cf9580036c4c76da /gtk/gtktooltips.h
parentee7038f9fddd0213c65474e5d59609107caed7c6 (diff)
downloadgtk+-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.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/gtk/gtktooltips.h b/gtk/gtktooltips.h
index 5625aa59b9..3bbd09dfd5 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 */