gui/gui-lib/mred/private/wx/gtk
Matthew Flatt 5e70534b43 adjust workaround for GTK+3 before version 3.22
Adjust a workaround for versions before 3.22 when setting the font for
a control.

GTK+ version 3.22 starts paying attention to whether a font size for a
control is absolute (as opposed to being in points), so the workaround
that was put in place for earlier versions breaks.

In addition, some part of the drawing stack seems to round point sizes
to an integeral size after DPI conversion. Take that rounding into
account when setting the font size in `normal-control-font`.

Closes #1522
2016-12-19 07:21:28 -07:00
..
button.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
canvas.rkt fix mouse wheel for GTK+ 3 2016-03-15 13:28:13 -06:00
check-box.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
choice.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
client-window.rkt HiDPI support on Unix (Gtk2) 2015-08-01 18:06:12 -06:00
clipboard.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
colordialog.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
combo.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
const.rkt recognize GTK+ 3 scroll events 2015-08-18 09:35:32 -06:00
cursor.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
dc.rkt GTK+ 3: treat combo-field% canvas like transparent canvases 2015-08-19 08:18:20 -06:00
dialog.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
filedialog.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
frame.rkt GTK+ 3: fix problem with sizing initially unshown items 2016-08-20 09:26:03 -06:00
gauge.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
gcwin.rkt remove unnecessary finalization (GTK+ 2) 2015-08-18 10:28:44 -06:00
gl-context.rkt Casting flag-x-error-handler in this case too. Necessary for getting GL working on my Linux/Nvidia box to test pict3d 2015-12-14 08:55:36 -05:00
group-panel.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
gsettings.rkt repair to work with ancient Gtk 2016-04-17 14:30:31 -06:00
gtk3.rkt Gtk+ 3: open library in "global" mode to support the printer dialog 2015-11-19 12:03:18 -07:00
init.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
item.rkt adjust workaround for GTK+3 before version 3.22 2016-12-19 07:21:28 -07:00
keycode.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
keymap.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
list-box.rkt GTK 3: try to make panels work right 2015-08-19 15:59:11 -06:00
menu-bar.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
menu-item.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
menu.rkt HiDPI support on Unix (Gtk2) 2015-08-01 18:06:12 -06:00
message.rkt HiDPI support on Unix (Gtk2) 2015-08-01 18:06:12 -06:00
panel.rkt GTK+ 3: fix problem with sizing initially unshown items 2016-08-20 09:26:03 -06:00
pixbuf.rkt add PLT_DISPLAY_BACKING_SCALE 2015-08-03 20:44:29 -06:00
platform.rkt add any-control+alt-is-altgr 2016-03-17 16:39:40 -06:00
printer-dc.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
procs.rkt adjust workaround for GTK+3 before version 3.22 2016-12-19 07:21:28 -07:00
queue.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
radio-box.rkt HiDPI support on Unix (Gtk2) 2015-08-01 18:06:12 -06:00
README.txt Remove extra directories. 2014-12-02 02:33:07 -05:00
resolution.rkt Support and prefer GTK+ 3 on Unix/X 2015-08-16 20:55:35 -06:00
slider.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
stddialog.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
style.rkt Gtk: fix handling of widget to extract text colors 2016-01-12 10:05:09 -07:00
tab-panel.rkt GTK 3: try yet again to make panels work right 2015-08-21 08:31:48 -06:00
types.rkt HiDPI support on Unix (Gtk2) 2015-08-01 18:06:12 -06:00
unique.rkt repairs to work with old Gtk 2016-04-14 06:06:34 -06:00
utils.rkt adjust workaround for GTK+3 before version 3.22 2016-12-19 07:21:28 -07:00
w32.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
widget.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
win32.rkt Remove extra directories. 2014-12-02 02:33:07 -05:00
window.rkt GTK+: accumulate small scroll events into appropriate wheel events 2016-11-17 15:25:33 -07:00
x11.rkt remove unnecessary finalization (GTK+ 3) 2015-08-18 10:58:13 -06:00

Allocation rules:

 * Use `as-gtk-allocation' when creating a Gtk widget that is the main
   container for a given window<%> object. When the resulting
   reference becomes unreachable, the widget will be released with
   gtk_widget_destroy() through a finalizer.

 * Use `atomically' to create and attach a sub-widget within the main
   widget.  Don't use gtk_widget_destroy(); the containing widget will
   destroy the enclosing widget.

 * For temporary objects, use `atomically' to wrap both the allocation
   and release.

Every call to a function whose name contains "new" needs to be in one
of those cases.