Re: Some small bugs
- From: Havoc Pennington <hp redhat com>
- To: Alexander Larsson <alla lysator liu se>
- Cc: gtk-devel-list gnome org
- Subject: Re: Some small bugs
- Date: 20 Feb 2001 09:26:22 -0500
Alexander Larsson <alla lysator liu se> writes:
> When the selectability of a GtkLabel is changed, it must queue a redraw,
> since it might have something selected:
>
> Index: gtk/gtklabel.c
> ===================================================================
> RCS file: /cvs/gnome/gtk+/gtk/gtklabel.c,v
> retrieving revision 1.73
> diff -u -p -r1.73 gtklabel.c
> --- gtk/gtklabel.c 2001/02/17 17:21:21 1.73
> +++ gtk/gtklabel.c 2001/02/20 13:28:15
> @@ -1306,6 +1306,7 @@ gtk_label_set_selectable (GtkLabel *labe
> label->select_info = NULL;
> }
> }
> + gtk_widget_queue_draw (GTK_WIDGET (label));
> }
Yep, that one is right. (Except you may want to move the queue_draw
inside a 'if (setting != original_setting)' type of thing.)
No opinion on the treeitem one.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]