summaryrefslogtreecommitdiff
path: root/gtk/gtktooltips.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-02-17 17:21:21 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-02-17 17:21:21 +0000
commite90d8357a9d9bedba20ac2b6feb67294fb232e28 (patch)
treef8e820165a9452afbb68b59e831634a7edd6a641 /gtk/gtktooltips.h
parentca26902c651c7868c3e9880c0b2864d7ad42554f (diff)
downloadgtk+-e90d8357a9d9bedba20ac2b6feb67294fb232e28.tar.gz
fix screwup with shadowed variables that had broken size request in some
2001-02-17 Havoc Pennington <hp@pobox.com> * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with shadowed variables that had broken size request in some cases, leading to bogus tooltips (#50996) 2001-02-06 Jon K Hellan <hellan@acm.org> Implement fast browsing of tooltips, bug #50619 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay and last_popdown * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay, use_sticky_delay and last_popdown. (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record time of popdown. (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget is NULL. (gtk_tooltips_recently_shown): New static function. Return true if < sticky_delay has elapsed since last popdown. (gtk_tooltips_event_handler): Display window after sticky_delay (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed since last popdown. 2001-02-17 Havoc Pennington <hp@pobox.com> * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void) instead of (). #6394 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add G_CONST_RETURN, make it return by reference, #50473
Diffstat (limited to 'gtk/gtktooltips.h')
-rw-r--r--gtk/gtktooltips.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktooltips.h b/gtk/gtktooltips.h
index 0b9f62a4f9..12adf631d5 100644
--- a/gtk/gtktooltips.h
+++ b/gtk/gtktooltips.h
@@ -68,6 +68,8 @@ struct _GtkTooltips
guint delay : 30;
guint enabled : 1;
gint timer_tag;
+ gboolean use_sticky_delay;
+ GTimeVal last_popdown;
};
struct _GtkTooltipsClass