mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
Remove the old widget from the tool button before overwriting it with the
Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget, gtk_tool_button_set_icon_widget): Remove the old widget from the tool button before overwriting it with the new widget. (#140508, Todd Goyen)
This commit is contained in:
parent
215cabd938
commit
a92c54108e
@ -1,3 +1,11 @@
|
||||
Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
|
||||
gtk_tool_button_set_icon_widget): Remove the old widget from the
|
||||
tool button before overwriting it with the new widget.
|
||||
|
||||
(#140508, Todd Goyen)
|
||||
|
||||
2004-04-22 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Fix the file chooser on Windows. I can't make it misbehave or
|
||||
|
@ -1,3 +1,11 @@
|
||||
Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
|
||||
gtk_tool_button_set_icon_widget): Remove the old widget from the
|
||||
tool button before overwriting it with the new widget.
|
||||
|
||||
(#140508, Todd Goyen)
|
||||
|
||||
2004-04-22 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Fix the file chooser on Windows. I can't make it misbehave or
|
||||
|
@ -1,3 +1,11 @@
|
||||
Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
|
||||
gtk_tool_button_set_icon_widget): Remove the old widget from the
|
||||
tool button before overwriting it with the new widget.
|
||||
|
||||
(#140508, Todd Goyen)
|
||||
|
||||
2004-04-22 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Fix the file chooser on Windows. I can't make it misbehave or
|
||||
|
@ -1,3 +1,11 @@
|
||||
Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
|
||||
gtk_tool_button_set_icon_widget): Remove the old widget from the
|
||||
tool button before overwriting it with the new widget.
|
||||
|
||||
(#140508, Todd Goyen)
|
||||
|
||||
2004-04-22 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Fix the file chooser on Windows. I can't make it misbehave or
|
||||
|
@ -1,3 +1,11 @@
|
||||
Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
|
||||
gtk_tool_button_set_icon_widget): Remove the old widget from the
|
||||
tool button before overwriting it with the new widget.
|
||||
|
||||
(#140508, Todd Goyen)
|
||||
|
||||
2004-04-22 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Fix the file chooser on Windows. I can't make it misbehave or
|
||||
|
@ -842,8 +842,16 @@ gtk_tool_button_set_icon_widget (GtkToolButton *button,
|
||||
if (icon_widget != button->priv->icon_widget)
|
||||
{
|
||||
if (button->priv->icon_widget)
|
||||
g_object_unref (G_OBJECT (button->priv->icon_widget));
|
||||
{
|
||||
if (button->priv->icon_widget->parent)
|
||||
{
|
||||
gtk_container_remove (GTK_CONTAINER (button->priv->icon_widget->parent),
|
||||
button->priv->icon_widget);
|
||||
}
|
||||
|
||||
g_object_unref (G_OBJECT (button->priv->icon_widget));
|
||||
}
|
||||
|
||||
if (icon_widget)
|
||||
{
|
||||
g_object_ref (icon_widget);
|
||||
@ -881,8 +889,16 @@ gtk_tool_button_set_label_widget (GtkToolButton *button,
|
||||
if (label_widget != button->priv->label_widget)
|
||||
{
|
||||
if (button->priv->label_widget)
|
||||
g_object_unref (button->priv->label_widget);
|
||||
|
||||
{
|
||||
if (button->priv->icon_widget->parent)
|
||||
{
|
||||
gtk_container_remove (GTK_CONTAINER (button->priv->icon_widget->parent),
|
||||
button->priv->icon_widget);
|
||||
}
|
||||
|
||||
g_object_unref (button->priv->label_widget);
|
||||
}
|
||||
|
||||
if (label_widget)
|
||||
{
|
||||
g_object_ref (label_widget);
|
||||
|
Loading…
Reference in New Issue
Block a user