From 81d13a51b43176a47135a2cc84929e5f6af5e7a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Mon, 13 Aug 2007 06:30:11 +0000 Subject: [PATCH] (update_frame_tool_bar): Use -1 as index to gtk_toolbar_insert. --- src/ChangeLog | 5 +++++ src/gtkutil.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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. */ -- 2.39.2