[Mac] No black dot in close button with unsaved data

Bug #592085 reported by SeySayux on 2010-06-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Low
Unassigned

Bug Description

The Mac HIG specifies that if an application has unsaved data, the close button should display a black dot. Phatch doesn't do this. Instead, Phatch prepends an asterisk to the title.

Action list or example image not applicable.

Stani (stani) wrote :

There is a little snippet of code in the the CHANGES doc for version 2.8.8.0 that shows how to do this with ctypes.

"""
Added a wrapper to wx.TopLevelWindow for MacGetTopLevelWindowRef to
facilitate calling the Carbon APIs directly for things that are not
supported in wx, similar to how we can use ctypes or PyWin32 with
window.GetHandle() to do custom stuff on Windows. (On wxMac GetHandle
returns the ControlRef, which is different than the WindowRef, hence
the need for a 2nd method.) Here is an example to set the modified
flag in the caption::

   >>> import ctypes
   >>> carbon = ctypes.CDLL('/System/Library/Carbon.framework/Carbon')
   >>> carbon.SetWindowModified(frame.MacGetTopLevelWindowRef(), True)
"""

Changed in phatch:
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers