# HG changeset patch # User Jan Dj¸«£rv # Date 1186986581 0 # Node ID 25c5bc8d8b8e27c90f533a8b45a8990582322d25 # Parent 386452a14fe0da6cd7dc8d181c0ad35246cb364c (update_frame_tool_bar): Use -1 as index to gtk_toolbar_insert. diff -r 386452a14fe0 -r 25c5bc8d8b8e src/gtkutil.c --- a/src/gtkutil.c Mon Aug 13 05:35:43 2007 +0000 +++ b/src/gtkutil.c Mon Aug 13 06:29:41 2007 +0000 @@ -3802,7 +3802,7 @@ gtk_container_add (GTK_CONTAINER (weventbox), wbutton); ti = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (ti), weventbox); - gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, i); + gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, -1); } continue; } @@ -3819,7 +3819,7 @@ gtk_container_add (GTK_CONTAINER (weventbox), wbutton); ti = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (ti), weventbox); - gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, i); + gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, -1); /* The EMACS_INT cast avoids a warning. */