mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Emit the ::page-removed signal after removing the page. (#335238,
2006-03-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed signal after removing the page. (#335238, Christian Persch)
This commit is contained in:
parent
502d44e503
commit
bbd8b9a51c
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-22 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed
|
||||||
|
signal after removing the page. (#335238, Christian Persch)
|
||||||
|
|
||||||
2006-03-22 Carlos Garnacho <carlosg@gnome.org>
|
2006-03-22 Carlos Garnacho <carlosg@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkexpander.c: Make it to expand when hovering during DnD
|
* gtk/gtkexpander.c: Make it to expand when hovering during DnD
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-22 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed
|
||||||
|
signal after removing the page. (#335238, Christian Persch)
|
||||||
|
|
||||||
2006-03-22 Carlos Garnacho <carlosg@gnome.org>
|
2006-03-22 Carlos Garnacho <carlosg@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkexpander.c: Make it to expand when hovering during DnD
|
* gtk/gtkexpander.c: Make it to expand when hovering during DnD
|
||||||
|
@ -855,7 +855,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
|||||||
* @page_num: the @child page number
|
* @page_num: the @child page number
|
||||||
*
|
*
|
||||||
* the ::page-removed signal is emitted in the notebook
|
* the ::page-removed signal is emitted in the notebook
|
||||||
* right before a page is removed from the notebook.
|
* right after a page is removed from the notebook.
|
||||||
*
|
*
|
||||||
* Since: 2.10
|
* Since: 2.10
|
||||||
**/
|
**/
|
||||||
@ -869,7 +869,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
|||||||
GTK_TYPE_WIDGET,
|
GTK_TYPE_WIDGET,
|
||||||
G_TYPE_UINT);
|
G_TYPE_UINT);
|
||||||
/**
|
/**
|
||||||
* GtkNotebook::page-attached:
|
* GtkNotebook::page-added:
|
||||||
* @notebook: the #GtkNotebook
|
* @notebook: the #GtkNotebook
|
||||||
* @child: the child #GtkWidget affected
|
* @child: the child #GtkWidget affected
|
||||||
* @page_num: the new page number for @child
|
* @page_num: the new page number for @child
|
||||||
@ -3299,13 +3299,17 @@ gtk_notebook_remove (GtkContainer *container,
|
|||||||
children = children->next;
|
children = children->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_object_ref (widget);
|
||||||
|
|
||||||
|
gtk_notebook_real_remove (notebook, children);
|
||||||
|
|
||||||
g_signal_emit (notebook,
|
g_signal_emit (notebook,
|
||||||
notebook_signals[PAGE_REMOVED],
|
notebook_signals[PAGE_REMOVED],
|
||||||
0,
|
0,
|
||||||
widget,
|
widget,
|
||||||
page_num);
|
page_num);
|
||||||
|
|
||||||
gtk_notebook_real_remove (notebook, children);
|
g_object_unref (widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user