Open Bug 409471 Opened 18 years ago Updated 3 years ago

Cleanup some GTK code for performance

Categories

(Core :: Widget: Gtk, defect, P5)

x86
Linux
defect

Tracking

()

People

(Reporter: ispence, Unassigned)

References

Details

We need to add gOptionMenuWidget = NULL; gSpinWidget = NULL; to moz_gtk_shutdown()
> 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.
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.
(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);
(In reply to comment #3) > Why is gTooltipWidget treated specially then in moz_gtk_shutdown()? Bug 216752 explains, so never mind, I guess.
(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.
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
(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.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.