applied patch 1376506 - remove unneeded member variable from GTK wxRadioButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -51,7 +51,6 @@ public:
 | 
			
		||||
 | 
			
		||||
    virtual bool IsRadioButton() const { return TRUE; }
 | 
			
		||||
 | 
			
		||||
    GSList *m_radioButtonGroup;
 | 
			
		||||
    void DoApplyWidgetStyle(GtkRcStyle *style);
 | 
			
		||||
    bool IsOwnGtkWindow( GdkWindow *window );
 | 
			
		||||
    void OnInternalIdle();
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,6 @@ public:
 | 
			
		||||
 | 
			
		||||
    virtual bool IsRadioButton() const { return TRUE; }
 | 
			
		||||
 | 
			
		||||
    GSList *m_radioButtonGroup;
 | 
			
		||||
    void DoApplyWidgetStyle(GtkRcStyle *style);
 | 
			
		||||
    bool IsOwnGtkWindow( GdkWindow *window );
 | 
			
		||||
    void OnInternalIdle();
 | 
			
		||||
 
 | 
			
		||||
@@ -83,12 +83,8 @@ bool wxRadioButton::Create( wxWindow *parent,
 | 
			
		||||
        return FALSE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (HasFlag(wxRB_GROUP))
 | 
			
		||||
    {
 | 
			
		||||
        // start a new group
 | 
			
		||||
        m_radioButtonGroup = (GSList*) NULL;
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    GSList* radioButtonGroup = NULL;
 | 
			
		||||
    if (!HasFlag(wxRB_GROUP))
 | 
			
		||||
    {
 | 
			
		||||
        // search backward for last group start
 | 
			
		||||
        wxRadioButton *chief = (wxRadioButton*) NULL;
 | 
			
		||||
@@ -107,16 +103,11 @@ bool wxRadioButton::Create( wxWindow *parent,
 | 
			
		||||
        if (chief)
 | 
			
		||||
        {
 | 
			
		||||
            // we are part of the group started by chief
 | 
			
		||||
            m_radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            // start a new group
 | 
			
		||||
            m_radioButtonGroup = (GSList*) NULL;
 | 
			
		||||
            radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, wxGTK_CONV( label ) );
 | 
			
		||||
    m_widget = gtk_radio_button_new_with_label( radioButtonGroup, wxGTK_CONV( label ) );
 | 
			
		||||
      
 | 
			
		||||
    SetLabel(label);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -83,12 +83,8 @@ bool wxRadioButton::Create( wxWindow *parent,
 | 
			
		||||
        return FALSE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (HasFlag(wxRB_GROUP))
 | 
			
		||||
    {
 | 
			
		||||
        // start a new group
 | 
			
		||||
        m_radioButtonGroup = (GSList*) NULL;
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    GSList* radioButtonGroup = NULL;
 | 
			
		||||
    if (!HasFlag(wxRB_GROUP))
 | 
			
		||||
    {
 | 
			
		||||
        // search backward for last group start
 | 
			
		||||
        wxRadioButton *chief = (wxRadioButton*) NULL;
 | 
			
		||||
@@ -107,16 +103,11 @@ bool wxRadioButton::Create( wxWindow *parent,
 | 
			
		||||
        if (chief)
 | 
			
		||||
        {
 | 
			
		||||
            // we are part of the group started by chief
 | 
			
		||||
            m_radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            // start a new group
 | 
			
		||||
            m_radioButtonGroup = (GSList*) NULL;
 | 
			
		||||
            radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, wxGTK_CONV( label ) );
 | 
			
		||||
    m_widget = gtk_radio_button_new_with_label( radioButtonGroup, wxGTK_CONV( label ) );
 | 
			
		||||
      
 | 
			
		||||
    SetLabel(label);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user