/////////////////////////////////////////////////////////////////////////////
-// Name: button.cpp
+// Name: src/gtk/button.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/defs.h"
-
#if wxUSE_BUTTON
#include "wx/button.h"
class wxButton;
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
bottom_border += default_border->bottom;
g_free( default_border );
}
- win->DoMoveWindow( win->m_x-top_border,
- win->m_y-left_border,
- win->m_width+left_border+right_border,
- win->m_height+top_border+bottom_border );
+ win->MoveWindow(
+ win->m_x - top_border,
+ win->m_y - left_border,
+ win->m_width + left_border + right_border,
+ win->m_height + top_border + bottom_border);
}
return FALSE;
const wxPoint &pos, const wxSize &size,
long style, const wxValidator& validator, const wxString &name )
{
- m_needParent = TRUE;
- m_acceptsFocus = TRUE;
+ m_needParent = true;
+ m_acceptsFocus = true;
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, validator, name ))
{
wxFAIL_MSG( wxT("wxButton creation failed") );
- return FALSE;
+ return false;
}
m_widget = gtk_button_new_with_mnemonic("");
bool wxButton::Enable( bool enable )
{
if ( !wxControl::Enable( enable ) )
- return FALSE;
+ return false;
gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
- return TRUE;
+ return true;
}
bool wxButton::IsOwnGtkWindow( GdkWindow *window )
}
#endif // wxUSE_BUTTON
-