Removed extra/un-needed gtk_widget_show_all
calls
This commit is contained in:
parent
fe9897a0df
commit
30aff354bb
|
@ -275,7 +275,6 @@ class GtkMenu extends GtkBaseMenuItem implements MenuPeer {
|
||||||
if (image != null) {
|
if (image != null) {
|
||||||
Gtk2.gtk_container_remove(_native, image); // will automatically get destroyed if no other references to it
|
Gtk2.gtk_container_remove(_native, image); // will automatically get destroyed if no other references to it
|
||||||
image = null;
|
image = null;
|
||||||
Gtk2.gtk_widget_show_all(_native);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menuItem.getImage() != null) {
|
if (menuItem.getImage() != null) {
|
||||||
|
|
|
@ -83,7 +83,6 @@ class GtkMenuItem extends GtkBaseMenuItem implements MenuItemPeer, GCallback {
|
||||||
if (image != null) {
|
if (image != null) {
|
||||||
Gtk2.gtk_container_remove(_native, image); // will automatically get destroyed if no other references to it
|
Gtk2.gtk_container_remove(_native, image); // will automatically get destroyed if no other references to it
|
||||||
image = null;
|
image = null;
|
||||||
Gtk2.gtk_widget_show_all(_native);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menuItem.getImage() != null) {
|
if (menuItem.getImage() != null) {
|
||||||
|
|
|
@ -274,7 +274,6 @@ class GtkMenuItemCheckbox extends GtkBaseMenuItem implements CheckboxPeer, GCall
|
||||||
if (checkedImage != null) {
|
if (checkedImage != null) {
|
||||||
Gtk2.gtk_container_remove(_native, checkedImage); // will automatically get destroyed if no other references to it
|
Gtk2.gtk_container_remove(_native, checkedImage); // will automatically get destroyed if no other references to it
|
||||||
checkedImage = null;
|
checkedImage = null;
|
||||||
Gtk2.gtk_widget_show_all(_native);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user