#include "wx/radiobox.h"
-#include "wx/dialog.h"
-#include "wx/frame.h"
-#include "wx/log.h"
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+ #include "wx/frame.h"
+ #include "wx/dialog.h"
+#endif
#include "wx/gtk1/private.h"
#include <gdk/gdkkeysyms.h>
event.SetInt( rb->GetSelection() );
event.SetString( rb->GetStringSelection() );
event.SetEventObject( rb );
- rb->GetEventHandler()->ProcessEvent(event);
+ rb->HandleWindowEvent(event);
}
}
}
extern "C" {
-static gint gtk_radiobutton_focus_in( GtkWidget *widget,
+static gint gtk_radiobutton_focus_in( GtkWidget *WXUNUSED(widget),
GdkEvent *WXUNUSED(event),
wxRadioBox *win )
{
// never stop the signal emission, it seems to break the kbd handling
// inside the radiobox
- (void)win->GetEventHandler()->ProcessEvent( event );
+ (void)win->HandleWindowEvent( event );
}
return FALSE;
}
extern "C" {
-static gint gtk_radiobutton_focus_out( GtkWidget *widget,
+static gint gtk_radiobutton_focus_out( GtkWidget *WXUNUSED(widget),
GdkEvent *WXUNUSED(event),
wxRadioBox *win )
{
- // wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") );
+ // wxASSERT_MSG( win->m_hasFocus, wxT("got focus out without any focus in?") );
// Replace with a warning, else we dump core a lot!
// if (!win->m_hasFocus)
- // wxLogWarning(_T("Radiobox got focus out without any focus in.") );
+ // wxLogWarning(wxT("Radiobox got focus out without any focus in.") );
// we might have lost the focus, but may be not - it may have just gone to
// another button in the same radiobox, so we'll check for it in the next
m_widget = gtk_frame_new(NULL);
SetLabel(title);
+ if ( HasFlag(wxNO_BORDER) )
+ {
+ // If we don't do this here, the wxNO_BORDER style is ignored in Show()
+ gtk_frame_set_shadow_type(GTK_FRAME(m_widget), GTK_SHADOW_NONE);
+ }
// majorDim may be 0 if all trailing parameters were omitted, so don't
// assert here but just use the correct value for it
unsigned int num_of_cols = GetColumnCount();
unsigned int num_of_rows = GetRowCount();
- GtkRadioButton *m_radio = (GtkRadioButton*) NULL;
+ GtkRadioButton *m_radio = NULL;
GtkWidget *table = gtk_table_new( num_of_rows, num_of_cols, FALSE );
gtk_table_set_col_spacings( GTK_TABLE(table), 1 );
gtk_container_add( GTK_CONTAINER(m_widget), table );
wxString label;
- GSList *radio_button_group = (GSList *) NULL;
+ GSList *radio_button_group = NULL;
for (int i = 0; i < n; i++)
{
if ( i != 0 )
while (node)
{
GtkWidget *widget = GTK_WIDGET( node->GetData() );
- gtk_tooltips_set_tip( tips, widget, wxConvCurrent->cWX2MB(tip), (gchar*) NULL );
+ gtk_tooltips_set_tip( tips, widget, wxConvCurrent->cWX2MB(tip), NULL );
node = node->GetNext();
}
}
wxFocusEvent event( wxEVT_KILL_FOCUS, GetId() );
event.SetEventObject( this );
- (void)GetEventHandler()->ProcessEvent( event );
+ (void)HandleWindowEvent( event );
}
if (g_delayedFocus == this)