fix the rest of errors with CFLAGS+="-DGSEAL_ENABLE" except accel_label->accel_string required hack

This commit is contained in:
Garux
2020-05-20 02:51:37 +03:00
parent 50e1af1a16
commit 4f8e6e7ee5
12 changed files with 22 additions and 33 deletions

View File

@@ -309,7 +309,7 @@ GenericPluginUI::WidgetControlCallback(GtkWidget *widget,
for (; controllerIter != _widgetControlledByMap[controllee].end(); ++controllerIter)
{
// Dependence found; honor it.
if (!(GTK_TOGGLE_BUTTON(*controllerIter)->active))
if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(*controllerIter)))
{
sensitive = false;
break;
@@ -320,7 +320,7 @@ GenericPluginUI::WidgetControlCallback(GtkWidget *widget,
for (; controllerIter != _widgetAntiControlledByMap[controllee].end(); ++controllerIter)
{
// Anti-dependence found; honor it.
if (GTK_TOGGLE_BUTTON(*controllerIter)->active)
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(*controllerIter)))
{
sensitive = false;
break;
@@ -371,4 +371,4 @@ GenericPluginUI::InfoReportDialog(const char *title,
{
// Pass this operation to Radiant.
GlobalRadiant().m_pfnMessageBox(UIInstance()._window, message, title, eMB_OK, eMB_ICONDEFAULT);
}
}