diff --git a/shell/platform/linux/fl_accessible_text_field.cc b/shell/platform/linux/fl_accessible_text_field.cc index 9dcc7f64fb820..670f0bb59a997 100644 --- a/shell/platform/linux/fl_accessible_text_field.cc +++ b/shell/platform/linux/fl_accessible_text_field.cc @@ -387,7 +387,7 @@ static gboolean fl_accessible_text_field_set_caret_offset(AtkText* text, FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text); perform_set_selection_action(self, offset, offset); - return true; + return TRUE; } // Implements AtkText::get_n_selections. @@ -435,11 +435,11 @@ static gboolean fl_accessible_text_field_add_selection(AtkText* text, FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text); if (self->selection_base != self->selection_extent) { - return false; + return FALSE; } perform_set_selection_action(self, start_offset, end_offset); - return true; + return TRUE; } // Implements AtkText::remove_selection. @@ -449,12 +449,12 @@ static gboolean fl_accessible_text_field_remove_selection(AtkText* text, FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text); if (selection_num != 0 || self->selection_base == self->selection_extent) { - return false; + return FALSE; } perform_set_selection_action(self, self->selection_extent, self->selection_extent); - return true; + return TRUE; } // Implements AtkText::set_selection. @@ -466,11 +466,11 @@ static gboolean fl_accessible_text_field_set_selection(AtkText* text, FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text); if (selection_num != 0) { - return false; + return FALSE; } perform_set_selection_action(self, start_offset, end_offset); - return true; + return TRUE; } // Implements AtkEditableText::set_text_contents. diff --git a/shell/platform/linux/fl_gnome_settings.cc b/shell/platform/linux/fl_gnome_settings.cc index 31556e53b9e16..e20b1bb053091 100644 --- a/shell/platform/linux/fl_gnome_settings.cc +++ b/shell/platform/linux/fl_gnome_settings.cc @@ -64,11 +64,11 @@ static FlColorScheme fl_gnome_settings_get_color_scheme(FlSettings* settings) { } static gboolean fl_gnome_settings_get_enable_animations(FlSettings* settings) { - return true; + return TRUE; } static gboolean fl_gnome_settings_get_high_contrast(FlSettings* settings) { - return false; + return FALSE; } static gdouble fl_gnome_settings_get_text_scaling_factor(FlSettings* settings) { diff --git a/shell/platform/linux/fl_renderer.cc b/shell/platform/linux/fl_renderer.cc index 3fdaef624cd6b..22f16d12367d4 100644 --- a/shell/platform/linux/fl_renderer.cc +++ b/shell/platform/linux/fl_renderer.cc @@ -398,7 +398,7 @@ gboolean fl_renderer_present_layers(FlRenderer* self, layers[0]->offset.x == 0 && layers[0]->offset.y == 0 && (layers[0]->size.width != priv->target_width || layers[0]->size.height != priv->target_height)) { - return true; + return TRUE; } priv->had_first_frame = true; diff --git a/shell/platform/linux/fl_settings_portal.cc b/shell/platform/linux/fl_settings_portal.cc index 1cb93240dc942..a3eded35263d7 100644 --- a/shell/platform/linux/fl_settings_portal.cc +++ b/shell/platform/linux/fl_settings_portal.cc @@ -123,25 +123,25 @@ static gboolean settings_portal_read(GDBusProxy* proxy, if (error->domain == G_DBUS_ERROR && error->code == G_DBUS_ERROR_SERVICE_UNKNOWN) { g_debug("XDG desktop portal unavailable: %s", error->message); - return false; + return FALSE; } if (error->domain == G_DBUS_ERROR && error->code == G_DBUS_ERROR_UNKNOWN_METHOD) { g_debug("XDG desktop portal settings unavailable: %s", error->message); - return false; + return FALSE; } g_critical("Failed to read XDG desktop portal settings: %s", error->message); - return false; + return FALSE; } g_autoptr(GVariant) child = nullptr; g_variant_get(value, "(v)", &child); g_variant_get(child, "v", out); - return true; + return TRUE; } static void settings_portal_changed_cb(GDBusProxy* proxy, @@ -282,7 +282,7 @@ gboolean fl_settings_portal_start(FlSettingsPortal* self, GError** error) { kPortalPath, kPortalSettings, nullptr, error); if (self->dbus_proxy == nullptr) { - return false; + return FALSE; } for (const FlSetting setting : kAllSettings) { diff --git a/shell/platform/linux/fl_view_accessible.cc b/shell/platform/linux/fl_view_accessible.cc index 77ba12aec1282..d8e3b74747930 100644 --- a/shell/platform/linux/fl_view_accessible.cc +++ b/shell/platform/linux/fl_view_accessible.cc @@ -187,7 +187,7 @@ void fl_view_accessible_handle_update_semantics( } fl_accessible_node_set_children(parent, children); - return true; + return TRUE; }, self); }