diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | lib/egg/egg-toolbar-editor.c | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2004-02-19 Christian Persch <chpe@cvs.gnome.org> + * lib/egg/egg-toolbar-editor.c: (update_editor_sheet): + + Fix off-by-one error when computing the height of the table. + +2004-02-19 Christian Persch <chpe@cvs.gnome.org> + * lib/egg/egg-toolbar-editor.c: (toolbar_removed_cb), (egg_toolbar_editor_set_model), (egg_toolbar_editor_class_init), (update_actions_list), (egg_toolbar_editor_load_actions): diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index 7924e91ef..e77c801f0 100755 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -14,6 +14,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ */ #include "egg-toolbar-editor.h" @@ -511,7 +513,7 @@ update_editor_sheet (EggToolbarEditor *editor) x = y = 0; width = 4; - height = (g_list_length (to_drag) - 1) / width + 1; + height = (g_list_length (to_drag)) / width + 1; gtk_table_resize (GTK_TABLE (editor->priv->table), height, width); for (l = to_drag; l != NULL; l = l->next) |