[gtk/matthiasc/for-master: 20/21] treeviewcolumn: Another case of box <> frame confusion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 20/21] treeviewcolumn: Another case of box <> frame confusion
- Date: Sun, 10 May 2020 20:29:21 +0000 (UTC)
commit 3402619b3f00bda72975dd9d695caa5e70a7dbba
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 10 14:07:17 2020 -0400
treeviewcolumn: Another case of box <> frame confusion
Don't call your boxes frames, folks!
gtk/gtktreeviewcolumn.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 923712126b..e4f8b2aaa8 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]