more WXUNUSED() here and there
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -215,7 +215,7 @@ bool wxFrameBase::ProcessCommand(int id)
|
|||||||
|
|
||||||
// default resizing behaviour - if only ONE subwindow, resize to fill the
|
// default resizing behaviour - if only ONE subwindow, resize to fill the
|
||||||
// whole client area
|
// whole client area
|
||||||
void wxFrameBase::OnSize(wxSizeEvent& event)
|
void wxFrameBase::OnSize(wxSizeEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
// if we're using constraints - do use them
|
// if we're using constraints - do use them
|
||||||
#if wxUSE_CONSTRAINTS
|
#if wxUSE_CONSTRAINTS
|
||||||
@@ -276,7 +276,7 @@ void wxFrameBase::OnSize(wxSizeEvent& event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The default implementation for the close window event.
|
// The default implementation for the close window event.
|
||||||
void wxFrameBase::OnCloseWindow(wxCloseEvent& event)
|
void wxFrameBase::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
|
@@ -1654,9 +1654,18 @@ gtk_window_realized_callback( GtkWidget *WXUNUSED(m_widget), wxWindow *win )
|
|||||||
// "size_allocate"
|
// "size_allocate"
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef HAVE_XIM
|
||||||
|
#define WXUNUSED_UNLESS_XIM(param) param
|
||||||
|
#else
|
||||||
|
#define WXUNUSED_UNLESS_XIM(param) WXUNUSED(param)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Resize XIM window */
|
/* Resize XIM window */
|
||||||
|
|
||||||
static void gtk_wxwindow_size_callback( GtkWidget *widget, GtkAllocation* alloc, wxFrame *win )
|
static
|
||||||
|
void gtk_wxwindow_size_callback( GtkWidget * WXUNUSED_UNLESS_XIM(widget),
|
||||||
|
GtkAllocation * WXUNUSED_UNLESS_XIM(alloc),
|
||||||
|
wxFrame * WXUNUSED_UNLESS_XIM(win) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
@@ -1684,7 +1693,8 @@ static void gtk_wxwindow_size_callback( GtkWidget *widget, GtkAllocation* alloc,
|
|||||||
/* Initialize XIM support */
|
/* Initialize XIM support */
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
gtk_wxwindow_realized_callback( GtkWidget *widget, wxWindow *win )
|
gtk_wxwindow_realized_callback( GtkWidget * WXUNUSED_UNLESS_XIM(widget),
|
||||||
|
wxWindow * WXUNUSED_UNLESS_XIM(win) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
@@ -1654,9 +1654,18 @@ gtk_window_realized_callback( GtkWidget *WXUNUSED(m_widget), wxWindow *win )
|
|||||||
// "size_allocate"
|
// "size_allocate"
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef HAVE_XIM
|
||||||
|
#define WXUNUSED_UNLESS_XIM(param) param
|
||||||
|
#else
|
||||||
|
#define WXUNUSED_UNLESS_XIM(param) WXUNUSED(param)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Resize XIM window */
|
/* Resize XIM window */
|
||||||
|
|
||||||
static void gtk_wxwindow_size_callback( GtkWidget *widget, GtkAllocation* alloc, wxFrame *win )
|
static
|
||||||
|
void gtk_wxwindow_size_callback( GtkWidget * WXUNUSED_UNLESS_XIM(widget),
|
||||||
|
GtkAllocation * WXUNUSED_UNLESS_XIM(alloc),
|
||||||
|
wxFrame * WXUNUSED_UNLESS_XIM(win) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
@@ -1684,7 +1693,8 @@ static void gtk_wxwindow_size_callback( GtkWidget *widget, GtkAllocation* alloc,
|
|||||||
/* Initialize XIM support */
|
/* Initialize XIM support */
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
gtk_wxwindow_realized_callback( GtkWidget *widget, wxWindow *win )
|
gtk_wxwindow_realized_callback( GtkWidget * WXUNUSED_UNLESS_XIM(widget),
|
||||||
|
wxWindow * WXUNUSED_UNLESS_XIM(win) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
Reference in New Issue
Block a user