git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67305
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxToolBarTool* tool = static_cast<wxToolBarTool*>(toolBase);
GSList* radioGroup;
wxToolBarTool* tool = static_cast<wxToolBarTool*>(toolBase);
GSList* radioGroup;
switch ( tool->GetStyle() )
{
case wxTOOL_STYLE_BUTTON:
switch ( tool->GetStyle() )
{
case wxTOOL_STYLE_BUTTON:
m_tooltips, wxGTK_CONV(tool->GetShortHelp()), "");
}
}
m_tooltips, wxGTK_CONV(tool->GetShortHelp()), "");
}
}
- g_signal_connect(GTK_BIN(tool->m_item)->child, "button_press_event",
+ bin_child = gtk_bin_get_child(GTK_BIN(tool->m_item));
+ g_signal_connect(bin_child, "button_press_event",
G_CALLBACK(button_press_event), tool);
G_CALLBACK(button_press_event), tool);
- g_signal_connect(tool->m_item, "enter_notify_event",
+ g_signal_connect(bin_child, "enter_notify_event",
G_CALLBACK(enter_notify_event), tool);
G_CALLBACK(enter_notify_event), tool);
- g_signal_connect(tool->m_item, "leave_notify_event",
+ g_signal_connect(bin_child, "leave_notify_event",
G_CALLBACK(enter_notify_event), tool);
if (tool->GetKind() == wxITEM_DROPDOWN)
G_CALLBACK(enter_notify_event), tool);
if (tool->GetKind() == wxITEM_DROPDOWN)