Open
Bug 409471
Opened 18 years ago
Updated 3 years ago
Cleanup some GTK code for performance
Categories
(Core :: Widget: Gtk, defect, P5)
Tracking
()
NEW
People
(Reporter: ispence, Unassigned)
References
Details
We need to add
gOptionMenuWidget = NULL;
gSpinWidget = NULL;
to moz_gtk_shutdown()
Comment 1•18 years ago
|
||
> We need to add
>
> gOptionMenuWidget = NULL;
> gSpinWidget = NULL;
>
> to moz_gtk_shutdown()
>
Note that those objects have not been added in patches subject of causing 409410.
Comment 2•18 years ago
|
||
Note that setting the pointers to NULL is just cleanup, since all widget were children of the GtkFixed in the gProtoWindow and thus destroyed when gProtoWindow is destroyed just above this code.
Comment 3•18 years ago
|
||
(In reply to comment #2)
> Note that setting the pointers to NULL is just cleanup, since all widget were
> children of the GtkFixed in the gProtoWindow and thus destroyed when
> gProtoWindow is destroyed just above this code.
Why is gTooltipWidget treated specially then in moz_gtk_shutdown()?
if (gTooltipWidget)
gtk_widget_destroy(gTooltipWidget);
/* This will destroy all of our widgets */
if (gProtoWindow)
gtk_widget_destroy(gProtoWindow);
Comment 4•18 years ago
|
||
(In reply to comment #3)
> Why is gTooltipWidget treated specially then in moz_gtk_shutdown()?
Bug 216752 explains, so never mind, I guess.
Comment 5•18 years ago
|
||
(In reply to comment #0)
> We need to add
>
> gOptionMenuWidget = NULL;
> gSpinWidget = NULL;
>
> to moz_gtk_shutdown()
With roc's r+sr+a1.9 from IRC, I landed the addition of those two lines to moz_gtk_shutdown().
Checking in widget/src/gtk2/gtk2drawing.c;
/cvsroot/mozilla/widget/src/gtk2/gtk2drawing.c,v <-- gtk2drawing.c
new revision: 1.62; previous revision: 1.61
done
Leaving this open for any other clean-up.
| Reporter | ||
Comment 6•18 years ago
|
||
Was just thinking.
Could any of this be caused by the fact I forget to set it so the state of toolbar separators don't change? I think that means you get repaints on mouseover when you shouldn't
Comment 7•18 years ago
|
||
(In reply to comment #6)
> Could any of this be caused by the fact I forget to set it so the state of
> toolbar separators don't change? I think that means you get repaints on
> mouseover when you shouldn't
Anything that will help perf is welcome.
Comment 8•6 years ago
|
||
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•