From 83664c8bc450e0874a2997da2ebc9cd7c39ee50b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 10 May 2008 13:54:20 +0000 Subject: (svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp. --- src/window.cpp | 2 +- src/window_gui.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/window.cpp b/src/window.cpp index 24b2aae8f..2dc00a318 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -860,7 +860,7 @@ bool IsWindowOfPrototype(const Window *w, const Widget *widget) * \c w->original_widget points to the original widgets, * \c w->widget_count contains number of widgets in the allocated memory. */ -void AssignWidgetToWindow(Window *w, const Widget *widget) +static void AssignWidgetToWindow(Window *w, const Widget *widget) { w->original_widget = widget; diff --git a/src/window_gui.h b/src/window_gui.h index a20c005f7..5872c6809 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -652,7 +652,6 @@ Window *BringWindowToFrontById(WindowClass cls, WindowNumber number); Window *FindWindowFromPt(int x, int y); bool IsWindowOfPrototype(const Window *w, const Widget *widget); -void AssignWidgetToWindow(Window *w, const Widget *widget); /** * Open a new window. -- cgit v1.2.3-70-g09d2