Revert "widgets: Update tool item visibility code"
This reverts commit 2ba6725761.
This too is wrong. First it mentions "visible-vertical" and
"visible-horizontal" properties of GtkAction, but this is not it! Two
similarly named properties are also on GtkToolItem and these are not
deprecated! Looking at the code, tool_button is a GimpToolButton, whose
parenting indeed goes up to GtkToolItem (and that's obviously not an
action anyway).
Secondly, it creates other bugs, in particular I now sometimes have a
completely empty toolbox. That's clearly wrong.
Reverting for now. Issue #9813 will have to be fixed differently.
This commit is contained in:
parent
3215e6c967
commit
459f80a6de
1 changed files with 4 additions and 1 deletions
|
|
@ -464,7 +464,10 @@ gimp_tool_palette_add_button (GimpToolPalette *palette,
|
|||
gtk_widget_show (GTK_WIDGET (tool_button));
|
||||
|
||||
g_object_bind_property (tool_item, "shown",
|
||||
tool_button, "visible",
|
||||
tool_button, "visible-horizontal",
|
||||
G_BINDING_SYNC_CREATE);
|
||||
g_object_bind_property (tool_item, "shown",
|
||||
tool_button, "visible-vertical",
|
||||
G_BINDING_SYNC_CREATE);
|
||||
|
||||
button = gtk_bin_get_child (GTK_BIN (tool_button));
|
||||
|
|
|
|||
Loading…
Reference in a new issue