From: Jan Djärv Date: Mon, 13 Aug 2007 06:30:11 +0000 (+0000) Subject: (update_frame_tool_bar): Use -1 as index X-Git-Tag: emacs-pretest-23.0.90~11523 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=81d13a51b43176a47135a2cc84929e5f6af5e7a6;p=emacs.git (update_frame_tool_bar): Use -1 as index to gtk_toolbar_insert. --- diff --git a/src/ChangeLog b/src/ChangeLog index c97fec64808..f8dc0be7ed5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-08-13 Jan Dj,Ad(Brv + + * gtkutil.c (update_frame_tool_bar): Use -1 as index + to gtk_toolbar_insert. + 2007-08-13 Stefan Monnier * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. diff --git a/src/gtkutil.c b/src/gtkutil.c index 29aafc013e9..7dc451a5d04 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -3802,7 +3802,7 @@ update_frame_tool_bar (f) 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 @@ update_frame_tool_bar (f) 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. */