Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-02-18 16:21:44 +0300
committerTon Roosendaal <ton@blender.org>2009-02-18 16:21:44 +0300
commit915e989f9d60d4523563f14b71df8c7f6d5e812e (patch)
tree21dbce46158bd296c98459c02bcb524a8932bcd7 /intern
parentc396a4ec15f82146ffb4ace8820cbe762e25c979 (diff)
2.5
Added ghost display state hint 'modified file'. Only supported in osx though (close button in bar gets dot).
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/GHOST_Types.h4
-rw-r--r--intern/ghost/Makefile2
-rw-r--r--intern/ghost/intern/GHOST_SystemCarbon.cpp3
-rw-r--r--intern/ghost/intern/GHOST_WindowCarbon.cpp6
4 files changed, 12 insertions, 3 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h
index b683740247a..2441251dc33 100644
--- a/intern/ghost/GHOST_Types.h
+++ b/intern/ghost/GHOST_Types.h
@@ -104,7 +104,9 @@ typedef enum {
GHOST_kWindowState8Normal = 8,
GHOST_kWindowState8Maximized,
GHOST_kWindowState8Minimized,
- GHOST_kWindowState8FullScreen
+ GHOST_kWindowState8FullScreen,
+ GHOST_kWindowStateModified,
+ GHOST_kWindowStateUnModified
} GHOST_TWindowState;
diff --git a/intern/ghost/Makefile b/intern/ghost/Makefile
index f809a32ac8f..c5a9c522655 100644
--- a/intern/ghost/Makefile
+++ b/intern/ghost/Makefile
@@ -38,7 +38,7 @@ TESTDIRS = test
include nan_subdirs.mk
-install: all debug
+install: all
@[ -d $(NAN_GHOST) ] || mkdir $(NAN_GHOST)
@[ -d $(NAN_GHOST)/include ] || mkdir $(NAN_GHOST)/include
@[ -d $(NAN_GHOST)/lib ] || mkdir $(NAN_GHOST)/lib
diff --git a/intern/ghost/intern/GHOST_SystemCarbon.cpp b/intern/ghost/intern/GHOST_SystemCarbon.cpp
index 5de00d9ab3e..203b3847019 100644
--- a/intern/ghost/intern/GHOST_SystemCarbon.cpp
+++ b/intern/ghost/intern/GHOST_SystemCarbon.cpp
@@ -438,6 +438,8 @@ bool GHOST_SystemCarbon::processEvents(bool waitForEvent)
bool anyProcessed = false;
EventRef event;
+// SetMouseCoalescingEnabled(false, NULL);
+
do {
GHOST_TimerManager* timerMgr = getTimerManager();
@@ -469,7 +471,6 @@ bool GHOST_SystemCarbon::processEvents(bool waitForEvent)
}
}
-
/* end loop when no more events available */
while (::ReceiveNextEvent(0, NULL, 0, true, &event)==noErr) {
OSStatus status= ::SendEventToEventTarget(event, ::GetEventDispatcherTarget());
diff --git a/intern/ghost/intern/GHOST_WindowCarbon.cpp b/intern/ghost/intern/GHOST_WindowCarbon.cpp
index ba094501fe5..87bb86a37e7 100644
--- a/intern/ghost/intern/GHOST_WindowCarbon.cpp
+++ b/intern/ghost/intern/GHOST_WindowCarbon.cpp
@@ -378,6 +378,12 @@ GHOST_TSuccess GHOST_WindowCarbon::setState(GHOST_TWindowState state)
case GHOST_kWindowStateMinimized:
::HideWindow(m_windowRef);
break;
+ case GHOST_kWindowStateModified:
+ SetWindowModified(m_windowRef, 1);
+ break;
+ case GHOST_kWindowStateUnModified:
+ SetWindowModified(m_windowRef, 0);
+ break;
case GHOST_kWindowStateMaximized:
case GHOST_kWindowStateNormal:
default: