diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-02-19 08:30:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-02-19 08:30:42 +0800 |
commit | 0436dc9f5725091a4ae6d988f4bdc999dcac416b (patch) | |
tree | 5a8749032fcf6039e93b8d0f6eaaed34c31bf0fa /lib/egg | |
parent | aa8e74d93a2c9fb43da9a5a8259cce7c75b1677f (diff) | |
download | gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.tar gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.tar.gz gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.tar.bz2 gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.tar.lz gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.tar.xz gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.tar.zst gsoc2013-epiphany-0436dc9f5725091a4ae6d988f4bdc999dcac416b.zip |
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: (update_editor_sheet):
Fix off-by-one error when computing the height of the table.
Diffstat (limited to 'lib/egg')
-rwxr-xr-x | lib/egg/egg-toolbar-editor.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |