Small cleanups, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40555 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -178,9 +178,10 @@ ShowImageApp::QuitRequested()
|
|||||||
{
|
{
|
||||||
// Give the windows a chance to prompt the user if there are changes
|
// Give the windows a chance to prompt the user if there are changes
|
||||||
bool result = BApplication::QuitRequested();
|
bool result = BApplication::QuitRequested();
|
||||||
if (result)
|
if (result) {
|
||||||
be_clipboard->StopWatching(be_app_messenger);
|
be_clipboard->StopWatching(be_app_messenger);
|
||||||
// tell clipboard we don't want anymore notification
|
// tell clipboard we don't want anymore notification
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -200,7 +201,7 @@ ShowImageApp::_StartPulse()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ShowImageApp::_Open(const entry_ref& ref, BMessenger& trackerMessenger)
|
ShowImageApp::_Open(const entry_ref& ref, const BMessenger& trackerMessenger)
|
||||||
{
|
{
|
||||||
new ShowImageWindow(ref, trackerMessenger);
|
new ShowImageWindow(ref, trackerMessenger);
|
||||||
}
|
}
|
||||||
@@ -248,10 +249,10 @@ ShowImageApp::_CheckClipboard()
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int, char **)
|
main(int, char**)
|
||||||
{
|
{
|
||||||
ShowImageApp theApp;
|
ShowImageApp app;
|
||||||
theApp.Run();
|
app.Run();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void _StartPulse();
|
void _StartPulse();
|
||||||
void _Open(const entry_ref& ref,
|
void _Open(const entry_ref& ref,
|
||||||
BMessenger& trackerMessenger);
|
const BMessenger& trackerMessenger);
|
||||||
void _BroadcastToWindows(BMessage* message);
|
void _BroadcastToWindows(BMessage* message);
|
||||||
void _CheckClipboard();
|
void _CheckClipboard();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user