diff options
author | Johannes Schmid <jhs@gnome.org> | 2007-12-31 16:26:18 +0000 |
---|---|---|
committer | Johannes Schmid <jhs@src.gnome.org> | 2007-12-31 16:26:18 +0000 |
commit | 16383d431a2db634eed7fed3950256604cff3cd6 (patch) | |
tree | 18a3cd442fe4cbbdea8e66acd2ca519353607d70 /tests/testnotebookdnd.c | |
parent | 89017e84520531edca4814cd8388832ad21531ff (diff) | |
download | gtk+-16383d431a2db634eed7fed3950256604cff3cd6.tar.gz |
Also reorder menu when reordering tabs by drag & drop (Bug #506474)
2007-12-30 Johannes Schmid <jhs@gnome.org>
* gtk/gtknotebook.c: (gtk_notebook_stop_reorder):
Also reorder menu when reordering tabs by drag & drop
(Bug #506474)
* tests/testnotebookdnd.c: (create_notebook_with_notebooks):
Add a menu to one of the notebooks to have a test-case for
the change mentioned above.
svn path=/trunk/; revision=19294
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r-- | tests/testnotebookdnd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index 869439469d..04a4aef5dc 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -201,13 +201,14 @@ create_notebook_with_notebooks (gchar **labels, while (*labels) { page = create_notebook (labels, group, packing, pos); - + gtk_notebook_popup_enable (GTK_NOTEBOOK (page)); + title = gtk_label_new (*labels); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), page, title); gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (notebook), page, TRUE); gtk_notebook_set_tab_detachable (GTK_NOTEBOOK (notebook), page, TRUE); - + if (packing == PACK_END || (packing == PACK_ALTERNATE && count % 2 == 1)) gtk_container_child_set (GTK_CONTAINER (notebook), page, "tab-pack", GTK_PACK_END, NULL); |