]> Pileus Git - ~andy/gtk/commit
Use gint16 for GtkBorder
authorHavoc Pennington <hp@pobox.com>
Sat, 11 Sep 2010 23:25:57 +0000 (19:25 -0400)
committerHavoc Pennington <hp@pobox.com>
Mon, 13 Sep 2010 01:47:09 +0000 (21:47 -0400)
commitb3079c0d18b176bb5e939bf3fefdc2f5852e0a56
treef6d4ae152b88bc23ab5321964b1b2a231b03a4c4
parent7e520d908aab0cd6d31fbabebf54a6fe349e5967
Use gint16 for GtkBorder

32K of border ought to be enough for any pixel dimensions. At least
until screens are so huge we start using doubles.

This saves a nice 64 bits of space when we have a GtkBorder
stored somewhere.

Signed integers are used to avoid surprising unsigned math
issues. Just search GTK's whole git log from inception
for "unsigned" if you want to find any number of commits
fixing signed/unsigned bugs.

https://bugzilla.gnome.org/show_bug.cgi?id=629387
gtk/gtksettings.c
gtk/gtkstyle.h