From e90d8357a9d9bedba20ac2b6feb67294fb232e28 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 17 Feb 2001 17:21:21 +0000 Subject: fix screwup with shadowed variables that had broken size request in some 2001-02-17 Havoc Pennington * 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 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 * 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 --- gtk/gtkprogressbar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/gtkprogressbar.h') diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h index b4252960e3..266c5049ac 100644 --- a/gtk/gtkprogressbar.h +++ b/gtk/gtkprogressbar.h @@ -128,9 +128,9 @@ void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, void gtk_progress_bar_set_orientation (GtkProgressBar *pbar, GtkProgressBarOrientation orientation); -gchar* gtk_progress_bar_get_text (GtkProgressBar *pbar); -gfloat gtk_progress_bar_get_fraction (GtkProgressBar *pbar); -gfloat gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar); +G_CONST_RETURN gchar* gtk_progress_bar_get_text (GtkProgressBar *pbar); +gfloat gtk_progress_bar_get_fraction (GtkProgressBar *pbar); +gfloat gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar); GtkProgressBarOrientation gtk_progress_bar_get_orientation (GtkProgressBar *pbar); -- cgit v1.2.1