forked from AuroraMiddleware/gtk
treeviewcolumn: Another case of box <> frame confusion
Don't call your boxes frames, folks!
This commit is contained in:
parent
6140dafecf
commit
d798527290
@ -926,7 +926,10 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column)
|
||||
if (priv->child)
|
||||
{
|
||||
if (current_child != priv->child)
|
||||
gtk_frame_set_child (GTK_FRAME (frame), priv->child);
|
||||
{
|
||||
gtk_container_remove (GTK_CONTAINER (frame), current_child);
|
||||
gtk_container_add (GTK_CONTAINER (frame), priv->child);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -934,7 +937,7 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column)
|
||||
{
|
||||
current_child = gtk_label_new (NULL);
|
||||
gtk_widget_show (current_child);
|
||||
gtk_frame_set_child (GTK_FRAME (frame), current_child);
|
||||
gtk_container_add (GTK_CONTAINER (frame), current_child);
|
||||
}
|
||||
|
||||
g_return_if_fail (GTK_IS_LABEL (current_child));
|
||||
|
Loading…
Reference in New Issue
Block a user