diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-10-08 14:34:23 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-08 14:34:23 +0000 |
commit | ca27dff39adb5160224a04546ff0bf8d552e893a (patch) | |
tree | 41791aacf8943cfb9e778134d516c80299457131 | |
parent | 9975feaf203105ee4e48ea81ef41f56636c66b65 (diff) | |
download | gdk-pixbuf-ca27dff39adb5160224a04546ff0bf8d552e893a.tar.gz |
Implement the GtkContainer::add vfunc. (#15444, Lorenzo Gil Sanchez)
2004-10-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklayout.c (gtk_layout_add): Implement the GtkContainer::add
vfunc. (#15444, Lorenzo Gil Sanchez)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 3 | ||||
-rw-r--r-- | gtk/gtklayout.c | 10 |
5 files changed, 22 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2004-10-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtklayout.c (gtk_layout_add): Implement the GtkContainer::add + vfunc. (#15444, Lorenzo Gil Sanchez) + * gtk/gtkuimanager.c (update_node): Also update smart separators if the visibility of a menuitem with a submenu changes. (#153791, Christian Persch) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index cbd52e35e..da81c9986 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-10-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtklayout.c (gtk_layout_add): Implement the GtkContainer::add + vfunc. (#15444, Lorenzo Gil Sanchez) + * gtk/gtkuimanager.c (update_node): Also update smart separators if the visibility of a menuitem with a submenu changes. (#153791, Christian Persch) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index cbd52e35e..da81c9986 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-10-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtklayout.c (gtk_layout_add): Implement the GtkContainer::add + vfunc. (#15444, Lorenzo Gil Sanchez) + * gtk/gtkuimanager.c (update_node): Also update smart separators if the visibility of a menuitem with a submenu changes. (#153791, Christian Persch) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index cbd52e35e..da81c9986 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-10-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtklayout.c (gtk_layout_add): Implement the GtkContainer::add + vfunc. (#15444, Lorenzo Gil Sanchez) + * gtk/gtkuimanager.c (update_node): Also update smart separators if the visibility of a menuitem with a submenu changes. (#153791, Christian Persch) diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index e05038d77..d7cf5a6d6 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -81,6 +81,8 @@ static void gtk_layout_size_allocate (GtkWidget *widget, GtkAllocation *allocation); static gint gtk_layout_expose (GtkWidget *widget, GdkEventExpose *event); +static void gtk_layout_add (GtkContainer *container, + GtkWidget *widget); static void gtk_layout_remove (GtkContainer *container, GtkWidget *widget); static void gtk_layout_forall (GtkContainer *container, @@ -668,6 +670,7 @@ gtk_layout_class_init (GtkLayoutClass *class) widget_class->expose_event = gtk_layout_expose; widget_class->style_set = gtk_layout_style_set; + container_class->add = gtk_layout_add; container_class->remove = gtk_layout_remove; container_class->forall = gtk_layout_forall; @@ -1050,6 +1053,13 @@ gtk_layout_expose (GtkWidget *widget, GdkEventExpose *event) /* Container method */ static void +gtk_layout_add (GtkContainer *container, + GtkWidget *widget) +{ + gtk_layout_put (GTK_LAYOUT (container), widget, 0, 0); +} + +static void gtk_layout_remove (GtkContainer *container, GtkWidget *widget) { |