gtk_widget_destroy reports error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+3.0 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
Buggy warnings are displayed in some cases, which can confuses users/coders
* Test case
Build and use the small program attached in the comments, it should display no warning
* Regression potential
The change is a simple null check in the combo widget code, the regression potential is low but make sure combos work in a few softwares just in case
-------
I have recently installed Ubuntu 18.04 on a new computer and have a Gtk+3.0 program that reports an error:-
Gtk-CRITICAL gtk_widget_
The same program runs without error on another computer with 16.04.
The problem occurs when a ComboBoxText widget in a container (grid) is destroyed using gtk_widget_destroy.
Other widgets may be affected but the problem does not occur for GtkScale widgets. The widget does actually get destroyed, but the message is produced in the process.
I have also found that using gtk_container_
inefficient and not preferred.
I have attached a test program to reproduce the error. It also includes a few other things that I tried to see if they made any difference but to no avail. 'Destroy cbox' is the essential test to reproduce.
System details:
Description: Ubuntu 18.04.1 LTS
Release: 18.04
libwxgtk3.0-dev:
Installed: (none)
Candidate: 3.0.4+dfsg-3
Version table:
3.0.4+dfsg-3 500
500 http://
affects: | network-manager-applet (Ubuntu) → ubuntu |
Thank you for your bug report, but how is that a bug in the network indicator? Also you didn't attach the example you mentioned?